SRT to VTT

Browsers won't show an .srt on an HTML5 video; the track element wants WebVTT. Drop the SRT here and get a .vtt that plays.

Options
Options
Files with a byte order mark or valid UTF-8 are detected. Older subtitles often use a regional code page: pick it if letters come out wrong.
Moves every subtitle earlier (negative) or later (positive), e.g. -1.5. 0 keeps the timing.
Some older players and TVs need it to show accented letters. The output is always UTF-8.

Your file is converted on your computer. It is not uploaded anywhere.

How it works

  1. Drop your file in the box above, or click it to pick one.
  2. Pick the output format and press Convert.
  3. Download the result. Nothing was uploaded on the way.

Is it safe?

The subtitle text is converted by your browser and never leaves it, which matters if it belongs to an unreleased cut.

Want to check? Open your browser DevTools, switch to the Network tab and convert a file. Or convert a small file once, because each converter downloads its code the first time, then go offline and convert your real file.

Close cousins with one deal-breaker

SRT comes from SubRip, a Windows program from the DVD era that pulled subtitles off discs. It's numbered blocks of text with times like 00:01:02,500. WebVTT was written for the web by the W3C and looks almost the same: a WEBVTT line at the top and a dot instead of the comma. Players on the desktop don't care much. Browsers only accept the WebVTT version, so a perfectly good SRT simply doesn't show up.

What carries over

  • Every cue's start and end time, to the millisecond, and the line breaks inside each cue.
  • <i>, <b> and <u> tags, tidied so they nest properly.
  • Characters such as & and < in the text are escaped, so the browser doesn't mistake them for markup.
  • Cue numbers are dropped. VTT doesn't need them.
  • <font color> tags and position codes like {\an8} are removed, with a note. VTT handles colour with CSS classes and placement with cue settings, and an SRT has neither to translate.

Hooking it up to a video

Put the .vtt on the server next to the video and add a track element inside the video tag:

<track kind="subtitles" src="film.vtt" srclang="en" label="English">

Browsers load the file only from the same site, or from another one that sends CORS headers. Opening the page straight from disk often blocks it as well, so test with a local web server.

Two options help along the way. "Shift timing (seconds)" moves every cue, e.g. -1.5 when they all show up late. "Text encoding of the input" fixes older SRTs saved in a regional code page instead of UTF-8.

Questions about this format

Can I just rename an .srt file to .vtt?

Usually not. WebVTT needs the WEBVTT header line and dots in the timestamps, and browsers reject a file without them. Converting adds both.

Why do accented letters look wrong after converting?

The SRT was probably saved in an old code page, not UTF-8. Pick the right one under "Text encoding of the input", for example Central European (Windows-1250), and convert again. The VTT itself is always UTF-8.

Does the VTT keep subtitle positions?

No. Position codes from the SRT are removed, so every cue sits where the player puts subtitles by default, usually at the bottom.

My subtitles are two seconds late. Can I fix that here?

Yes. Enter -2 in "Shift timing (seconds)" before converting and every cue moves two seconds earlier.

Last updated: