Back to blog

SRT vs VTT: Which Subtitle Format to Use and How to Make One

SRT and WebVTT side by side: timestamp syntax, the WEBVTT header, cue settings and styling, which platforms take which, how to turn a video into SRT or VTT, and timing mistakes to avoid.

autoclip

Use SRT when you are uploading captions to a video platform or importing them into an editor. Use VTT (WebVTT) when you are playing video in a web browser with the HTML <track> element. The two formats hold the same thing, timed lines of text, and converting between them takes seconds. The differences are small but they break things when you get them wrong, so this guide walks through them, then covers how to turn a video into SRT or VTT and the timing problems that catch people out.

The same cue in both formats

Here is one subtitle cue in SRT:

1
00:00:04,200 --> 00:00:07,850
Most teams price their product wrong.

And the same cue in WebVTT:

WEBVTT

00:00:04.200 --> 00:00:07.850
Most teams price their product wrong.

Four differences are visible already.

1. Comma versus dot

SRT separates seconds from milliseconds with a comma: 00:00:04,200. WebVTT uses a dot: 00:00:04.200. This is the single most common reason a renamed file fails to load. Changing .srt to .vtt without changing the separators gives you a file browsers will reject or silently ignore.

2. The header

Every WebVTT file must begin with the line WEBVTT, optionally followed by a space and a title, then a blank line. SRT has no header at all; the file starts straight with the first cue. A VTT file missing its header is invalid, and a browser will not show any of its cues.

3. Cue numbers

In SRT, each cue starts with a sequence number (1, 2, 3…). In WebVTT the line before the timing is an optional cue identifier. It can be a number, a word, or left out. Players don't rely on it, but scripts that want to jump to or style a specific cue can.

4. Hours

WebVTT lets you drop the hours when they are zero, so 00:04.200 is valid. SRT always wants the full HH:MM:SS,mmm form. If you are writing a converter, always write the full form; every player accepts it.

Cue settings and styling

This is where WebVTT does more than SRT.

Cue settings go after the end time on the timing line and control placement:

00:00:04.200 --> 00:00:07.850 line:85% position:50% align:center

line sets the vertical position, position the horizontal one, align the text alignment, and size the width of the cue box. They are handy when a caption would cover a name tag or on-screen text.

Styling in WebVTT uses CSS. A STYLE block in the file, or your page's stylesheet using the ::cue pseudo-element, can set colour, background and font. You can also mark up spans with tags such as <b>, <i>, <u>, class spans like <c.highlight>, and voice spans like <v Sam> that label the speaker.

SRT styling is unofficial. Many players honour <b>, <i>, <u> and sometimes <font color="…">, but support varies and some platforms strip it on upload. Treat SRT as plain text with timings and you won't be surprised.

WebVTT also supports NOTE blocks for comments and metadata cues, which SRT has no equivalent for.

Which platforms take which

Support changes over time, so check each platform's help pages before a big upload. As a rule of thumb:

  • Web players using the HTML <video> element need WebVTT. Browsers don't read SRT natively.
  • Most large video platforms accept SRT on upload, and many accept VTT too. SRT is the safer choice when a platform only lists one format.
  • Desktop video editors almost all import SRT. VTT support is common but less universal.
  • Desktop media players generally play both.
  • Streaming and HLS workflows use WebVTT for text tracks.

If you are not sure, keep both. They are cheap to produce, and having the right one on hand saves a conversion step later.

How to turn a video into SRT or VTT

There are three routes, from slowest to fastest.

Type it yourself. Play the video, type what is said, and note the times. It is accurate but painfully slow: expect to spend several times the video's length on it.

Use an editor's built-in captions. Many editors can auto-caption a timeline and export SRT. Quality varies, and you are tied to that editor's workflow.

Use a video to SRT generator. Upload the file, get a transcript with word-level timings, and download it as SRT and VTT. On autoclip, the transcript job does exactly this: upload or link a video or audio file up to 60 minutes and you get the transcript as JSON plus ready-made SRT and VTT files. Speaker labels come through in the JSON, so you can tell who said what. Transcript jobs cost less than clip jobs; see /pricing for the per-minute rates.

Whichever route you take, read the file before publishing. Automatic transcription is good, but it still mis-hears names, product terms and numbers.

Timing pitfalls

Most subtitle problems are timing problems, not text problems.

Drift. Captions start in sync and slowly fall behind. This usually means the subtitle file was timed against a different version of the video, often one with a different frame rate (25 versus 29.97 fps is a classic) or an intro that was trimmed. Re-time against the exact file you are publishing.

Offset after trimming. If you cut 30 seconds off the start of a video, every cue needs to move back 30 seconds. Clipping tools that generate subtitles from the trimmed file avoid this. If you are cutting by hand, shift all timestamps by the trim amount.

Overlapping cues. Two cues whose times overlap will show at once, stacked. Some platforms reject the file. Make sure each cue ends at or before the next one starts.

Cues too short to read. A cue that flashes for half a second is unreadable. A common working floor is around one second, with longer cues for longer lines. Merge very short cues with their neighbours.

Lines too long. Two lines of roughly 40 characters each is a widely used limit for legibility. Long sentences should be split across cues at natural pauses, not mid-phrase.

Encoding. Save files as UTF-8. Non-ASCII characters (accents, Chinese, emoji) turn into garbage in players that guess a different encoding. WebVTT requires UTF-8; SRT doesn't specify one, which is why SRT encoding bugs are more common.

Line endings and blank lines. Each cue must be separated by a blank line. A missing blank line merges two cues into one; an extra one in the middle of a cue can end it early.

Converting SRT to VTT by hand

If you have an SRT and need VTT:

  1. Add WEBVTT and a blank line at the top.
  2. Replace the comma in every timestamp with a dot. Only touch the timing lines, not commas in the text.
  3. Optionally remove the cue numbers.
  4. Save as UTF-8 with a .vtt extension.

Going the other way, strip the header, NOTE and STYLE blocks, cue settings and any tags your target doesn't support, switch dots back to commas, and number the cues.

Quick summary

  • SRT: comma before milliseconds, no header, numbered cues, unofficial styling. Best for uploads and editors.
  • WebVTT: dot before milliseconds, WEBVTT header, optional identifiers, cue settings and CSS styling. Required for HTML5 video.
  • Make both from one transcript, check names and numbers, and time against the final file.

To get both from a recording in one step, upload it on the autoclip home page and choose transcript only. If you'd rather script it, the API reference shows how.

Run it on a recording you have

Upload or link it, read the exact credits, then start. Same job from the browser, the API or your assistant.