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.
Runs in your browser. Nothing you type or open here is uploaded.
How to convert SRT to VTT
- 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
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
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
WEBVTTline at the top, followed by a blank line. - Changes the comma in every time to a period, so
00:01:02,500becomes00: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.
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.