Skip to main content

Caption Linter (WebVTT and SRT)

Check caption files for timing, line length and reading speed problems.

Last updatedHow we build & check our tools

Interactive Tool

Loading interactive tool…

Enter your values once it appears to see your results.

Results will appear here once the tool finishes loading. Everything runs locally in your browser.

What the linter checks

Paste captions in WebVTT or SubRip format — or load a .vtt or .srt file — and the linter checks structure and timing. Errors: a WebVTT file missing its WEBVTT header, malformed timestamps (a .vtt file needs a period before the milliseconds, an .srt file a comma), cues out of order, captions that end before they start, and empty cues. Warnings: overlapping captions, cues that flash by in under 0.7 seconds, captions that stay up longer than 7 seconds, reading speed above 20 characters per second, more than two lines per caption, and any line longer than 42 characters.

Informational hints cover a gap of more than two seconds between captions, captions that open with a dash but name no speaker, files with no sound descriptions or speaker labels anywhere, and a missing language tag.

Fitting it into caption production

Export the captions from your editing tool, load or paste the file, and work through the findings from the top: fix timing errors first, then rewrite the fast and over-long cues — shortening the wording or splitting a caption at a natural pause usually clears both. Re-paste to confirm. The built-in sample shows the classic problems, including a caption that starts before the previous one ends and cannot be read in the time it is on screen.

The 0.7-second, 7-second, 20-characters-per-second and 42-character limits are the tool's defaults — common captioning guidelines, not laws — so check the result in your actual player too. Run the linter before you upload to a video platform, and again after any automated transcription, which is where ordering, overlap and speed problems cluster.

A clean file is not an accurate file

The linter never hears your audio, so the checks that matter most stay manual: whether the words match what is said, whether timing lines up with the speech, whether speakers are identified when the picture does not show who is talking, and whether meaningful sounds — music, laughter, an off-screen doorbell — are described. A gap the linter reports may simply be a pause in the audio, not missing captions; listen before you add text to fill it.

These structural checks support review of WCAG 1.2.2 (captions for prerecorded media) and 1.2.4 (captions for live media), but they cannot establish accuracy or conformance, and automatically generated captions in particular need a human pass. For making media usable in more ways than one, our guide to accessible alternate formats puts captions alongside transcripts and descriptions.

Frequently Asked Questions

Common questions about the Caption Linter (WebVTT and SRT)

WebVTT (.vtt) and SubRip (.srt). The linter detects which one you pasted from the header and the timestamp style, and tells you if the text does not look like either — usually a transcript without timing, or a proprietary export. Convert that export to .vtt or .srt first; most editors and captioning services can export one of the two.

Sources & References

WebVTT specification

Defines the WebVTT caption format and its timing and cue rules.

Captions (Prerecorded) 1.2.2

Prerecorded video with audio needs synchronized captions.