Subtitle Editor
Parse an SRT or WebVTT subtitle into a cue list, check the timings, re-serialize it in a canonical layout or convert between the two formats. Refusals name the line.
What the Subtitle Editor does
The parser reads SRT and WebVTT into {index, start, end, text}. Timestamps must be real times, an end must follow its start, and a cue must not begin before the previous one ends; each refusal is line N: followed by what is wrong.
The serializer writes the canonical layout — cue number, timing line, text, one blank line between cues — so the output is stable and diffable. WebVTT output carries the WEBVTT header and dot-separated timestamps.
Styling is not modelled: WebVTT cue settings such as line:90% are refused by line rather than dropped, because dropping a position moves the words. Translation and word-level timing are out of scope too.
How to use it
Paste the SRT or WebVTT into the SRT or WebVTT box. The example already there is a valid two-cue file, so Run works immediately.
Choose the Output — srt, vtt or table — and set Shift every cue by to a number of seconds if the whole file needs to move.
Press Run and read the subtitle file; if a cue is refused, the message names the line to fix and nothing is written.
Why it runs in your browser
The subtitle is parsed and re-serialized in this tab. The text is never uploaded, and the same input always produces the same output.
Paste a subtitle file and get the cue list back as text: renumbered, exactly spaced, and checked. A cue that starts before the previous one ends is refused with the line number, not silently reordered.
Unedited input round-trips byte for byte in the canonical layout, which is what makes a diff against the original meaningful. The table mode prints the cues and their durations for a quick check.
What it does, and what it does not
The parser reads SRT and WebVTT into `{index, start, end, text}`. Timestamps must be real times, an end must follow its start, and a cue must not begin before the previous one ends; each refusal is `line N:` followed by what is wrong.
The serializer writes the canonical layout — cue number, timing line, text, one blank line between cues — so the output is stable and diffable. WebVTT output carries the `WEBVTT` header and dot-separated timestamps.
Styling is not modelled: WebVTT cue settings such as `line:90%` are refused by line rather than dropped, because dropping a position moves the words. Translation and word-level timing are out of scope too.
How to use Subtitle Editor
Paste the SRT or WebVTT into the SRT or WebVTT box. The example already there is a valid two-cue file, so Run works immediately.
Choose the Output — srt, vtt or table — and set Shift every cue by to a number of seconds if the whole file needs to move.
Press Run and read the subtitle file; if a cue is refused, the message names the line to fix and nothing is written.
What to Expect
Best for
- Converting SRT to WebVTT or back
- Renumbering a hand-edited subtitle file
- Checking for overlapping cues
Not ideal for
- Editing styling or screen position
- Translating or transcribing audio
What this tool keeps
- Every cue's start, end and text
- The cue order
What may need cleanup
- Unusual spacing is normalised
- Cue settings must be removed before parsing
Common errors
- line N: the cue ends at
Example use cases
- Converting a subtitle for a web player
- Shifting a whole file by a second
Sample input
A two-cue SRT file with a two-line first cue.
Sample output
The same cues in the canonical layout, or a table with durations.
Who this is for
- Anyone editing subtitles by hand
- Developers converting between SRT and VTT
Frequently asked questions
Will my file come back exactly as it was?
In the canonical layout, yes: cue number, timing line, text and one blank line between cues are reproduced exactly. A file with unusual spacing is normalised to that layout, which is why the round trip is stated as canonical.
Why is my cue refused?
The message names the line and the reason: a timestamp that is not a real time, an end before its start, or a cue that starts before the previous one ends.
Does it keep WebVTT positioning?
No. Cue settings are refused rather than removed, because silently dropping a position would move the subtitle on screen.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.