SRT to VTT Converter
Converts SRT subtitles to WebVTT and WebVTT back to SRT, picking the direction from the file. It can also shift every time, repair broken timing lines and convert a batch of files into one ZIP.
- Runs in your browser
- Nothing uploaded
- Free, no sign-up
Ctrl/⌘+Enter converts. Updates as you type.
Files are read and converted in this browser tab. Nothing is uploaded.
How to Use SRT to VTT Converter
- Paste subtitles or click Open files to load one or more .srt or .vtt files. Dropping files on the box works too.
- Leave Convert to on Auto to switch the format, or pick VTT or SRT to clean up a file without changing its format.
- Set Shift all times in milliseconds if the subtitles run early or late, and choose how tags, cue numbers and line endings are written.
- Read the problem list under the options. Each entry gives the input line number to check.
- Click Download, or Download all (.zip) when you opened several files.
Example: an SRT file with three common problems
This is the Sample file. It uses Windows line endings, cue 3 has a dot where SRT needs a comma, cue 2 has a {\an8} code that puts it at the top of the screen, and cue 4 uses a <font> colour tag:
1
00:00:01,200 --> 00:00:03,900
<i>Previously on the show...</i>
2
00:00:04,500 --> 00:00:07,250
{\an8}[DOOR OPENS]
3
00:00:07.800 --> 00:00:10,000
Where were you last night?
- I was at work.
4
00:00:10,400 --> 00:00:12,100
<font color="#ffff00">Again?</font>
With Convert to on Auto, the tool reads it as SRT and writes this WebVTT file:
WEBVTT
1
00:00:01.200 --> 00:00:03.900
<i>Previously on the show...</i>
2
00:00:04.500 --> 00:00:07.250 line:0
[DOOR OPENS]
3
00:00:07.800 --> 00:00:10.000
Where were you last night?
- I was at work.
4
00:00:10.400 --> 00:00:12.100
Again?
The status line under the result says: “Read as SRT · 4 cues · 00:00:01.200 to 00:00:12.100” and lists the repairs: one timing line with a non-standard separator fixed, 2 tags removed, and one {\an} code turned into a cue setting. {\an8} became the WebVTT setting line:0, and the font tag went because WebVTT has no font tag.
The other direction works the same way. A WebVTT cue written as <v Anna>Hi <c.loud>there</c></v> with the setting line:0 comes out in SRT as {\an8}Anna: Hi there.
SRT and WebVTT side by side
| SRT (.srt) | WebVTT (.vtt) | |
|---|---|---|
| First line | The first cue number | WEBVTT, optionally followed by a space and a title |
| Cue numbers | Required, counting 1, 2, 3 | Optional, and any text can be an ID |
| Time format | 00:01:02,500 with a comma |
00:01:02.500 with a dot; hours can be left out, as in 01:02.500 |
| Text styling | <b>, <i>, <u>, and <font color> in most players |
<b>, <i>, <u>, plus classes <c.name>, voices <v Name>, language, ruby and karaoke timing tags |
| Position on screen | No standard; many players read {\an1} to {\an9} |
Cue settings after the times: line, position, size, align, vertical, region |
| Comments and CSS | None | NOTE blocks, and STYLE blocks with CSS |
HTML5 <track> |
Browsers do not play it | The format browsers play |
| Usual MIME type | application/x-subrip (not officially registered) |
text/vtt |
How it works
- The format is detected from the text. A file that starts with
WEBVTTis WebVTT. Without that header, the separator in the first timing line decides: a comma means SRT, a dot means WebVTT. - Each block between blank lines is one cue. The line with
-->holds the times, a line above it is the cue number or ID, and the lines below it are the text. - Times are read leniently.
0:0:1,5,00:00:01:500and arrows typed as->or→are all understood, then written back in the strict form of the target format. A one-digit fraction counts as tenths, so1,5is 1.5 seconds. - Going to SRT, cues are always renumbered from 1, and WebVTT settings, NOTE, STYLE and REGION blocks are removed because SRT cannot hold them. Voice tags can become a “Name:” prefix, and a cue placed at the top with
line:0gets{\an8}. - Going to WebVTT,
<font>tags are removed.{\an7}to{\an9}becomeline:0(top),{\an4}to{\an6}becomeline:50%, and the left and right columns addalign:startoralign:end. - The time shift is added to every start and end time. A cue pushed before zero starts at 00:00:00.000; a cue that would end before zero is removed. The status line counts both.
- Files that are not valid UTF-8 are read as Windows-1252, the usual encoding of older Western European SRT files. Files with a UTF-16 byte order mark are read as UTF-16. The output is always UTF-8.
Limits
- It reads and writes SRT and WebVTT only. ASS/SSA, SUB, SBV and TTML need a different converter.
- The shift moves every cue by the same amount. It cannot stretch timing made for another frame rate, such as 23.976 fps subtitles on a 25 fps video.
- A blank line inside a subtitle ends the cue in both formats. The tool joins that text back to the cue above and warns you, but check the result.
- Files over 20 MB are skipped. Real subtitle files are almost always under 1 MB.
Frequently asked questions
How do I use an SRT file with an HTML5 video?
Convert it to VTT here, then add <track kind="subtitles" src="captions.vtt" srclang="en" label="English"> inside the <video> element. Browsers only play WebVTT in a track element, so an .srt file there shows nothing.
My subtitles are out of sync. Can I fix that here?
Yes, if every line is early or late by the same amount. Enter 2500 in Shift all times to move every cue 2.5 seconds later, or -2500 to move it 2.5 seconds earlier. If the gap keeps growing during the video, the file was timed for a different frame rate and needs re-timing rather than a shift.
Why do accented letters look wrong after converting?
A black diamond with a question mark usually means the file was saved as Windows-1252 and read as UTF-8; this tool spots that and saves proper UTF-8. Pairs like “é” mean a player is reading UTF-8 as Windows-1252; tick Add a UTF-8 BOM so it can tell the encoding.
Does converting VTT to SRT lose anything?
Text, times, bold, italic and underline survive. WebVTT position settings, class tags, NOTE comments and STYLE blocks have no SRT form and are removed. A cue placed at the top keeps that position as {\an8}, which most players understand.
Related Tools
SRT Subtitle Shifter Online →
Shift all the timestamps in an SRT subtitle file forward or backward by a…
Base64 to PDF Decoder And Viewer →
Decodes Base64 or a data:application/pdf URI into a PDF you can preview and download,…
Compress PDF →
Optimize and shrink a PDF in your browser by re-saving it efficiently and stripping…
Crop PDF →
Trim the margins off every page of a PDF by a percentage and download…
Convert CSV to JSON →
Converts CSV or TSV to JSON in your browser. It detects the separator, handles…
Convert CSV to Markdown Table →
Convert CSV to GitHub-flavored Markdown table with per-column alignment, HTML preview, delimiter auto-detect. Free,…
Convert CSV to PDF Table →
Convert CSV to formatted PDF tables in your browser. Custom orientation, font size, alternate…
Convert CSV to XML →
Convert CSV to XML with custom tag names, element/attribute modes, CDATA wrap, headerless mode.…
Convert CSV to YAML →
Convert CSV to YAML with smart type detection, multi-line block scalars, reserved-word quoting (no…
CSV Viewer →
View CSV/TSV files as a searchable, sortable table. RFC 4180 parser, XSS-safe rendering, file…
Delete PDF Pages →
Remove the pages you do not need from a PDF and download the smaller…
Convert Epub to Text →
Extract plain text from EPUB eBooks - metadata, chapters, alt text. Free, offline (after…