🎬

SRT to VTT

✓ Free & no signup 🔒 Runs 100% in your browser Updated 2026-11-25 Other Tools

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)

  1. Drag your .srt file onto the input area, or paste the subtitle text — the conversion runs live as the content lands.
  2. Confirm the first line of the output reads WEBVTT; browsers will not parse the file without it.
  3. 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.
  4. Copy the output or download it as a .vtt file, keeping the same base filename as your video.
  5. 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

AspectSRTWebVTT
Browser video supportnone — track element requires VTTuniversal, it is the standard
Desktop player supportvirtually universalpartial, varies by player
StylingnoneCSS classes, karaoke timing
Positioningnonealign, line, position settings
Header requirementnoneWEBVTT signature mandatory
Timestamp separatorcommadot

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.

Frequently Asked Questions

How do I convert an SRT file to VTT?
Drop the .srt file into this tool or paste its text, and the WebVTT output appears live — converted entirely in your browser with no upload. The tool performs the required transformations automatically: it prepends the mandatory WEBVTT header line, changes comma-decimal timestamps to dots (00:00:02,400 becomes 00:00:02.400), keeps cue numbers as legal VTT identifiers, and normalizes ragged spacing into strict block structure. Download the result as a .vtt file with the same base name as your video and reference it from a track element.
Why does HTML5 video not support SRT subtitles?
The HTML5 specification chose WebVTT as the only caption format the track element must support, and browsers enforce that strictly — pointing a track at an .srt file produces no captions and no error message, just silence. The decision dates to standardization around 2010, when VTT was designed to integrate with CSS styling and JavaScript APIs in a way SRT never anticipated. The fix is a one-time conversion: SRT content maps completely into VTT with only the header addition and the timestamp separator change, which this tool performs in seconds.
What is the WEBVTT header and is it required?
Yes, it is mandatory. Every valid WebVTT file must begin with the six-character string WEBVTT on its own first line, before any cues — browsers parse that signature to identify the file type and reject anything else immediately. SRT files have no header at all, starting directly at cue 1, which is exactly why hand-renamed .srt files fail as .vtt: the extension changed but the signature is missing. This tool inserts the header automatically during conversion, so the output passes the parser's first checkpoint on every browser.
Do I need to keep the cue numbers when converting to VTT?
No — VTT makes cue identifiers entirely optional, unlike SRT where sequential numbers are required. Keeping them is harmless and often helpful: numbers are legal identifiers in VTT, and they give you stable references when debugging timing in browser dev tools. Removing them produces a slightly leaner file with identical playback. The only rule is that identifiers, when present, must not contain the arrow sequence or line breaks. Either choice renders the same captions; pick based on whether you want minimal output or easier debugging.
Why are my captions still not showing after converting to VTT?
Check four common culprits in order. First, the track element's src must point at the .vtt file, not the original .srt — a frequent leftover. Second, the kind attribute must be set to subtitles with a matching srclang. Third, browsers apply same-origin rules to caption files, so the .vtt must be served from the same domain as the page or with proper cross-origin headers. Fourth, the server must send the file with the text/vtt content type. The WEBVTT header and dot-decimal timestamps, which this tool guarantees, rule out the remaining parse-level failures.
What is the difference between SRT and WebVTT timestamps?
One character: SRT separates milliseconds with a comma — 00:01:02,345 — while VTT uses a dot — 00:01:02.345. Everything else matches: hours, minutes, seconds, two-digit millisecond precision, and the arrow between start and end times. Despite the tiny difference, parsers enforce it absolutely, and a wrong separator causes browsers to drop cues silently rather than warn. Precision transfers losslessly in conversion: a cue timed to 00:00:05,120 in SRT becomes 00:00:05.120 in VTT with identical sync behavior in the player.

Related Tools