VTT Validator
Learn exactly why a WebVTT file fails in a player, then download a fixed one.
- Runs in your browser
- No uploads
- No account
Loading your browser tool…
What VTT Validator does
Browsers are strict about WebVTT. A header that isn't on the first line, a comma in a timestamp or a STYLE block placed after the first cue can make a track load with no captions, and the developer console seldom says why.
Paste the file and every problem is listed with its line, from a missing blank line after the header to an unescaped & that hides text. Fix issues writes a corrected file and validates it again. The repair also handles routine cleanup: empty cues, sorting and overlaps.
Example
Input
WEBVTT 00:00:01.000 --> 00:00:03.000 align:centre Terms & conditions 00:00:03.000 --> 00:00:05.000 Done.
Report shows
Line 2 [error] Add a blank line between the WEBVTT header and the first cue. Line 2 [error] Invalid cue setting “align:centre” was ignored. Valid settings look like line:0, position:10%, align:start or size:80%. Line 3 [error] Cue 1 has a plain “<” or “&”. Write < or & or players may hide part of the text.
WebVTT only accepts the spelling align:center. Fix issues adds the blank line, drops the invalid setting and writes &, and the corrected file passes.
How to use VTT Validator
- Paste the WebVTT text, choose Open file, or choose Use example.
- Review the Problems table, sorted by line number.
- Choose Fix issues, then Download .vtt from the Corrected file panel.
Good to know
- CSS inside STYLE blocks isn't checked. A typo in a ::cue rule passes validation, but the style won't apply.
- Region names aren't cross-checked, so a cue that refers to a region the file never defines is accepted.
- Duplicate cue IDs are warnings, and Fix issues leaves them alone. Rename them in the VTT Editor.
Questions about VTT Validator
Why are my VTT captions not showing?
Check that the file starts with WEBVTT on the first line, uses dots before milliseconds, and has a blank line after the header and between cues. On a website, it must also be served as text/vtt, with CORS headers if it's on another domain. The validator covers everything inside the file.
How do I validate a WebVTT file?
Paste or open it here. The validator reports header, timestamp, setting, escaping and order problems with line numbers, and rates each one as an error or a warning so you know what to fix first.
Do I need to escape & in WebVTT?
Yes. A bare & or < can be read as the start of markup, and players may hide the text that follows. Write & and < instead. Fix issues escapes them for you.
Can a WebVTT file have a BOM?
Yes, the format allows a UTF-8 byte-order mark before WEBVTT. The validator still flags it as a warning, because some older tools show it as stray characters at the start of the file.