{
  "slug": "srt-to-vtt",
  "name": "gizza-ai/srt-to-vtt",
  "version": "0.1.0",
  "title": "SRT to VTT Converter — Convert Subtitles Both Ways — gizza.ai",
  "description": "Convert SRT to VTT and VTT to SRT free in your browser — format auto-detected, timestamps rewritten, WEBVTT header handled. No upload, no sign-up.",
  "tags": [
    "srt to vtt",
    "vtt to srt",
    "subtitle converter",
    "subrip",
    "webvtt",
    "convert subtitles",
    "srt",
    "vtt",
    "caption converter"
  ],
  "category": "video",
  "urls": {
    "page": "https://gizza.ai/tools/srt-to-vtt/",
    "markdown": "https://gizza.ai/tools/srt-to-vtt/index.md",
    "descriptor": "https://gizza.ai/tools/srt-to-vtt/tool.json",
    "deep_link_example": "https://gizza.ai/tools/srt-to-vtt/?subtitles=1%0A00%3A00%3A01%2C000%20--%3E%2000%3A00%3A04%2C000%0AFirst%20line%20of%20dialogue.&direction=auto"
  },
  "cli": "gizza tool srt-to-vtt \"1\n00:00:01,000 --> 00:00:04,000\nFirst line of dialogue.\"",
  "tool": {
    "description": "Convert subtitles between SubRip (.srt) and WebVTT (.vtt) formats. Pass the full subtitle text as `subtitles`. With `direction` = 'auto' (default) the input format is detected and converted to the other; 'srt-to-vtt' forces SubRip → WebVTT and 'vtt-to-srt' forces WebVTT → SubRip. The conversion rewrites the timing-line decimal separator (SRT comma `00:00:01,000` ↔ WebVTT period `00:00:01.000`), adds or strips the leading WEBVTT signature/header, and expands WebVTT's short MM:SS.mmm timestamps to HH:MM:SS,mmm. Cue numbers and dialogue text are kept verbatim; WebVTT cue settings (e.g. line:90%) are dropped when producing SRT.",
    "parameters": {
      "additionalProperties": false,
      "properties": {
        "direction": {
          "default": "auto",
          "description": "Which way to convert. 'auto' (default) detects the input format and converts to the other; 'srt-to-vtt' forces SubRip → WebVTT; 'vtt-to-srt' forces WebVTT → SubRip.",
          "enum": [
            "auto",
            "srt-to-vtt",
            "vtt-to-srt"
          ],
          "type": "string"
        },
        "subtitles": {
          "description": "The subtitle text to convert: a full SubRip (.srt) or WebVTT (.vtt) file, including the cue numbers, the timing lines, and the dialogue.",
          "type": "string"
        }
      },
      "required": [
        "subtitles"
      ],
      "type": "object"
    }
  }
}