UsTube

SRT to VTT Converter

Drop an SRT file or paste its text and get a valid WebVTT file you can use in a web page. The conversion runs in your browser and nothing is uploaded.

Drop a file here, or tap to choose .srt, .vtt or .txt. Read in your browser and never uploaded.

Runs in your browser. Nothing you type or open here is uploaded.

How it works

How to convert SRT to VTT

  1. 1

    Add your SRT

    Drop the .srt file on the box, tap it to choose a file, or paste the subtitle text into the text area.

  2. 2

    Pick the options

    Keep the cue numbers if you want to refer to cues later. Untick the box to leave them out. The result updates at once.

  3. 3

    Copy or download

    Press Copy, or Download file to save a .vtt file with the same name as your SRT.

What this SRT to VTT converter changes

SRT and WebVTT both store subtitles as timed text, but they are different formats. A web player will not accept an SRT file as it is. This tool reads your SRT and writes a valid WebVTT file. It makes these changes for you:

  • Adds the WEBVTT line at the top, followed by a blank line.
  • Changes the comma in every time to a period, so 00:01:02,500 becomes 00:01:02.500.
  • Keeps the cue text and the basic tags <i>, <b> and <u>.
  • Escapes a bare ampersand or less-than sign in the text, which WebVTT does not allow.
  • Removes <font> tags and {\an8} style codes, because WebVTT does not read them.

When you need VTT and when SRT is enough

The HTML <track> element for the video tag accepts WebVTT only. If you put an SRT file there, the browser shows no subtitles. Many web video players follow the same rule. SRT is the older and simpler format. Most desktop editors, media players and upload forms still take it. So the usual path is: edit or download as SRT, then convert to VTT for your own website.

Cue numbers

In SRT every cue starts with a counter. In WebVTT that line is an optional identifier. You can keep it, and then styles and scripts can point at a single cue by its name. If you do not need that, untick the option and the numbers are left out. Both results are valid.

Files that are slightly broken

Real SRT files are often messy. This converter copes with a byte order mark at the start, Windows line endings, a missing blank line between two cues, and times with one or two digits of milliseconds. If a timing line cannot be read, that cue is skipped and the message names it, for example "Cue 14 (line 53)". The other cues are still converted, so you can fix the one bad line and run it again.

Use the file in a web page

<video controls src="movie.mp4">
  <track kind="subtitles" src="movie.vtt" srclang="en" label="English" default>
</video>

Save the file as UTF-8, which is what the download gives you. If the .vtt file sits on another domain than the page, that server must allow cross-origin requests, and the video tag needs the crossorigin attribute.

After converting

If the subtitles show too early or too late, fix the timing with the subtitle shifter. To go the other way, use the VTT to SRT converter.

Free video editor

Edit it in your browser.

UsTube's editor has a full timeline, auto captions, music, effects and 1080p export with no watermark. Nothing to install.

Open the free editor Free to start · no card needed

Questions people ask

How do I convert SRT to VTT?
Drop the .srt file on the box or paste its text. The WebVTT version appears below. Press Copy, or Download file to save it as a .vtt file.
What is the difference between SRT and VTT?
VTT starts with a WEBVTT header, writes milliseconds after a period instead of a comma, and can carry styles, positions and notes. SRT is plain: a number, a time line and the text.
Why does my video not show subtitles from an SRT file?
The HTML track element only reads WebVTT. Convert the SRT to VTT, save it as UTF-8 and point the track element at the .vtt file.
Should I keep the cue numbers?
It does not matter for playback. Keep them if you want to name cues in styles or scripts. Otherwise untick the option for a shorter file.
Does it work with Urdu, Arabic or other languages?
Yes. The text is copied as it is and the file is saved as UTF-8, so any script is kept. Choose the same language code in your track element.
Is my subtitle file uploaded anywhere?
No. The conversion runs in your browser. The text never leaves your device.
Free tools

More tools like this

See all 54 free tools