What Is a VTT File? The WebVTT Format Explained
A VTT file is a plain-text subtitle file for the web: the format browsers load through the HTML5 track element to display captions. Each cue pairs a line of text with start and end times, just like SRT, plus a few web-only extras. Read the example below, then open your own .vtt file in the free viewer underneath — everything runs locally in your browser.
Reviewed by the SRT Tools team · Updated
sample.vtt — a complete WebVTT file example
WEBVTT NOTE A comment block — parsers skip it intro 00:00.500 --> 00:02.800 In a quiet workshop, a subtitle file wakes up. 00:03.000 --> 00:06.400 position:50%,line-left align:start Every cue keeps its timing with a dot before the milliseconds. 00:06.600 --> 00:10.000 This WebVTT sample has a NOTE, a cue identifier, and cue settings.
Private by design: parsing, conversion and download all happen on your device. No file content ever leaves your browser.
In a quiet workshop, a subtitle file wakes up.
Every cue keeps its timing with a dot before the milliseconds.
This WebVTT sample has a NOTE, a cue identifier, and cue settings.
- A NOTE comment block was ignored (it is not a subtitle).
- Cue identifiers were parsed and dropped; output cues are renumbered.
- Cue settings (align / line / position …) were parsed and left out of the visible text; they do not transfer to SRT.
- 11
- free tools
- 6
- languages
- 0
- file uploads, ever
- 2 MB
- max file size
- 10,000
- cues per file
How to Open a VTT File in 4 Steps
The viewer below is preloaded with the example above, so you can see how a VTT file parses before you open your own.
- 1
Read the example
The sample above is a valid VTT file: a WEBVTT header, a NOTE comment, a cue identifier and one cue setting. The viewer underneath has already parsed it.
- 2
Add your own .vtt file
Switch to the upload tab and drag the file in, or paste the WebVTT source into the text tab. The VTT file is validated the moment it arrives.
- 3
Inspect the cue timeline
Each cue shows its number, start and end timestamps and full text, while NOTE blocks and settings are reported as metadata instead of leaking into the dialogue.
- 4
Copy or convert
Copy the plain dialogue, download a renumbered .vtt, or export a standard SRT that any desktop player can open.
What Is a VTT File?
A VTT file — WebVTT, short for Web Video Text Tracks — is a plain-text caption format designed for HTML5 video. Browsers load it through the track element of a video tag and draw each cue at its appointed time, which makes the .vtt file the standard caption format for course platforms, streaming pages and web video players.
The format grew out of SubRip: dialogue and timing look familiar to anyone who knows SRT, but a VTT file adds a mandatory WEBVTT header, optional cue identifiers, positioning settings and author comment blocks. The W3C maintains it as an open specification, so every browser parses the same file the same way.
Made for the web
A VTT file is the only subtitle format browsers accept natively through the track element — no plugins, no player-side conversion.
Plain text underneath
Despite the web pedigree, a .vtt file opens in any text editor. Header, cues and comments are all human-readable lines.
Positioning built in
Cue settings like align:start or position:50% tell the player where to draw each cue — something an SRT file simply cannot express.
UTF-8 by definition
The WebVTT specification requires UTF-8, so any language displays correctly once the file is valid.
VTT File Format: Header, Cues and Settings
The VTT file format is block-based, like SRT but with more block types. The example at the top of this page contains most of them: a header, a NOTE, a cue identifier, a cue setting and plain cues. Here is what each piece does.
The WEBVTT header
The first line of every VTT file must read WEBVTT. If it does not, the file is not valid WebVTT and browsers reject it — this viewer reports the problem instead of pretending to parse a broken file.
Cue timing
Each cue starts with a timing line such as 00:01.200 --> 00:03.400. Milliseconds are written with a dot, and the hours may be omitted for short videos — two details that most often confuse people reading a VTT file for the first time.
Cue identifiers
A line above the timing line can name the cue (intro in the example). Identifiers are optional; players ignore them, and conversions renumber the cues instead.
Cue settings
After the end timestamp, a VTT file may carry align, line, position or size settings that tell the player where to draw the cue. SRT has no equivalent, which is why converting to SRT lists these settings as intentionally dropped.
NOTE, STYLE and REGION blocks
NOTE blocks hold author comments; STYLE blocks carry CSS for cue rendering; REGION blocks define scroll regions. All three belong to the file, not to the audience, so the viewer surfaces them as notices and keeps the exported text pure.
VTT File vs SRT File
The two formats hold the same dialogue, and neither contains video or audio. The differences are structural: a VTT file needs the WEBVTT header, writes milliseconds with a dot and supports identifiers, settings and comment blocks, while an SRT file is numbered cues with comma milliseconds and nothing else.
Choose by destination: browsers and web players want a VTT file; desktop players, editors and most upload forms are happiest with SRT. Moving between them is lossless for text and timing — the VTT to SRT converter produces a clean SubRip file and reports what styling cannot cross, and the SRT to VTT converter makes the reverse jump for web pages. The SRT file guide explains the sibling format in the same detail.
Other Ways to Open a VTT File: Browser, VLC and Text Editors
The quickest way to open a VTT file is the viewer on this page: it parses the format in your browser, shows every cue, and reports metadata separately. To watch captions, point your player or your web page's track element at the file — VLC and mpv also load a VTT file directly.
To read or edit one, any text editor opens the file, because it is plain UTF-8 text. When what you actually need is the transcript rather than the timing, the VTT to TXT tool strips headers, cue IDs, arrows and settings, leaving clean dialogue you can quote or translate.
VTT File — Frequently Asked Questions
Sources & specifications
- W3C — WebVTT 1.0: The Web Video Text Tracks Format (official specification)
“This specification defines WebVTT, the Web Video Text Tracks format.”