.vtt · text/vtt
WebVTT: Web Video Text Tracks Format
WebVTT (W3C) is the web-standard caption format starting with a mandatory WEBVTT header, dot-millisecond timestamps, and optional cue positioning settings.
Quick Answer: WebVTT (W3C) is the web-standard caption format starting with a mandatory WEBVTT header, dot-millisecond timestamps, and optional cue positioning settings. HTML5 <video> <track> captions, HLS/DASH web streaming, and accessible browser video embeds.
| Structure type | Subtitle |
|---|---|
| Human readability | High |
| Nesting support | No |
| LLM token efficiency | Medium |
| File extension | .vtt |
| MIME type | text/vtt |
| Best for | HTML5 <video> <track> captions, HLS/DASH web streaming, and accessible browser video embeds. |
Strengths
- Native caption format in Chrome, Safari, Firefox, and Edge <track> elements
- Supports cue positioning, CSS ::cue styling, chapters, and metadata tracks
- Mandatory UTF-8 encoding prevents legacy code-page garbling on the web
Trade-offs
- Omitted hours (MM:SS.mmm) or inline <c> styling tags break naive SRT parsers
- Desktop players and legacy editors often prefer .srt over .vtt
- YouTube auto-captions export rolling duplicate cue lines that clutter transcripts
References
Convert & clean WebVTT locally
Related engineering guides
- SRT vs WebVTT vs ASS: Subtitle Conversion & Sync GuideLearn the exact timestamp rules for SRT, WebVTT, and ASS/SSA subtitles—convert formats, clean rolling captions, and fix audio sync locally.
- Fixing GBK, Big5, Shift-JIS & EUC-KR Garbled Text LocallyDiagnose and repair garbled Chinese, Japanese, and Korean text files (GBK, GB18030, Big5, Shift-JIS, EUC-KR) to clean UTF-8 without uploading.
Related Formats
All 24 formatsWebVTT frequently asked questions
Why won't my HTML5 <video> element display an .srt file directly?
Browsers only support WebVTT (.vtt) inside HTML5 <track> tags. Converting SRT to WebVTT adds the WEBVTT header and converts comma milliseconds to dots.
Does VTT to SRT handle WebVTT cues that omit the 00: hour prefix?
Yes. TxtTo normalizes short MM:SS.mmm timestamps into full HH:MM:SS,mmm SubRip format and strips optional WebVTT cue styles.
How do I clean duplicate lines in YouTube .vtt transcripts?
Run the file through SRT to TXT with rolling-caption deduplication enabled to collapse repeated incremental lines.