Skip to content

SRT vs VTT: What's the Difference and Which Subtitle Format Should You Use?

SRT is the simple universal format; WebVTT adds positioning, styling tags and web-player support. Syntax differences, support and a decision rule.

Try it now: AI Subtitle Generator — timed subtitles from speech in 20 languages, processed in your browser.

Both formats are plain text files that pair caption text with times. They look almost the same, but small differences decide where each one works.

The same caption in both formats

SRT

1
00:00:01,200 --> 00:00:03,800
Welcome back to the channel.

WebVTT

WEBVTT

00:01.200 --> 00:03.800
Welcome back to the channel.

Differences at a glance

SRTWebVTT (.vtt)
HeaderNoneMust start with WEBVTT
Millisecond separatorComma ,Full stop .
Hours in timestampsAlways written (00:00:01,200)Optional when zero (00:01.200)
Cue numbersExpectedOptional identifiers
Positioning and alignmentNot in the formatCue settings such as position, line, align
StylingInformal tags in some apps; YouTube describes SRT as basic with no style markupTags <b>, <i>, <u>, <c>, <v> voice, <lang>, and a STYLE block
CommentsNoneNOTE blocks
Official specificationNone (de-facto format)W3C specification
Web <video> native supportNoYes, through the track element

The WebVTT facts come from the W3C specification: the file is UTF-8, labelled text/vtt, starts with WEBVTT, and timestamps use [hh:]mm:ss.ttt.

Where each works

  • YouTube accepts both. Its help page lists SubRip (.srt) as a basic format with no style markup and WebVTT (.vtt) as an advanced format that supports positioning, with styling limited to bold, italic and underline.
  • The HTML <track> element takes WebVTT only. MDN says tracks are WebVTT files. See HTML5 video subtitles.
  • Video editors and social platforms vary. Many import SRT; some also take VTT. The platform acceptance table lists what we could verify.

The trap: comma vs full stop

Converting by hand? Changing , to . in the timestamps and adding WEBVTT is most of the work, but the small details break files: WebVTT hours are optional only if they are zero, and the end time must be later than the start. For code that does it properly, see parsing and converting SRT and WebVTT in JavaScript.

Which should you use?

  1. Not sure, publishing to a video site or editor: SRT. It is the most widely accepted.
  2. Putting video on your own web page: WebVTT, because it is what the browser reads.
  3. Need positioning or limited styling in a player that supports it: WebVTT.
  4. Need rich styling everywhere: neither; burn the captions into the video instead. See soft vs burned-in captions and styling inside SRT and WebVTT.

Getting both

The subtitle generator exports Subtitles (.srt) and Web subtitles (.vtt) from the same captions, so you do not have to choose up front. Editing and downloading need a free Google sign-in.

Sources

Last updated