SRT to VTT Converter: Batch Files, Timing Shift, Track Tag
Convert SRT to VTT (WebVTT) in your browser. Paste or upload, batch .srt files into a zip, shift timing by seconds, preview cues, copy the track snippet.
SRT to VTT Converter
Files never leave your browser0 lines · 0 chars · 0 B
0 lines · 0 chars · 0 B
Use it in a <video> with <track>
<video controls width="640"> <source src="video.mp4" type="video/mp4"> <track kind="subtitles" src="captions.vtt" srclang="en" label="English" default> </video>
Serve the file as text/vtt. A server that sends text/plain makes the browser ignore the track with no error, the same as a missing WEBVTT header.
Don't take our word for it — turn your wi-fi off.
This tool keeps working with no connection at all, because your file is processed here in the browser. A site that uploads your file cannot do that. Disconnect and try it — this box will notice.
Prefer to check properly? Open DevTools → Network, then run the tool. Your file appears in no request. Why none of our tools upload
You're on 7BusyBoss — 300+ free tools that run instantly in your browser. No signup, nothing uploaded.
To convert SRT to VTT you put the line WEBVTT at the top, leave a blank line after it, and change the comma before the milliseconds to a dot: 00:01:23,456 becomes 00:01:23.456. The cue numbers can go. That is the whole job for a plain file, and this SRT to VTT converter does it as you paste, or for a batch of .srt files at once.
SRT vs VTT: what changes in the file
WebVTT grew out of SRT, so a cue looks almost the same in both. The differences are small and every one of them matters to a browser.
| Feature | SRT | VTT (WebVTT) | What the converter does |
|---|---|---|---|
| Header | None | WEBVTT on line 1, then a blank line | Adds it |
| Milliseconds separator | Comma: 00:01:23,456 | Dot: 00:01:23.456 | Rewrites every timestamp |
| Cue numbers | Required by most players | Optional text identifiers | Drops them |
| Hours | Two digits, sometimes one | Optional, two digits when present | Writes two digits always |
| Styling | <i>, <b>, <font> by convention | <i>, <b>, <u>, <c>, <v>, STYLE blocks | Copies cue text as is |
| Positioning | None (player specific extensions) | Settings after the timestamp: line, position, align | None added |
| Line endings | Often CRLF from Windows editors | LF or CRLF both valid | Writes LF |
| MIME type when served | — | text/vtt | Your server's job |
Worked example
The three-cue sample under the Load example button converts like this. Only three things change per cue.
| SRT line | VTT line |
|---|---|
| — | WEBVTT followed by a blank line |
1 | dropped |
00:00:01,000 --> 00:00:04,000 | 00:00:01.000 --> 00:00:04.000 |
Welcome to the show. | Welcome to the show. |
2 | dropped |
00:00:05,500 --> 00:00:09,200 | 00:00:05.500 --> 00:00:09.200 |
Timestamps are parsed to whole milliseconds and written back from those integers. 00:01:23,456 is 83,456 ms, and it comes out as 00:01:23.456 however many times you convert it. A single-digit hour such as 1:23:45,678 is read fine and written as 01:23:45.678.
Shift timing when captions are out of sync
Captions that run late or early by a fixed amount are the most common complaint after a re-encode or a trimmed intro. The Shift timing box moves every cue by the number of seconds you type. Negative is earlier, positive is later, decimals are fine.
Enter −0.5 and the first sample cue moves from 00:00:01,000 to 00:00:00.500. Enter 2.25 and the second cue, 00:00:05,500 --> 00:00:09,200, becomes 00:00:07.750 --> 00:00:11.450. The shift applies to the pasted text and to every file in the batch list, and the preview updates as you change it.
Two rules keep the output valid. A cue is never allowed to start before 0:00, so a start that would go negative is clamped to zero. A cue that would end at or before 0:00 is dropped, and the tool tells you how many went.
Batch convert several SRT files to a zip
Switch to Batch files, pick as many .srt files as you like, and each one is converted in your browser the moment it loads. The table shows the output name, the cue count and a status: converted, converted with a note about skipped blocks, or an error for a file with no readable cues. Download one file at a time or everything as subtitles-vtt.zip. Every file keeps its own name with a .vtt extension, so episode-03.srt becomes episode-03.vtt. Nothing is uploaded, which also means a 200-file season takes as long as your laptop needs and no longer.
Files that trip up other converters
- A byte-order mark. Windows editors often write an invisible BOM before the first cue number, which makes strict parsers reject cue 1. It is stripped.
- Windows line endings. CRLF is normalised to LF before parsing, so a
\rnever ends up glued to a timestamp. - Missing blank lines. Some transcription exports run cues together with no empty line between them. Split on blank lines, that is one giant cue. The parser puts the blank line back before each timing line (and its cue number) and converts every cue.
- Missing cue numbers. A file with only timestamps and text converts the same way.
- Malformed blocks. A block whose timestamp cannot be read is skipped and named in an amber warning (up to 5 block numbers, then a count), and the rest of the file still converts.
- Trailing settings on the timing line. Anything after the end time is ignored.
Use the .vtt with a video tag
The snippet under the converter is ready to paste. It names your output file, and you can set the language code and the label shown in the player menu.
<track kind="subtitles" src="captions.vtt" srclang="en" label="English" default>
Three things make a track fail with no error message. The file lacks the WEBVTT header. The server sends it as text/plain instead of text/vtt. Or the file sits on another origin without a CORS header while the video tag has crossorigin set. Fix the header here, then check the response headers in the browser's network tab for the other two. The default attribute turns the track on without the viewer picking it.
How to use this SRT to VTT converter
- Paste SRT text, or click Upload file and pick a .srt. The VTT appears in the right-hand box as you type, with a line and byte count under it.
- If the captions need to move, type the offset in seconds in the Shift timing box. Check the preview table, which lists the first 5 cues with their new start and end times.
- Copy the output or click Download, which names the file after your upload.
- For several files, switch to Batch files, add them, and click Download all as .zip. The same offset applies to all of them.
- Set srclang and label, then Copy snippet to get the video and track markup for your page.
Going the other way, the VTT to SRT converter strips the header and restores the commas and cue numbers. For YouTube's format use SRT to SBV, or SBV to VTT if that is what you were handed.
Limits
- Cue text is copied verbatim.
<i>and<b>are valid in both formats and keep working. SRT-only tags such as<font color="...">are not WebVTT, and browsers will not style them, so remove them or replace them with a<c>class and a STYLE block by hand. - No positioning settings are generated. If a caption needs to sit at the top of the frame, add
line:0after the timestamp yourself. - Each file is limited to 5 MB, which is far beyond any real subtitle file.
- Cue identifiers are not generated, so cues cannot be addressed from JavaScript by name without editing the file.
How to use the SRT to VTT Converter
Takes about a minute. No signup, no download, your data stays in your browser.
- 1Open the tool. Scroll up to the SRT to VTT Converter above — it loads instantly in your browser, no install needed.
- 2Enter your values. The fields come pre-filled with realistic defaults so you can see how it works — replace them with your own numbers.
- 3Read the result. The output updates instantly. Copy or share it — nothing is uploaded to a server, everything stays on your device.
Frequently asked questions
Common questions about the SRT to VTT Converter.
How do I convert SRT to VTT?
Add the line WEBVTT at the top of the file with a blank line after it, change the comma in each timestamp to a dot (00:01:23,456 to 00:01:23.456), and optionally delete the cue numbers. This converter does all three as you paste, or for a folder of .srt files at once, and gives you the file as a download or a zip.
What is the difference between SRT and VTT?
WebVTT is the HTML5 caption format and SRT is the older plain-text one. VTT starts with a WEBVTT header, uses a dot before milliseconds where SRT uses a comma, makes cue numbers optional, and adds things SRT has no place for: positioning settings after the timestamp, voice and class tags, and STYLE blocks. A plain SRT converts losslessly; the extras only matter going the other way.
Why does my VTT file not show in the video track element?
Check three things in order. The first line of the file must be WEBVTT. The server must send the file as text/vtt, since text/plain is rejected without an error. And if the file is on another domain while the video tag has crossorigin set, it needs a CORS header. The browser's network tab shows the content type it received.
Can I convert multiple SRT files to VTT at once?
Yes. Switch to Batch files, select any number of .srt files, and each is converted in the browser as it loads. Download them one by one or as subtitles-vtt.zip. Each output keeps the original name with a .vtt extension, and the timing offset you set applies to every file in the list.
How do I fix subtitles that are out of sync while converting?
Type the correction in seconds in the Shift timing box. Negative moves every cue earlier, positive moves it later, and decimals work: −0.5 turns 00:00:01,000 into 00:00:00.500. A cue that would start before zero is clamped to 0:00, and one that would end before zero is dropped with a note saying how many. The preview shows the first 5 cues after the shift.
Does converting SRT to VTT keep the timing exact?
Yes. Each timestamp is parsed to an integer number of milliseconds (00:01:23,456 is 83,456 ms) and written back from that integer, so there is no rounding and no drift, whatever the file size and however many times you convert it. The only change in the value is the separator, comma to dot.
What happens to italics, bold and font tags in the SRT?
Cue text is copied unchanged. Italic and bold tags are valid WebVTT, so they still render. A font tag with a colour is an SRT convention that WebVTT does not define, and browsers show the text without the colour. For colour in WebVTT, wrap the text in a class tag and add a STYLE block after the header, which you have to do by hand.
Community rating
Discussion (0)
No comments yet. Start the discussion.
Keep exploring
Related tools across 7BusyBoss — all free, all instant.
More in Subtitle Converters
- VTT to SRT Converter
- SBV to SRT Converter
- SRT to SBV Converter
- VTT to SBV Converter
- SBV to VTT Converter