To save files, open this page in Safari.
This app's browser often cannot save files. Tap the menu (three dots) and choose Open in browser or Open in Safari.
To save files, open this page in Chrome.
This app's browser often cannot save files. If the link does nothing, tap the menu (three dots) and choose Open in browser.
SRT to VTT converter
Convert SRT subtitles to WebVTT in about a second. Free, no signup, and your file never leaves this device.
Drop a subtitle file hereOpen a subtitle file
SRT, VTT, ASS, SSA, SBV, SMI, TTML, TXT, or a ZIP from a subtitle site
Your file stays on this device. Nothing is uploaded. How?
How it works
- 1 Open your SRT file Pick it, drop it or paste the text. A ZIP from a subtitle site opens directly.
- 2 It is converted and checked The VTT file is written at once and checked against the WebVTT rules that browsers follow.
- 3 Download the VTT Your file name stays the same; only the extension changes to .vtt.
Your files stay on this device
Opening, checking, fixing, syncing and converting all happen in your browser. Your subtitle file and its text are never sent to our server, so we never store or log them.
What changes from SRT to VTT
SRT and WebVTT (VTT for short) look almost the same, but browsers are strict about the details. This is what the converter changes in every file.
| Part of the file | In SRT | In VTT |
|---|---|---|
| First line | Nothing special | WEBVTT, required |
| Cue numbers | 1, 2, 3 before each line |
Optional, so they are left out |
| Timecodes | 00:01:02,345 with a comma |
00:01:02.345 with a full stop |
| Italic, bold, underline | <i>, <b>, <u> |
The same tags, kept |
| Line at the top of the screen | {\an8} |
The cue setting line:0 |
| Colors | <font color="#ffff00"> |
The nearest of the 8 WebVTT colors, such as <c.yellow> |
The characters & and < in text |
Written as they are | & and <, as WebVTT requires |
| Strikeout and font names or sizes | <s>, <font face="..."> |
Not supported in WebVTT, so they are dropped |
Timing stays exact to the millisecond, and line breaks stay where they were. If your file uses anything WebVTT cannot show, the converter lists it for your file before you download, with the number of lines affected. Most SRT files have none of it, and then nothing is lost.
Example: the same lines in SRT and VTT
Here is a short SRT file with three lines: one in italics, one placed at the top of the screen, and one in yellow.
1
00:00:01,000 --> 00:00:03,500
<i>Where were you?</i>
2
00:00:04,200 --> 00:00:06,000
{\an8}Tom & Ana's flat, 9:40 PM
3
00:00:06,500 --> 00:00:09,000
<font color="#ffff00">Out. Don't wait up.</font>
This is the VTT file the converter writes from it:
WEBVTT
00:00:01.000 --> 00:00:03.500
<i>Where were you?</i>
00:00:04.200 --> 00:00:06.000 line:0
Tom & Ana's flat, 9:40 PM
00:00:06.500 --> 00:00:09.000
<c.yellow>Out. Don't wait up.</c>
The header came first, the cue numbers went, and every comma in a timecode became a full stop. The {\an8} tag turned into line:0, which puts the line at the top in a browser. The & became &, which a browser shows as a plain &. The yellow font tag became the built-in yellow color class.
Checked before you download
A VTT file that looks fine can still play with no captions at all, because browsers skip whatever breaks the rules. So the converted file is read back with a strict WebVTT parser, the same way a browser reads it, and the usual file check runs on its lines as well. You see the result in plain words:
- the header is exactly
WEBVTT, so the browser accepts the file; - every timecode has the form a browser reads, so no line is skipped;
- empty lines and lines that overlap in time are pointed out, with a one-click fix for the safe ones.
The check never stops you from downloading. It tells you what a viewer would notice, and you decide.
Use the VTT file in an HTML5 video player
Web pages show subtitles through the HTML <track> element, which takes WebVTT files. Put the VTT file next to your video and add a track inside the video element:
<video controls src="lesson.mp4">
<track kind="subtitles" src="lesson.vtt" srclang="en" label="English" default>
</video>
srclang is required when kind is subtitles, label is the name viewers see in the captions menu, and default turns the track on. The VTT file must come from the same site as the page, unless the video element has a crossorigin attribute and the other server allows it.
Convert SRT to VTT by hand
For a short file you can do it in any text editor:
- Add
WEBVTTas the very first line, then one empty line. - In every timecode, change the comma before the milliseconds to a full stop:
00:00:01,000becomes00:00:01.000. Do not replace every comma in the file, or the commas in the dialogue change too. - Save the file as UTF-8 with the extension
.vtt.
If a line of dialogue contains & or <, write them as & and <. Cue numbers can stay; WebVTT reads them as optional names for the cues. For a long file, or one with colors and positions, the converter is faster and does not miss a timecode.
Troubleshooting: captions not showing on the web page
- Nothing shows at all. The first line must start with
WEBVTTin capitals. A lowercasewebvttor an empty line before it makes browsers ignore the whole file. - Some lines are missing. Those cues probably still have a comma in a timecode, or fewer than three digits after the full stop, such as
00:00:01.5. Browsers skip each such cue. - A line stops halfway. WebVTT ends a cue at any line containing
-->. The converter writes it as-->so the text stays whole. - The track works locally but not on the live site. Check that the VTT file is on the same site as the page, or that
crossoriginis set and the other server allows it. - Captions appear early or late. The timing came from the SRT file. Fix it with sync subtitles, then convert again.
Frequently asked questions
Can I convert SRT to VTT without losing anything?
Usually, yes. Text, timing, line breaks, italics, bold and underline carry over exactly. Only strikeout, font names and sizes, and codes in curly braces such as {\i1} are dropped, and colors become the nearest of the eight standard WebVTT colors. The converter tells you if your file has any of these before you download.
What is the difference between an SRT and a VTT file?
Both are plain text files with numbered or named lines and timecodes. VTT is the web standard: it starts with a WEBVTT line, uses a full stop in timecodes and can say where a line appears on screen. Browsers need VTT; desktop players and TVs usually prefer SRT. What is an SRT file? explains the SRT side in detail.
Will italics and bold still work?
Yes. <i>, <b> and <u> are written the same way in both formats, so they are kept as they are.
Why does my web page need VTT and not SRT?
The HTML <track> element only reads WebVTT. Browsers do not play SRT files on their own, so a web video player needs the VTT version.
Do I need to install anything?
No. The converter runs in your web browser on a computer or phone. There is no program to install and no account to create.
Can I turn VTT back into SRT?
Yes. Use the VTT to SRT converter, which also lists the VTT settings that SRT cannot keep. For other formats, such as ASS or SBV, use the subtitle converter.