SRT and WebVTT look almost identical, and converting between them is close to a find-and-replace. But they are not interchangeable everywhere: hand a VTT to something expecting SRT and it will usually fail on the first line. Here is the actual difference and a rule for choosing.
The same cue in both formats
Identical content. Spot the differences.
1
00:00:01,000 --> 00:00:04,120
The formats are nearly the same.
2
00:00:04,400 --> 00:00:07,980
Nearly, but not quite.WEBVTT
intro
00:00:01.000 --> 00:00:04.120
The formats are nearly the same.
caveat
00:00:04.400 --> 00:00:07.980 line:90% align:center
Nearly, but not quite.Three differences are doing all the work:
-
The
WEBVTTheader. Mandatory, on the first line, followed by a blank line. An SRT parser reads it as a cue index and gives up. - A full stop before the milliseconds, where SRT uses a comma. This is the difference that breaks the most files in practice.
- Cue identifiers instead of required indices. VTT cues can carry an optional name, which is useful for referencing a cue from JavaScript; SRT needs sequential numbers.
The differences that matter
| SRT | WebVTT | |
|---|---|---|
| Header line | None | WEBVTT, required |
| Timecode separator | Comma — 00:00:01,000 | Full stop — 00:00:01.000 |
| Cue numbering | Required, sequential | Optional, and can be a name |
| Positioning | No | Yes |
| CSS styling | No | Yes |
| Comments | No | Yes |
| Chapters and metadata | No | Yes |
| HTML5 <track> | No | Yes |
| Universal player support | Yes | Partly |
What supports what
This is usually what people actually came to find out.
| Where it is going | Use | Note |
|---|---|---|
| YouTube | Either | Both accepted. SRT is the safer habit. |
| Vimeo | Either | Both accepted. |
| HTML5 video on your own site | VTT | The <track> element takes nothing else. |
| Instagram, TikTok, LinkedIn | SRT | Where a file is accepted at all, it is SRT. Burned-in captions are usually better here. |
| Premiere, Final Cut, DaVinci | SRT | Universally imported; VTT support varies by version. |
| VLC and desktop players | Either | Both work. SRT is more reliably auto-detected by filename. |
| Broadcast and streaming platforms | Ask | Many require their own formats entirely — TTML, SCC, EBU-STL. |
When a platform documents both, choose SRT. The only situation where VTT is required rather than merely allowed is an HTML5 <track> element, and that is a case you will know you are in.
Styling and positioning
This is VTT's real advantage and the reason it exists. A VTT cue can carry positioning on the timecode line and be styled with CSS from the page:
WEBVTT
STYLE
::cue(.speaker-a) {
color: #FFD23F;
background: rgba(11, 12, 15, 0.85);
}
00:00:12.000 --> 00:00:15.400 line:85% align:start position:10%
<c.speaker-a>Positioned, coloured, and out of the way of the lower third.</c>
That makes it possible to move captions away from on-screen graphics, colour-code speakers, and match
captions to a site's design. None of it is available in SRT, where some players honour
<i> and <b> and many ignore them.
The caveat: almost nobody uses these features. Most VTT files in the wild are SRT with a different header, because platforms override styling with their own anyway.
Converting between them
Mechanically simple. Going from SRT to VTT:
- Add
WEBVTTand a blank line at the top. - Replace the comma in every timecode with a full stop.
- Leave everything else alone — index numbers are valid VTT cue identifiers.
As a one-liner, being careful to only touch timecode lines rather than every comma in the text:
# SRT to VTT, leaving commas inside subtitle text untouched
{ printf 'WEBVTT\n\n'; sed -E 's/([0-9]{2}:[0-9]{2}:[0-9]{2}),([0-9]{3})/\1.\2/g' in.srt; } > out.vtt
Going the other way, strip the header and any STYLE or NOTE blocks, swap
the full stops back to commas, and renumber the cues sequentially — the renumbering is the part a
naive script gets wrong, because VTT identifiers are often not numbers at all.
Do not simply rename the file. A .srt containing a WEBVTT header is still a VTT file and will be rejected as malformed. The extension is not what is being read.
Better still, export the format you need directly from your transcript rather than converting — exporting both takes the same effort as exporting one, and exporting transcripts covers it.
A rule of thumb
Export SRT by default. It goes everywhere, and for the overwhelming majority of uses the extra capability in VTT is capability you will not use.
Export VTT when you are putting video on your own site with an HTML5 player, or when you genuinely need positioning or styling — captions that must dodge a lower third, or speaker colour-coding in a multi-person interview.
Export both and keep them. They cost nothing, and it removes the question the next time you need to put the same video somewhere new. If you are writing one from scratch, how to create SRT subtitles covers the format in detail.