Read the smallest valid-looking VTT cue
WEBVTT
intro-card
00:00:02.400 --> 00:00:05.100 line:0 position:20% size:60% align:start
Welcome to the session.
The first line is WEBVTT. After a blank line, a cue may have an identifier such as intro-card, but it does not need one. Its timing line uses a dot before milliseconds, then optional settings after the end time. The text follows. A blank line closes the cue.
Use UTF-8 when saving the file. A file called captions.vtt is not necessarily WebVTT: open it as plain text and inspect its first line and one timing row.
Five checks before you blame the browser
| Check | What to read | What the result separates |
| 1. Header | The first line is WEBVTT; an optional UTF-8 BOM may precede it. | A WebVTT file from a renamed text file. |
| 2. Timing punctuation | 00:00:02.400 --> 00:00:05.100, with a dot and spaces around the arrow. | WebVTT timing from SubRip-style comma timing. |
| 3. Block boundary | A blank line follows each cue, NOTE, STYLE, or REGION block. | One completed block from text that continues into the next block. |
| 4. Cue settings | Settings such as line:, position:, size:, or align: sit after a timing line. | Caption placement instructions from caption words. |
| 5. Delivery | The web page attaches the file as a text track and the host serves the intended file. | A readable VTT file from a page-level loading or policy problem. |
This order is useful because changing a player setting cannot restore a missing header, and rewriting a correct file cannot fix a URL the page does not load.
Why a VTT file works as text but not as captions
Case 1: the file opens in an editor
That proves you can read bytes as text; it does not prove a video page has attached the file as a caption track. Use the page’s caption selector after loading the video. A direct file view is a reading test, not a playback test.
Case 2: the page shows no captions
Check the page’s track URL, then open that exact URL in a new tab. If it is not the file you inspected, the page and the local copy are different test inputs. If it is the same file, recheck the first line, timing punctuation, and whether a cue starts during the part of the video you are playing.
Case 3: captions appear, but in the wrong place
Keep the cue text and inspect the settings to the right of the end time. A setting such as line:0 position:20% size:60% align:start describes placement. Remove settings only on a copy, then replay the same cue; this isolates placement from the transcript itself.
Case 4: one platform accepts the file and another does not
Do not assume the extension is the explanation. Record the exact receiving product, its error text, and whether it needs WebVTT or SRT. For a destination that explicitly asks for SRT, convert a copy with the SRT and VTT converter, then check that the timing and text still match the recording.
Cue settings and STYLE blocks are different jobs
Cue settings belong on the timing line. They control where a cue box can sit or how it aligns. Examples include line, position, size, align, and vertical. Put each setting only once in a cue and leave at least one space before the first setting.
00:00:08.000 --> 00:00:11.000 line:63% position:72% align:start
Name on the screen
A STYLE block is a separate optional block before the first cue. It can style cue text with ::cue rules; it does not replace the timing-line placement settings. A blank line ends that block, so do not insert a blank line inside it.
WEBVTT
STYLE
::cue { color: white; }
00:00:12.000 --> 00:00:15.000
A styled caption.
What gets lost when a VTT meets an SRT-only destination?
An SRT destination expects its own cue syntax: numbered blocks and commas before milliseconds. WebVTT cue identifiers, positioning settings, regions, notes, and STYLE rules do not have a like-for-like basic SRT representation. Converting the timing and words can still be useful, but compare the rendered result where it will be used. For SRT-specific structural checks, use the SRT file guide.
This is a delivery choice, not a reason to rewrite a transcript. Keep the original VTT next to any converted copy so you can return to the web-oriented track.
A three-point playback check
- At the opening, confirm that the selected track appears and the first visible cue starts with the spoken or intended moment.
- In the middle, choose a cue with settings and see whether it overlaps important picture content.
- Near the end, confirm the last cue remains present and the player has not silently stopped reading later blocks.
For every failure, note the timestamp, whether the cue exists in the file, and what the receiving page shows. That gives you a reproducible file-versus-player diagnosis instead of a generic “VTT does not work” report.
Frequently asked questions
Is a VTT file the same as a video?
No. It is timed text. The video or audio is separate; a web page links the track to its media.
Must VTT use dots in timestamps?
WebVTT timestamps use a dot before milliseconds. A comma is an SRT convention, so convert or repair a copy when a WebVTT receiver requires dot-based times.
Can every player show VTT styling?
No single visual result can be inferred from the file alone. Test the actual receiving page and player. Preserve a VTT copy if placement or styling matters, and use the receiving system’s validation or error message as the result.
How do I get only the words from a VTT file?
Use SRT to Text to remove timing and cue structure from an existing SRT or VTT file. The resulting text cannot restore the timing by itself.