Files tool

SRT and VTT Subtitle Converter

Open an SRT or VTT subtitle file, choose a format and optionally shift all cue times.

Runs in your browser. No upload.

Works in your browser. Your files stay on your device.

About this tool

SRT and VTT Subtitle Converter made simple.

The converter keeps cue order, multiline text and millisecond timing for standard files. Review the output in your media player because unusual subtitle extensions may not be preserved.

Guide

Using SRT and VTT Subtitle Converter

The SRT and VTT Subtitle Converter turns a subtitle file from SubRip (.srt) into WebVTT (.vtt), or the other way round. You can also move every cue earlier or later by a number of milliseconds. The file is read in your browser and you get text to check and download. It does not translate, fix wrong words, or sync subtitles to a video by itself.

How to use it

  1. Choose a file ending in .srt, .vtt or .txt. The file is read in your browser and is not sent to a server.
  2. Pick the output format, WebVTT (.vtt) or SubRip (.srt).
  3. If the subtitles are early or late, type a shift in milliseconds. A positive number moves every cue later, a negative number moves it earlier, and 1000 is one second. Leave 0 for no change.
  4. Press Convert subtitles, read the text in the box, then press Download subtitle. Playing the file in your video player is the real check.

Worked examples

SRT to VTT with no shift

You enter
Format
vtt
Shift ms
0
File
1 | 00:00:01,000 --> 00:00:03,500 | Hello there.
You get
Text
WEBVTT, a blank line, then 1 | 00:00:01.000 --> 00:00:03.500 | Hello there.

The converter adds the WEBVTT header and swaps the comma before the milliseconds for a dot. Cue numbers, order and multi-line text stay as they were.

Run through the tool’s own code.

Moving every cue 1.5 seconds later

You enter
Format
vtt
Shift ms
1500
First cue
00:00:01,000 --> 00:00:03,500
You get
First cue
00:00:02.500 --> 00:00:05.000
Second cue
00:00:05.500 --> 00:00:07.500

Both the start and the end of each cue gain 1500 ms. A second cue that began at 4 seconds and ended at 6 seconds therefore becomes 5.5 and 7.5 seconds.

Run through the tool’s own code.

VTT to SRT drops what SRT cannot hold

You enter
Format
srt
Shift ms
0
Cue
00:00:01.000 --> 00:00:03.500 align:start | <v Ann>Hello <i>there</i>.
You get
Cue
1 | 00:00:01,000 --> 00:00:03,500 | Hello <i>there</i>.

The speaker tag and the align:start setting are removed. The italic tag stays. Notes and cue names in the VTT file are dropped too, and cues are numbered from 1.

Run through the tool’s own code.

A shift that pushes a cue before zero

You enter
Format
srt
Shift ms
-1500
First cue
00:00:01,000 --> 00:00:03,500
You get
Error
The time shift would make a cue invalid.

One second minus 1.5 seconds would be below zero, so the whole conversion stops and nothing is output. Use a smaller negative shift or fix the early cue first.

Run through the tool’s own code.

When it helps

  • Turn an SRT file into WebVTT so a web page can load it as a captions track for an HTML video.
  • Turn a WebVTT file back into SRT for a player or editor that only reads SubRip.
  • Fix subtitles that are a steady half-second or two seconds early or late by shifting all cues.
  • Look at the cue timing and text of a file in plain text before you send it on.

Limits to keep in mind

  • Only SRT and WebVTT are read and written. A file with another timing format, or with a cue whose timing line cannot be read, stops the conversion with an error.
  • The shift is one fixed number for the whole file. It cannot stretch the timing to fix subtitles that drift out of sync over the length of a film.
  • A negative shift that makes any cue start before zero rejects the entire file. WebVTT features that SRT lacks, such as notes, styles, regions, cue names, settings and voice tags, are removed when you convert to SRT.
  • The text is read as UTF-8. A file saved in another character encoding can show wrong letters, and the code I read shows no file-size limit message, so very large files depend on your browser.

Tips

  • Keep your original file and download the converted one under a new name, so you can go back if something looks off.
  • Work out the shift from one clear line: note when a sentence is said and when its cue appears, then use the difference.
  • After converting, play the first and last cues in your video player, since players differ in what they accept.

Sources

Common questions

About SRT and VTT Subtitle Converter.

What is the difference between SRT and VTT?

SRT, or SubRip, is a plain text format with numbered cues and a comma before the milliseconds. WebVTT starts with the word WEBVTT, uses a dot before the milliseconds, and can carry extra items such as notes, styles and cue settings. The W3C WebVTT specification defines the second format.

Which way does the timing shift go?

A positive number adds time to every cue, so the subtitles appear later. A negative number takes time away, so they appear earlier. The unit is milliseconds, which means 1000 equals one second and 2500 equals two and a half seconds.

Why do I see "The time shift would make a cue invalid"?

After the shift, at least one cue would start before 00:00:00.000, or its end would not come after its start. The tool refuses the whole file rather than hiding the problem. Try a smaller shift, or remove the early cue in a text editor first.

Does the converter keep italics and other formatting?

Text is carried across as it is when you go from SRT to VTT. From VTT to SRT, simple tags such as italic stay, while voice, class, language and ruby tags, karaoke timestamps and the extra settings on the timing line are removed because SRT has no place for them.

Is my subtitle file uploaded anywhere?

No. The page says your files stay in your browser, and the conversion code runs in a browser worker on your device. The download link is made from the text on the page, so nothing needs to be sent to a server.

Can it fix subtitles that slowly drift out of sync?

No. It adds the same amount to every cue. If the subtitles are right at the start and wrong at the end, the file was made for a different frame rate or cut, and you need a tool that stretches or re-times the whole file.

What if the converted text shows strange characters?

The file was probably saved in an encoding other than UTF-8, which is how the tool reads it. Open the original in a text editor, save it again as UTF-8, and convert that copy. Then compare a few lines with accents or non-Latin letters.

Can I convert SRT subtitles to VTT?

Yes. Open an SRT file, choose WebVTT output and download the converted subtitle file. You can also convert VTT to SRT.

Can I shift all subtitle timestamps?

Yes. Enter a positive or negative time offset to move all cue times. Check the first and last captions after conversion.