SRT vs WebVTT: what is the difference and which should you use?
Last updated · 2 min read
SRT and WebVTT look almost identical, but players treat them very differently. Here is what actually differs, and how to pick the right one for the place your video will play.
If you open an SRT file and a WebVTT file side by side, they look like near twins: a timing line with an arrow, a line or two of text, a blank line, repeat. The differences are small on the page but decide whether a given player shows your subtitles at all.
What an SRT file looks like
SubRip Text (SRT) dates from the early 2000s and was never formally standardised. Each cue has three parts: a sequence number, a timing line, and the text.
- The number counts up from 1.
- The timing line uses commas before the milliseconds:
00:01:02,500 --> 00:01:05,000. - Text can include a few HTML-like tags —
<i>,<b>,<u>and<font color>— which most players respect.
Because there is no specification, real-world SRT files vary a lot. Missing numbers, extra blank lines and dots instead of commas are all common, and good players quietly cope with them.
What a WebVTT file looks like
WebVTT (Web Video Text Tracks) is a W3C standard designed for the HTML5 <track> element. It differs from SRT in a handful of ways:
- The file must start with the word
WEBVTT. - Timestamps use a dot before the milliseconds:
00:01:02.500. - Cue numbers are optional; a cue may have a text identifier instead.
- Cues can carry settings such as
line:0oralign:startto position the text. - Styling uses classes (
<c.yellow>) and aSTYLEblock instead of<font>tags, and speaker names can be marked with<v Name>. - Comments are allowed in
NOTEblocks.
Which players want which
Use WebVTT for anything that plays in a web browser: a <video> tag on your own site, players such as Video.js, Plyr or hls.js, and most course platforms and embeds. Browsers simply ignore SRT files in a <track> element.
Use SRT for desktop players (VLC, MPC-HC, IINA), media servers (Plex, Jellyfin, Emby), smart TVs and set-top boxes, and editing software such as Premiere Pro, DaVinci Resolve and Final Cut Pro. Most of these accept WebVTT too, but SRT is the format they all handle reliably.
YouTube and Vimeo accept both. If you are uploading captions to either, pick whichever you already have.
Converting without losing anything important
Timing converts exactly in both directions; only the separator changes. What can be lost is formatting:
- Going SRT → WebVTT,
<i>,<b>and<u>survive.<font color>has no WebVTT equivalent and is dropped. Bare&characters must be escaped as&. - Going WebVTT → SRT, positioning settings,
NOTEcomments,STYLEblocks, voice tags and class spans have no SRT equivalent. A good converter unwraps them so the spoken text stays intact.
Use the SRT to VTT converter or the VTT to SRT converter; both run in your browser and list every change they make, so you can see exactly what was adjusted.
Quick rule of thumb
If the video plays on a web page, use WebVTT. If it plays anywhere else, use SRT. Keep the original file either way — converting back and forth is lossless for timing and text, but not for styling.