Saved

Press the star next to a tool's name to save it.

All my tools

Subtitle Converter (SRT/VTT)

This subtitle converter changes subtitle files between SRT and WebVTT and can shift every timing earlier or later, right in your browser.

The format is detected automatically. Use a positive shift to make subtitles appear later, or a negative one to make them appear earlier.

Your subtitles are converted in your browser. Nothing is uploaded.

Converted subtitles

Paste or choose subtitles and press Convert.

A subtitle converter changes subtitle files between the SRT and WebVTT formats, and can shift every timing earlier or later. Paste your subtitles or choose an .srt or .vtt file, and this subtitle converter detects the format, rewrites every cue in the other format, and lets you copy the result or download it with the right extension. It's handy for adding captions to web videos, which use WebVTT, or to video players and editors that prefer SRT.

SRT and WebVTT

SubRip (.srt) files contain plain text in groups separated by a blank line. Each group has a sequential number starting at 1, a start and end time joined by an arrow (-->), the subtitle text on one or more lines, and a blank line to end it. Times use the format hours:minutes:seconds,milliseconds, such as 00:02:16,612, with a comma before the milliseconds. The format has been described as perhaps the most basic of all subtitle formats.

WebVTT (Web Video Text Tracks, .vtt) is a W3C standard for timed text used with the HTML5 track element, and all major browsers support its basic features. It was based on SubRip but isn't fully compatible with it. The main differences: a WebVTT file starts with the line WEBVTT, the milliseconds are separated by a full stop instead of a comma, hours are optional, the cue numbers are optional, and it can include comments starting with NOTE, cue settings for positioning, and styling.

What the converter does

  • SRT to WebVTT: adds the WEBVTT header and changes the comma in each time to a full stop.
  • WebVTT to SRT: removes the header, NOTE comments, STYLE and REGION blocks and cue settings, adds hours where they're missing, changes the full stop to a comma and numbers each subtitle from 1.
  • Text is kept exactly, including line breaks and simple tags such as italics.
  • Timing shift: optionally moves every subtitle by the same number of seconds.

How to use the subtitle converter

  1. Choose an .srt or .vtt file, or paste the subtitles into the box.
  2. Pick the target format, or leave it on The other format.
  3. Enter a timing shift if your subtitles are early or late.
  4. Press Convert, then copy or download the result.

Example

This SRT cue:

1
00:02:16,612 --> 00:02:19,376
Senator, we're making our final approach.

becomes this in WebVTT:

WEBVTT

00:02:16.612 --> 00:02:19.376
Senator, we're making our final approach.

With a shift of 2 seconds, the times become 00:02:18.612 --> 00:02:21.376.

Fixing out-of-sync subtitles

If every subtitle appears a little too early or too late, the whole file needs the same shift. Watch for a line of dialogue, note how far off the subtitle is, and enter that as the shift: positive to make subtitles appear later, negative to make them appear earlier. Times never go below zero. If subtitles drift more and more out of sync through the video, the frame rate differs, which a single shift can't fix.

Using WebVTT on a website

To add captions to an HTML5 video, upload the .vtt file to your site and reference it with a track element inside the video element, with kind set to subtitles or captions and the language set. Browsers show a captions button so viewers can turn them on. Save the file as UTF-8, which WebVTT requires for extended characters.

Is it private?

Yes. Your subtitles are read and converted in your browser and never uploaded.

Formatting tags

Subtitles often contain simple formatting such as italics. SRT files commonly use HTML-style tags such as <i> for italics, <b> for bold and <u> for underline, and WebVTT supports similar tags in cue text. The converter keeps these tags exactly as they are, so italics in your SRT stay italic in WebVTT and the other way round. Color tags that some SRT files use may not display in every player.

Cue settings and positioning

WebVTT can position each cue on the screen with cue settings after the end time, such as align:start or line:90%. SRT has no equivalent, so these settings are removed when converting to SRT, and every subtitle appears in the player's default position, usually centered at the bottom. When converting from SRT to WebVTT, no positioning is added.

Large files and long videos

Files up to 5 MB of text are converted in your browser, which covers subtitles for even very long films. The result shows how many subtitles were converted, so you can check none were missed. If a file contains subtitles without timings, or blocks that don't follow the format, they're skipped, and the count will be lower than the number of subtitles you expected.

Common mistakes

  • Renaming .srt to .vtt without converting; the comma timings and missing header break it.
  • Shifting in the wrong direction. Positive makes subtitles later.
  • Missing blank lines between SRT subtitles.
  • Wrong text encoding. Save as UTF-8.

What next

Use this often? Add Subtitle Con to your Home screen.

Frequently asked questions

How does the subtitle converter work?

It reads every cue in your SRT or WebVTT file and writes it in the other format, changing the time format and header, with an optional timing shift.

What's the difference between SRT and VTT?

WebVTT starts with WEBVTT, uses a full stop before milliseconds, has optional hours and cue numbers, and supports notes and styling; SRT uses numbered cues and a comma.

Can I fix subtitles that are out of sync?

Yes. Enter a timing shift in seconds: positive to make subtitles appear later, negative to make them earlier.

Will my subtitle text change?

No. The text and line breaks are kept; only the timings and format change.

Are my files uploaded?

No. Everything happens in your browser.

What went wrong?

We only receive the reason you pick, never what you typed into the tool.

Thanks for your feedback.

More Developer Tools