Your file is not uploaded: the conversion runs in your browser, and your file stays on your device.

HTML5 video uses WebVTT for subtitles, so an SRT file has to be converted before you can add it with a track element. The converter adds the WEBVTT header and changes timestamps from 00:00:01,000 to 00:00:01.000 while keeping your text and timing. Everything happens in your browser, so even unreleased subtitles stay on your device.

How it works

  1. Select your .srt subtitle file or drop it in. If it has accented letters, make sure it was saved as UTF-8.
  2. Click Convert. Your browser rewrites the header and timestamps in WebVTT format, with no upload and no extra download.
  3. The VTT file downloads automatically, ready to add to a video with the HTML track element.

What happens to your file?

AspectResult
HeaderThe file starts with WEBVTT, as the W3C specification requires.
TimestampsStart and end times use HH:MM:SS.mmm with a dot instead of a comma and always include hours, so 00:00:05,5 becomes 00:00:05.500.
Cue numbersDropped, since cue identifiers are optional in WebVTT.
Formatting<b>, <i>, and <u> are kept; <font color> and ASS codes such as {\an8} are stripped.
PositioningSRT coordinates like X1:… Y1:… after the timestamp are removed, and no cue settings are written.
Special characters& and < are escaped as &amp; and &lt; so players don’t read text as markup.
EncodingUTF-8 without a BOM and with LF line endings; the W3C reference parser read every cue without errors in our test.
Empty cuesCues that are empty once tags are removed are dropped.

When to convert, and when not to

Worth it

  • You’re adding captions to an HTML5 video. MDN notes that the track element uses WebVTT files.
  • A web player or learning platform asks for .vtt files.

Not needed, or better alternatives

  • For YouTube, there’s no need: it accepts SRT directly, though it ignores any styling in SRT files.
  • You need colors or positions. Add them after converting, with CSS or cue settings in the VTT.
  • For apps that only read SRT, use VTT to SRT instead.

Limitations

  • The SRT is always read as UTF-8, so files saved as Windows-1252 show replacement characters instead of accented letters. The Library of Congress notes that SRT has no standard character encoding.
  • No time shifting or resyncing; timings stay exactly as they are.
  • A file without readable timestamps produces an error message instead of an empty VTT.

Frequently asked questions

What’s the difference between SRT and VTT?

A WebVTT file starts with the line WEBVTT and separates milliseconds with a dot, while SRT uses a comma. WebVTT also supports optional cue settings for position and alignment, plus voice and class tags.

Why do accented characters look broken?

Your SRT was probably saved in another encoding, such as Windows-1252. Open it in a text editor, save it as UTF-8, and convert it again; the W3C spec requires WebVTT to be UTF-8 anyway.

How do I add the VTT file to a video?

Use a track element inside video, for example <track src="captions.vtt" kind="subtitles" srclang="en" label="English">. MDN says the file must come from the same origin as the page unless the video element has a crossorigin attribute.

What happens to colors and position codes?

The converter removes <font color> and codes like {\an8}, because WebVTT doesn’t use them. Bold, italic, and underline are kept.

Sources

  1. W3C: WebVTT, The Web Video Text Tracks Format
  2. MDN: <track>, the embed text track element
  3. MDN: Blob text() method
  4. Library of Congress: SubRip Subtitle format (SRT)
  5. YouTube Help: Supported subtitle and closed caption files