.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 typeSubtitle
Human readabilityHigh
Nesting supportNo
LLM token efficiencyMedium
File extension.vtt
MIME typetext/vtt
Best forHTML5 <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

Related Formats

All 24 formats

WebVTT 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.