SRT to WebVTT Converter

Convert SubRip .srt subtitle files to WebVTT .vtt for HTML5 video

Ad placeholder (leaderboard)

WebVTT is the captioning format that HTML5 video understands through the <track> element, while SubRip (.srt) is the format most subtitle editors and download sites produce. The two are nearly identical, which is why converting between them is fast and lossless. This tool turns an .srt into a browser-ready .vtt.

How it works

The converter normalises line endings, strips a leading byte-order mark if present, and walks the file cue by cue. For each cue it:

  1. Reads the optional index — the bare number above the timestamps. WebVTT allows an identifier line, so this is kept.
  2. Rewrites the timing line. A SubRip timing line such as 00:00:01,000 --> 00:00:04,000 becomes 00:00:01.000 --> 00:00:04.000. The only change is the comma before the milliseconds turning into a dot. Timestamps with a single-digit hour are padded to two digits, and any SubRip positioning coordinates after the times — which WebVTT doesn’t accept in that form — are removed.
  3. Copies the text lines verbatim until the blank line that ends the cue.

Finally it prepends the mandatory WEBVTT header. Without that header browsers reject the track entirely.

Inline tags

Basic styling tags such as <i> (italic) and <b> (bold) are valid in both SubRip and WebVTT, so they pass straight through. If your captions rely on them, the formatting survives the conversion.

Example

A SubRip cue:

1
00:00:01,000 --> 00:00:04,000
Welcome to the demo subtitle.

becomes, after the WEBVTT header:

WEBVTT

1
00:00:01.000 --> 00:00:04.000
Welcome to the demo subtitle.

You can then reference the file from a video element:

<track kind="subtitles" src="subtitles.vtt" srclang="en" label="English">

Everything runs in your browser — your subtitles are never uploaded.

Ad placeholder (rectangle)