SRT to VTT Converter (Subtitles)
Convert SubRip (.srt) subtitles into WebVTT (.vtt) for HTML5 video and most web players, with an optional time shift.
Results
What this tool does
The HTML5 <track> element, YouTube-style web players and most streaming tools want WebVTT, while subtitles downloaded or exported from editors usually come as SRT. The two are close cousins: VTT adds a WEBVTT header, writes milliseconds after a dot instead of a comma and drops the mandatory cue numbers, so the conversion keeps your text and timing exactly. <i>, <b> and <u> pass through; <font> colours and {\an8} positioning tags from some editors are removed because VTT does not understand them. If the subtitles run early or late, enter a shift in seconds and every time moves by the same amount.
Formula
WEBVTT header ; comma before the milliseconds → dot ; cue numbers and <font> and {\an8} tags removed
Variables
| Symbol | Meaning | Unit |
|---|---|---|
text | SRT subtitles | — |
shift | Shift every time by (negative = earlier) | s |
OUT | WebVTT subtitles | — |
CU | Subtitles converted | — |
DU | Last subtitle ends at | — |
SK | Blocks skipped (no valid times) | — |
Worked example
- SRT subtitles1 00:00:01,000 --> 00:00:04,000 Hello, and welcome. 2 00:00:04,500 --> 00:00:07,250 <i>This line is in italics.</i>
- Shift every time by (negative = earlier)0 s
- WebVTT subtitlesWEBVTT 00:00:01.000 --> 00:00:04.000 Hello, and welcome. 00:00:04.500 --> 00:00:07.250 <i>This line is in italics.</i>
- Subtitles converted2
- Last subtitle ends at00:00:07.250
- Blocks skipped (no valid times)0
Limitations
- The calculation runs entirely in your browser. The values you type are never sent to a server.