Sample WebVTT subtitles
Two WebVTT files with 5 cues over 10 seconds, the same text as our SRT sample: one plain, and one with cue identifiers, position and alignment settings, a NOTE, a STYLE block, a class span and a voice span. Free, no sign-up. Updated 28 November 2026.
What these files are
Two WebVTT files with 5 cues over 10 seconds, the same text as our SRT sample: one plain, and one with cue identifiers, position and alignment settings, a NOTE, a STYLE block, a class span and a voice span.
Every file was generated by our own code, so nothing in them is copied from anyone, and we release them under CC0: use them for anything. The facts in the table were read back from each file after it was written, not typed in by hand.
About the format
WebVTT (Web Video Text Tracks) is the W3C caption format for the HTML <track> element. A file must start with the word WEBVTT. Times use a full stop before the milliseconds (00:00:02.800), not the comma of SRT, and the hours may be left out. A cue can have an identifier line and settings after the times, such as line:0 to move it to the top or align:start; NOTE blocks are comments, and a STYLE block holds CSS that ::cue selectors apply to the text. Browsers expect the file to be served with the type text/vtt.
These files open in every current browser through <track>, VLC, MPV and video.js. A web server should send them with the header Content-Type: text/vtt.
2 files to download
| File | Size | What it is |
|---|---|---|
| sample-subtitles.vtt | 372 B | 5 cues over 10 seconds, the same text as the SRT sample cues: 5; first cue: 00:00:00.500; last cue end: 00:00:09.900; header: WEBVTT |
| sample-subtitles-styled.vtt | 642 B | same 5 cues with cue identifiers, cue settings (line, position, align), a NOTE, a STYLE block, a class span and a voice span cues: 5; first cue: 00:00:00.500; last cue end: 00:00:09.900; header: WEBVTT |
MIME type: text/vtt. Total 1014 B.
Good for testing
- HTML5 <track> captions in video players
- Caption parsers and SRT/VTT converters
- Styling and positioning of cues in browsers
Check a file
head -1 sample-subtitles.vtt # must be WEBVTT
<video src="sample-10s-640x360.mp4" controls><track src="sample-subtitles.vtt" kind="subtitles" srclang="en" default></video>Compare the SHA-256 checksum to make sure the download is complete and unchanged (sha256sum file on Linux, shasum -a 256 file on macOS, certutil -hashfile file SHA256 on Windows):
| File | SHA-256 |
|---|---|
| sample-subtitles.vtt | 5d64390b12be714f3fb38f08a96edd73737b079965b30f5da0014ef7ae04cc9f |
| sample-subtitles-styled.vtt | cc9a851fd9a78c628d04d3fe08f691e7a1228cfcacb4586950ca5a3062160bec |