You have subtitle files in SRT — the veteran format that download tools, translation services, and desktop editors have produced for thirty years — and you need them as WebVTT, because that is the only caption format the HTML5 track element accepts. Browsers will not render SRT, full stop: a video element pointing at an .srt file shows no captions at all, silently. This tool closes that gap in your browser: drop in an .srt file or paste its text, and the equivalent .vtt appears live, ready to save alongside your video. Nothing is uploaded; the conversion happens entirely on your machine, which matters for unpublished transcripts, lecture recordings, and client footage.
SRT to VTT is the friendlier direction of conversion, because you are moving from the simpler format to the richer one — every SRT construct has a legal VTT representation, and the tool's job is to add the structure VTT requires rather than strip features away.
What Actually Changes Between SRT and VTT
Four transformations carry the conversion. First, the header: every valid WebVTT file must begin with the literal line WEBVTT on its own, optionally followed by metadata. SRT starts directly with cue number 1 and has no header at all, so the tool inserts the signature — without it, browsers reject the file before rendering a single caption.
Second, the decimal separator flips: SRT's comma becomes a dot. The SRT timestamp 00:01:02,345 becomes 00:01:02.345 in VTT. This is the detail most likely to bite in manual conversions, because a stray comma in a VTT timestamp makes browsers drop the entire cue without warning.
Third, numbering becomes optional: SRT requires sequential integers at the top of each cue, but VTT treats those lines as optional cue identifiers, and numbers are legal identifiers. The tool keeps the numbers as identifiers by default — harmless and useful for debugging — or you can strip them for a leaner file; either way playback is identical.
Fourth, structure cleanup: some SRT files in the wild have ragged formatting — extra blank lines, missing numbers on odd cues, trailing spaces after timestamps. The tool normalizes all of it into the strict block structure VTT parsers expect: identifier line, timestamp line, text lines, blank separator, repeat.
How to Use This Tool (Step by Step)
- Drag your .srt file onto the input area, or paste the subtitle text — the conversion runs live as the content lands.
- Confirm the first line of the output reads WEBVTT; browsers will not parse the file without it.
- Spot-check a mid-file cue: the timestamp should carry a dot before the milliseconds, and the times should match the SRT original to the millisecond.
- Copy the output or download it as a .vtt file, keeping the same base filename as your video.
- For the web page itself, the video element's track element must reference the .vtt file with kind set to subtitles and the correct srclang, as shown below.
A Worked Example, Before and After
Input SRT:
1
00:00:02,400 --> 00:00:05,120
Welcome to lesson four.
2
00:00:05,200 --> 00:00:08,900
In this video we cover
the HTML5 track element.
Output VTT:
WEBVTT
1
00:00:02.400 --> 00:00:05.120
Welcome to lesson four.
2
00:00:05.200 --> 00:00:08.900
In this video we cover
the HTML5 track element.
The timing data transfers with zero loss — same numbers, same millisecond precision, only the separator changes. The only additions are the signature line and the preserved numeric identifiers.
Wiring the Result Into an HTML5 Page
The converted file slots into a standard markup pattern:
<video controls>
<source src="lecture-04.mp4" type="video/mp4">
<track src="lecture-04.vtt" kind="subtitles" srclang="en" label="English" default>
</video>
Three attributes matter. The kind attribute tells the browser what the file contains; srclang is required whenever kind is subtitles; and default selects the track that renders without user interaction. Note that browsers enforce same-origin rules on track sources: the .vtt file must be served from the same domain as the page, or the server must send appropriate cross-origin headers, or captions silently fail to appear — a frequent cause of the it-works-locally problem.
Preserving Speaker Labels With Voice Tags
Interviews and two-person dialogues are where converting to VTT pays off beyond mere compatibility. VTT supports voice tags that label speakers, and many players and browsers render the label visibly: the tool can wrap cue text so a line spoken by Maria reads as a voice-tagged element carrying her name, which appears as Maria: at the front of the caption in supporting players. If your SRT already annotates speakers in uppercase prefixes like MARIA: or dashes for dialogue turns, those survive as plain text with no action needed. The upgrade matters if you plan to move the captions onward into styled web playback, where VTT voice tags can be targeted with CSS to color-code each speaker — a presentation effect that plain SRT text can never provide.
SRT Versus VTT: Which to Keep as the Master Copy
| Aspect | SRT | WebVTT |
|---|---|---|
| Browser video support | none — track element requires VTT | universal, it is the standard |
| Desktop player support | virtually universal | partial, varies by player |
| Styling | none | CSS classes, karaoke timing |
| Positioning | none | align, line, position settings |
| Header requirement | none | WEBVTT signature mandatory |
| Timestamp separator | comma | dot |
The practical workflow that avoids double maintenance: keep the SRT as your editing master if translators and editors work in that format, and regenerate the VTT with this tool every time the master changes — thirty seconds of conversion versus a slow drift between two hand-edited files.
Tips and Best Practices
- Serve the .vtt with the text/vtt content type; some servers mislabel subtitle files and browsers refuse to parse them as a result.
- Test in more than one browser — Chrome, Firefox, and Safari all render VTT, but edge behaviors in positioning differ.
- If captions never appear, check three things in order: the WEBVTT first line, the track element's kind attribute, and same-origin serving.
- Keep milliseconds exact rather than rounding: subtitle sync complaints usually trace to timestamps, and VTT preserves SRT precision perfectly.
- For multilingual pages, convert every language's SRT with the tool and give each track its own srclang so browser language matching works.