Measured guide
SRT vs VTT: differences, examples and which to use

Short answer
Use SRT to upload captions to YouTube or to hand them to an editor, and VTT when captions play on a web page through the HTML track element. The two formats hold the same cues; VTT adds a WEBVTT first line, a dot instead of a comma before the milliseconds, and optional positioning. In our test Chromium and Firefox refused the .srt file and loaded the .vtt one, and a .vtt written with SRT-style commas loaded without an error and showed no captions at all.
Key takeaways
- Three visible differences: VTT starts with the line WEBVTT, writes 00:00:01.000 where SRT writes 00:00:01,000, and makes cue numbers optional.
- YouTube accepts both. Its help page lists SubRip as a basic format in which no style info is recognized, and WebVTT as a format where positioning is supported and styling is limited to bold, italic and underline.
- Browsers accept only VTT. Chromium 153 and Firefox 155 failed to load our .srt in a track element and loaded the same captions as .vtt, with the position settings kept.
- The worst mistake is silent: a .vtt with commas in its timestamps loaded with no error and 0 captions in both browsers, and ffmpeg turned it into an empty SRT while reporting success.
- SRT to VTT kept every caption and the italics in our sample. VTT to SRT drops positioning and NOTE comments, because SRT has nowhere to keep them.
What is the difference between SRT and VTT?
Both are plain text files of timed captions, and a cue looks almost the same in each: a timing line with an arrow, then one or two lines of text, then a blank line. Here are the same three captions in both formats. They are the files we tested, and you can download them from the sources.
1
00:00:01,000 --> 00:00:03,500
Hello, this is the first caption.
2
00:00:04,000 --> 00:00:06,000
<i>Second caption, in italics.</i>
3
00:00:06,500 --> 00:00:08,000
Third caption.WEBVTT
NOTE Same three captions as sample.srt; cue 3 adds position settings.
1
00:00:01.000 --> 00:00:03.500
Hello, this is the first caption.
2
00:00:04.000 --> 00:00:06.000
<i>Second caption, in italics.</i>
3
00:00:06.500 --> 00:00:08.000 line:10% position:50% align:center
Third caption.The first two lines show most of the difference: WebVTT opens with WEBVTT and writes a dot where SRT writes a comma. The NOTE line and the settings after the third timing line are WebVTT features that SRT has no place for.
SRT and VTT compared, line by line
| SRT (.srt) | WebVTT (.vtt) | |
|---|---|---|
| First line | The number of the first cue | The word WEBVTT, required |
| Timestamp | 00:00:01,000 with a comma | 00:00:01.000 with a dot; hours optional, as in 00:01.000 |
| Cue numbers | Expected before every cue | Optional; any label can name a cue |
| Position on screen | Not part of the format | Cue settings such as line:10% position:50% align:center |
| Styling | Tags like <i> work in some players (ffmpeg kept ours); YouTube reads no markup from SRT | <b>, <i>, <u>, classes and CSS STYLE blocks; YouTube keeps <b>, <i> and <u> |
| Comments | None | NOTE blocks |
| Plays in a web page | No: our .srt failed to load in a track element | Yes: the format the HTML track element uses |
Format rules from the W3C WebVTT specification, MDN and YouTube Help, read October 27, 2026; the web page row is our test, described below. MDN also notes that a WebVTT file must be UTF-8, and YouTube asks for plain UTF-8 in an SRT file.
Which one should you use?
Pick by where the captions will play, not by which format looks newer. Every row below is either YouTube's published rule or our own test.
| You want to | Use | Why |
|---|---|---|
| Upload captions to YouTube | Either; SRT is the simpler file | YouTube lists both. For SubRip it says only basic files are supported and no style info is recognized. |
| Keep caption positions on YouTube | VTT | YouTube supports positioning in WebVTT, not in SubRip. |
| Show captions in your own web player | VTT | Chromium and Firefox loaded only the .vtt file in our track element test. |
| Write your first file by hand | SRT | YouTube recommends SubRip for people new to caption files. |
| Burn captions into the video with ffmpeg | Either | ffmpeg read both of our sample files. |
YouTube also supports positioning in TTML, a third format this page does not compare. We did not test Facebook, Instagram, TikTok, LinkedIn or Vimeo; check each upload form before you rely on a format there.
What happens when the format is wrong?
Mistakes in caption files are rarely loud. We took our two correct files and four broken copies, loaded each through an HTML track element in two browsers, and converted them with ffmpeg. The correct .vtt is the control: it loaded all 3 captions, kept the italics and kept the position of cue 3 in both browsers, so the setup reads a file correctly before we judge the broken ones.
| File | Chromium 153 and Firefox 155 | ffmpeg 6.1.1, converted to SRT |
|---|---|---|
| Correct .vtt (control) | Loaded, 3 captions, position kept | 3 captions; position and NOTE dropped |
| Correct .srt in a track element | Load error, 0 captions | Not needed: already SRT |
| .vtt without hours or cue numbers | Loaded, 2 of 2 captions | Not converted in this test |
| .vtt with commas (00:00:01,000) | Loaded with no error, 0 captions | Empty file, 0 bytes, exit code 0 |
| .vtt without the WEBVTT line | Load error, 0 captions | 3 captions |
Our test, October 27, 2026, headless browsers driven by Playwright on Linux; both browsers gave the same result on every file. The script, the log and every test file are linked in the sources.
The comma case is the one to watch for, because nothing tells you. The file loads, the player shows a captions track, and no caption ever appears. As we read the WebVTT specification, the parser discards a cue whose timing line it cannot read, and a comma makes every timing line unreadable. A missing WEBVTT line is at least loud: the track fails to load.
How to convert SRT to VTT, and back
In the browser: our SRT to VTT converter read all 3 captions of sample.srt and wrote a VTT with the WEBVTT line and dots, and the VTT to SRT converter wrote a numbered SRT and warned that positioning and NOTE comments are not carried over. Both run in the page; the file is not uploaded.
With ffmpeg, the format follows the file extension. In our test the SRT to VTT direction kept the text and the italics and dropped the cue numbers, which WebVTT does not need; the VTT to SRT direction numbered the cues and dropped the position settings without a warning.
We ran the repair on our comma file and on a caption containing "At 10:30,500 people came, 1,000 more later." The timing lines came out identical to our correct file, the caption text kept its commas, and both browsers loaded every caption. By hand, the same fix is: add WEBVTT and a blank line at the top, and change the comma to a dot on the timing lines only.
ffmpeg -i captions.srt captions.vtt
ffmpeg -i captions.vtt captions.srtsed -E 's/^([0-9:]+),([0-9]{3}) --> ([0-9:]+),([0-9]{3})/\1.\2 --> \3.\4/' broken.vtt > fixed.vttHow to check a file before you publish
Run the file through our subtitle checker. It reads SRT and VTT, counts the captions, reports reading speed and overlaps, and flags the format problems from the table above: a .vtt without the WEBVTT line, a .vtt with commas in its timestamps, and an .srt written with dots.
If the captions are for a web page, the strictest check is the player itself: load the .vtt in your page, open the captions menu and play the first ten seconds. A track that appears in the menu but never shows text is the comma problem.
Limits and what we did not test
- We tested two browser engines, Chromium 153 and Firefox 155, headless on Linux. We did not test Safari, a smart TV or a mobile app player.
- We did not upload a file to YouTube. The YouTube rules on this page are quoted from its help page, read October 27, 2026.
- We did not test Facebook, Instagram, TikTok, LinkedIn or Vimeo, so this page makes no claim about the formats they accept.
- Our files are three short English captions in UTF-8. We did not test long files, other encodings, a byte order mark, right-to-left text or STYLE and REGION blocks.
- TTML, SBV and the broadcast caption formats are outside this comparison.
Do it in your browser
Free Koldflux tools, no account needed.
Questions people ask
Is VTT better than SRT?
Not in general. VTT can position and style captions and is the format web pages use; SRT is simpler and is what YouTube recommends to beginners. Use VTT for a web player or positioned captions, and SRT for a plain upload.
Does YouTube accept VTT files?
Yes. YouTube Help lists WebVTT among its supported caption formats, says positioning is supported and limits styling to bold, italic and underline. It accepts SRT as well.
Why does my VTT file show no captions?
Check the timestamps first. In our test a .vtt with commas before the milliseconds (00:00:01,000) loaded with no error and 0 captions in Chromium and Firefox. A .vtt without WEBVTT on the first line failed to load at all.
Can a browser play SRT subtitles?
Not through the HTML track element. Chromium 153 and Firefox 155 both reported a load error for our .srt file, and loaded the same captions as .vtt. Convert the file first.
How do I convert SRT to VTT?
Add WEBVTT and a blank line at the top and change the comma before the milliseconds to a dot on every timing line, or run ffmpeg -i captions.srt captions.vtt, or use our browser converter. Cue numbers can stay; WebVTT reads them as labels.
What do I lose converting VTT to SRT?
Positions, NOTE comments and STYLE blocks, because SRT has no place for them. Our converter lists what it dropped; ffmpeg dropped the position settings of our sample without a warning.
Related
More guides on this topic
Sources and how we checked
- Supported subtitle and closed caption files (YouTube Help) (checked 2026-10-27)
- WebVTT: The Web Video Text Tracks Format (W3C) (checked 2026-10-27)
- Web Video Text Tracks Format (MDN) (checked 2026-10-27)
- The track element (MDN) (checked 2026-10-27)
- Our test log, October 27, 2026 (Koldflux, plain text) (checked 2026-10-27)
- Our test script (Koldflux, shell) (checked 2026-10-27)
- Our browser track test (Koldflux, Playwright) (checked 2026-10-27)
- Test file sample.srt (Koldflux) (checked 2026-10-27)
- Test file sample.vtt (Koldflux) (checked 2026-10-27)
- Broken test file with commas, vtt-comma-timestamps.vtt (Koldflux) (checked 2026-10-27)
Format rules come from the W3C WebVTT specification, MDN and YouTube Help, read on October 27, 2026. The browser, ffmpeg and tool results are our test on the same day: three captions written as sample.srt and sample.vtt, four broken copies, an HTML track element in headless Chromium 153 and Firefox 155 driven by Playwright, ffmpeg 6.1.1 for conversion, and the live Koldflux subtitle tools in Chromium. The correct .vtt is the control and loaded all 3 captions with their position. The script, the log and the test files are linked in the sources. YouTube is a trademark of Google LLC; Koldflux is not affiliated with or endorsed by it.