May 30, 2026
SRT to VTT for HTML5 Video: WebVTT Conversion Guide
Convert SRT subtitles to VTT for HTML5 video, course platforms, and web players. Learn the timestamp changes, WEBVTT header rules, QA checks, and fixes.
SRT is the most common subtitle format, but the web has its own native caption format: WebVTT. If you want subtitles to work in an HTML5 <video> element, you usually need to convert SRT to VTT.
This guide explains the exact differences between SRT and VTT, how to convert the file, and how to avoid the most common browser playback issues.
Quick Answer
Use the SRT to VTT Converter to turn a .srt file into a .vtt file. The conversion adds a WEBVTT header, changes comma-based SRT timestamps into period-based VTT timestamps, and keeps the subtitle text and cue timing.
If you need to convert in another direction, use the Subtitle Converter for SRT, VTT, and ASS workflows.
SRT vs VTT: What Is Different?
SRT and VTT look similar, but they are not identical.
| Feature | SRT | VTT |
|---|---|---|
| File extension | .srt | .vtt |
| Header | No required header | Must start with WEBVTT |
| Timestamp separator | Comma, like 00:00:01,000 | Period, like 00:00:01.000 |
| Sequence numbers | Common and expected | Optional |
| Web video support | Not native in HTML5 | Native with <track> |
That timestamp detail is the reason a simple rename from .srt to .vtt is not enough.
Example: SRT to VTT
An SRT cue looks like this:
1
00:00:01,000 --> 00:00:04,000
Welcome to the lesson.
The WebVTT version looks like this:
WEBVTT
00:00:01.000 --> 00:00:04.000
Welcome to the lesson.
The text is the same, but the file structure is valid for browsers and web players.
Step-by-Step: Convert SRT to VTT Online
- Open the SRT to VTT Converter.
- Upload your
.srtsubtitle file or paste the subtitle text. - Check that the cues were parsed correctly.
- Convert to WebVTT.
- Download the
.vttfile. - Add it to your HTML5 video or upload it to your platform.
For example:
<video controls>
<source src="/course-video.mp4" type="video/mp4" />
<track
src="/course-captions.vtt"
kind="subtitles"
srclang="en"
label="English"
default
/>
</video>
When You Need VTT Instead of SRT
Use VTT when you are publishing captions for:
- HTML5 video on a website.
- Custom web players.
- Course and learning platforms.
- Web apps that use
<track>captions. - Some streaming and accessibility workflows.
Use SRT when you are working with:
- YouTube uploads.
- General video players.
- Editing software.
- Subtitle translation workflows.
- Simple distribution to users.
If you already have VTT and need the broader SRT format, use VTT to SRT.
Common SRT to VTT Problems
The browser does not show captions
Check that the file begins with WEBVTT, uses .vtt, and is served with a valid text MIME type by your server or platform.
The file was only renamed, not converted
If timestamps still use commas, the file is not valid WebVTT. Convert it properly with SRT to VTT.
Captions are out of sync
The format conversion does not change timing. If timing was already wrong in the SRT file, fix it with the Online Subtitle Editor before or after conversion.
Special characters look broken
Use UTF-8 encoding. Encoding problems are common when subtitles include Chinese, Japanese, Arabic, Cyrillic, or accented characters.
QA Checklist Before Publishing
Before you publish your .vtt file, confirm:
- The first line is
WEBVTT. - Timestamps use periods before milliseconds.
- There is a blank line between cues.
- The cue text is readable and not too long.
- The language code in
srclangmatches the subtitle language. - The captions display in the actual player your audience will use.
FAQ
Can I just rename .srt to .vtt?
No. Some players may tolerate it, but valid WebVTT needs a WEBVTT header and period-based timestamps. Use a converter instead of renaming the file.
Does SRT to VTT change subtitle timing?
No. The conversion preserves timing. It only changes the subtitle format.
Is VTT required for HTML5 video?
For the native <track> element, WebVTT is the standard format. That is why VTT is the safest choice for browser captions.
Can I edit the VTT after conversion?
Yes. Open the converted file in the Online Subtitle Editor to adjust timing, fix text, or clean up long cues.
Summary
Convert SRT to VTT when you need subtitles for HTML5 video or web platforms. The key changes are simple but important: add the WEBVTT header, use period-based timestamps, and keep the cue text clean. The fastest workflow is to convert with the SRT to VTT Converter, test the result in your web player, then fix any timing issues in the Subtitle Editor.