Subtitles explained: SRT, WebVTT and how timing works
8 min read · Updated 23 October 2026
What is the difference between SRT and VTT? Both are plain text subtitle formats with the same idea: each caption has a start time, an end time and some text. SRT (.srt) is the older and most widely accepted format, and it writes milliseconds after a comma. WebVTT (.vtt) is the format web browsers use, it begins with a WEBVTT header and writes milliseconds after a period. The subtitle converter converts between them in both directions.
Subtitle files are plain text. Each cue has a start time, an end time and one or two lines of text. A video player reads the file and shows each cue while the video's clock is between those two times. This guide covers how both formats are written, how to convert one to the other, how to fix captions that are early, late or drifting, and what makes captions easy to read.
SRT
SubRip (.srt) has no formal standard, but nearly every player, editor and video site accepts it. A cue looks like this:
12
00:01:02,500 --> 00:01:05,000
I said I'd be there by six.
- A sequence number (12). Cues are numbered 1, 2, 3 and so on.
- Start and end as
hours:minutes:seconds,milliseconds, with two digits for hours, minutes and seconds and three for milliseconds. Note the comma before the milliseconds. - The text on one or more lines.
- A blank line before the next cue.
Many players also understand simple tags such as <i>italic</i> and <b>bold</b> in SRT text, but support varies.
WebVTT
WebVTT (.vtt) is defined by the W3C and is the format used by the HTML <track> element for web video. It starts with a WEBVTT header and uses a full stop before milliseconds:
WEBVTT
00:01:02.500 --> 00:01:05.000
I said I'd be there by six.
Differences from SRT:
- The first line must be
WEBVTT. - Cue numbers are optional (a cue can have a text label instead).
- The hours part is optional when it is zero, so
01:02.500is valid. - Cues can carry position and style settings after the times, such as
position:10% align:left. - A
NOTEblock can hold comments that players ignore. - The file must be UTF-8, and web servers should send it as
text/vtt.
On a web page, a captioned video looks like this:
<video controls src="movie.mp4">
<track kind="subtitles" src="movie.en.vtt" srclang="en" label="English" default>
</video>
Quick comparison
| SRT | WebVTT | |
|---|---|---|
| File extension | .srt |
.vtt |
| First line | The number 1 | WEBVTT |
| Milliseconds separator | Comma | Period |
| Cue numbers | Required | Optional |
| Styling and position | Limited, varies by player | Built in (settings and CSS) |
Browser <track> support |
No | Yes |
| Suited to | Desktop players, editors, uploads to many sites | Websites and HTML5 video |
Converting SRT to VTT, step by step
Converting SRT to VTT is mostly a matter of two changes: add the header and change the decimal separator.
- Add
WEBVTTas the first line, followed by a blank line. - Change the comma before milliseconds to a period in every timestamp line.
- Save the file as UTF-8 with the
.vttextension.
You could do this by hand for a short file, but a tool is safer for a long one. The subtitle converter handles SRT, WebVTT, ASS/SSA, SBV, TTML and JSON in any direction. It can also fix text encoding, shift timing and change frame rate, and you can convert several files at once.
If accented letters or apostrophes look like strange symbols after conversion, the file was saved in a different encoding than the one it was read with. Open it with the correct encoding and save it as UTF-8.
Fixing subtitles that are out of sync
There are two kinds of sync problem.
1. Constant offset
Every line appears, say, 1.25 seconds too late. Shift all cues by minus 1.250 seconds. For example, a cue of 00:00:05,000 --> 00:00:07,500 becomes 00:00:03,750 --> 00:00:06,250. The subtitle editor can shift all cues at once, and the converter has a time shift option too.
To find the offset, note the time the first spoken line starts in the video, and compare it with the start time of the first cue.
2. Drift
The first lines are right but later ones get progressively worse. This usually means the subtitles were timed for a different frame rate. Common mix-ups are 23.976, 24, 25 and 29.97 frames per second.
Here is a real example. A film made at 23.976 fps is sped up to 25 fps for PAL television, so it plays about 4.27% faster. A two-hour film (7,200 seconds) then runs 6,905 seconds, or 1 hour 55 minutes 5 seconds. Subtitles timed for the 23.976 fps version put a line at exactly 1:00:00, but in the 25 fps version that line is spoken at 57:32.5. At the 10-minute mark the error is about 25 seconds, and at one hour it is about 2 minutes 27 seconds.
The fix is to multiply every time by the ratio of the two frame rates (23.976 ÷ 25 = 0.95904 in this case). Subtitle tools do this when you change the frame rate. Mixing 24 and 23.976 produces a smaller drift of 0.1%, which adds up to about 3.6 seconds over an hour.
Two reference points
If you do not know the frame rates, pick two lines: one near the start and one near the end. Note when each should appear, and let the editor stretch everything between. Example: the first cue is at 1:05.000 but should be at 1:00.000, and a cue near the end is at 1:30:00.000 but should be at 1:29:40.000. The editor works out a scale of 0.99719 and an offset of about minus 4.8 seconds, and fixes every cue to match. The cue now at 10:00.000 moves to about 9:53.5.
In a video player
VLC lets you nudge subtitle timing while you play, in steps of 50 milliseconds. The keys are listed under Tools, Preferences, Hotkeys (search for "subtitle delay"). Nudge until the lines match the speech, note the total, and use that number as the shift when you fix the file.
Readable captions
Good captions are easy to read in the time they are on screen.
- Keep cues to two lines, with around 42 characters per line. This is a common professional limit.
- Aim for a reading speed of about 17 to 20 characters per second for general audiences. A full two-line cue of 84 characters at 20 characters per second needs 4.2 seconds on screen.
- Keep each cue on screen for at least about a second, and no longer than about 6 to 7 seconds.
- Break lines at natural phrase boundaries, not in the middle of a name or a verb phrase.
- Start the cue as the person starts speaking, and remove it shortly after they stop.
- Different platforms and broadcasters have their own style guides, so check the one that applies to your upload.
Subtitles or captions? In US usage, subtitles usually assume the viewer can hear the audio and need only a translation or transcription of speech. Captions are meant for viewers who cannot hear, so they also include speaker names and important sounds, such as [door slams] or [music].
Soft versus burned-in subtitles
A separate subtitle file (soft subtitles) can be switched on and off and translated into other languages. YouTube Studio and many other platforms accept SRT and VTT uploads.
Burned-in (open) captions are drawn into the picture itself. They show on every player and on every social site, but cannot be switched off or edited afterwards. The subtitle burner renders SRT or VTT subtitles into a video, with your choice of font size, color, outline and position, and exports a new MP4 or WebM. Use it for social video where many viewers watch with the sound off, and always keep the original video and the .srt file.
Generating subtitles automatically
Speech recognition in video platforms, desktop editors and transcription services can produce a first draft with timings, usually as an SRT or VTT download. Whatever produces the draft, open it in the subtitle editor to fix the timing and wording against the video before publishing. Names, technical terms, numbers, accents and overlapping speakers are where machine transcription goes wrong.
Common mistakes
- Using a comma in a WebVTT timestamp, or a period in SRT. Many players will not parse the file.
- Forgetting the
WEBVTTheader. - Saving in a non-UTF-8 encoding, which breaks accented characters.
- Cues that overlap in time, or that end before they start.
- Fixing a drift problem with a constant shift, which only fixes one part of the video.
- Burning in subtitles with the only copy of the video.
FAQ
What is an SRT file? It is a plain text file of timed subtitles. Each entry has a number, a start and end time, and the text, separated by blank lines.
Can I rename an SRT file to VTT?
Not safely. The file also needs the WEBVTT header and periods instead of commas in the times. Use a converter.
Why are my subtitles out of sync? Either every line is shifted by the same amount, which is fixed with a time offset, or the lines drift as the video plays, which usually means a frame rate mismatch.
Which subtitle format should I upload to YouTube? YouTube accepts several, including SRT and WebVTT. SRT is the safest choice for most people.
What is the maximum line length for subtitles? A common limit is about 42 characters per line and two lines per cue. Check the guidelines of the platform you publish on.
Are my video and subtitle files uploaded anywhere? The tools process files in your browser on your device. The automatic generator downloads the open-source Whisper model files when you ask for them, and no audio, video or text is sent.