SRT to VTT Converter
Convert an SRT subtitle file to WebVTT (.vtt), the caption format browsers play with HTML5 video. The timing stays the same; the file gets a WEBVTT header and WebVTT time codes.
Your files stay on this device. The conversion runs in your browser and nothing is uploaded.
What the SRT to VTT conversion changes
WebVTT was designed for the web and is stricter about its layout than SRT. Converting SRT to VTT makes five changes and leaves the words and the timing alone:
- The file starts with the line
WEBVTT, followed by an empty line. - The subtitle numbers are left out. WebVTT does not need them.
- Times use a full stop before the milliseconds instead of a comma:
00:01:15,200becomes00:01:15.200. - Italic, bold and underline tags stay.
<font>tags and position codes such as{\an8}are removed. - An arrow
-->inside the text is rewritten as->, because WebVTT reserves the arrow for time lines.
This SRT file:
1
00:01:15,200 --> 00:01:18,900
<i>Previously on the show</i>
2
00:01:19,400 --> 00:01:22,000
<font color="#ffff00">We need to leave tonight,</font>
before the roads close.
is converted to this WebVTT file:
WEBVTT
00:01:15.200 --> 00:01:18.900
<i>Previously on the show</i>
00:01:19.400 --> 00:01:22.000
We need to leave tonight,
before the roads close.
Using the VTT file with HTML5 video
Browsers load captions through the track element, and that element only accepts WebVTT. An SRT file linked there is ignored, which is the usual reason for converting SRT to VTT. Put the converted file next to the video and reference it like this:
<video controls src="movie.mp4">
<track kind="subtitles" src="movie.vtt" srclang="en" label="English" default>
</video>
The .vtt file has to be saved as UTF-8, which the converter does, and it has to come from the same site as the page unless the server sends cross-origin headers.
How to convert SRT to VTT
- Choose your .srt file, drop it on the input box, or paste the subtitles.
- Leave To on WebVTT. Use Shift all times only if the captions need to appear earlier or later.
- Check the subtitle count above the output, then download the .vtt file or copy the text.
What the conversion does not fix
The converter changes the format, not the subtitles themselves. Subtitles are written in the order they appear in the SRT file, and if two of them overlap in time they overlap in the WebVTT file as well. A subtitle with an empty text is left out, because a caption without text shows nothing. If the times are off against the video, use Shift all times to move every caption by the same number of seconds; a subtitle that drifts further out of sync as the video goes on needs a subtitle editor instead.
Web servers should send .vtt files with the content type text/vtt. Most do this already. If captions load on your computer but not from your site, the content type and the cross-origin rule above are the first things to check.
When to keep the SRT file
Keep the original .srt as well. Video editors, most desktop players and many upload forms still ask for SRT, and the WebVTT file is only needed where a browser plays the video. Because the conversion does not touch the timing, both files stay in sync with the same video.
SRT to VTT questions
Does converting SRT to VTT change the timing?
No. Start and end times are copied to the millisecond. Only the notation changes, from 00:01:15,200 to 00:01:15.200.
Why does my browser not show the .vtt captions?
Check three things: the file starts with the line WEBVTT, it is saved as UTF-8, and it is loaded from the same site as the page or from a server that allows cross-origin requests. The converter takes care of the first two.
Are styles and colours from the SRT kept?
Italic, bold and underline are kept. Font colour tags and position codes are removed, because WebVTT expresses colour and position differently, with CSS and cue settings.
Can I convert several SRT files at once?
Yes. Select or drop all the .srt files together and use Download all to get the .vtt files in one .zip.
Other subtitle converters
- SRT --> TXTSRT to TXTStrip numbers and time codes and keep the words as a transcript.
- TXT --> SRTTXT to SRTGive every line of a script a number, a start time and an end time.
- VTT --> SRTVTT to SRTTurn WebVTT captions into SubRip for players and editors.
- SRT --> MP3SRT to SpeechVoice every subtitle at its timestamp and download the track as MP3 or WAV.