Guides

SRT vs VTT: The Difference, and Which to Use

SRT and VTT look almost identical but are not interchangeable everywhere. The real differences, and a rule for picking the right one.

Published 6 min read

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.

captions.srt
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.
captions.vtt
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:

  1. The WEBVTT header. Mandatory, on the first line, followed by a blank line. An SRT parser reads it as a cue index and gives up.
  2. A full stop before the milliseconds, where SRT uses a comma. This is the difference that breaks the most files in practice.
  3. 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 and WebVTT compared
SRTWebVTT
Header lineNoneWEBVTT, required
Timecode separatorComma — 00:00:01,000Full stop — 00:00:01.000
Cue numberingRequired, sequentialOptional, and can be a name
PositioningNoYes
CSS stylingNoYes
CommentsNoYes
Chapters and metadataNoYes
HTML5 <track>NoYes
Universal player supportYesPartly

What supports what

This is usually what people actually came to find out.

Which format to send where
Where it is goingUseNote
YouTubeEitherBoth accepted. SRT is the safer habit.
VimeoEitherBoth accepted.
HTML5 video on your own siteVTTThe <track> element takes nothing else.
Instagram, TikTok, LinkedInSRTWhere a file is accepted at all, it is SRT. Burned-in captions are usually better here.
Premiere, Final Cut, DaVinciSRTUniversally imported; VTT support varies by version.
VLC and desktop playersEitherBoth work. SRT is more reliably auto-detected by filename.
Broadcast and streaming platformsAskMany require their own formats entirely — TTML, SCC, EBU-STL.
If in doubt

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:

styled.vtt
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:

  1. Add WEBVTT and a blank line at the top.
  2. Replace the comma in every timecode with a full stop.
  3. 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:

Terminal
# 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.

Renaming is not converting

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.

Share LinkedIn X Hacker News
Guides

How to Transcribe Lectures Into Study Notes

Stop scrambling to write everything down. How to record a lecture, transcribe it accurately, and turn the text into notes you will actually revise from.

9 min read

Guides

How to Translate Audio to English Text

Turning foreign-language audio and video into English text and subtitles — and why transcribing first, then translating, usually beats doing both at once.

9 min read

Stop reading. Start talking.

BarqType runs on your computer: hold a key and dictate into any app, or drop in a recording and get a transcript. The free plan needs no account, and your audio never leaves the machine.