Subtitle sample files
SRT and WebVTT caption files for testing video players and subtitle tooling.
Formats in this category
| Format | What it is | Sizes |
|---|---|---|
| SRT sample files.srt application/x-subrip | The simplest and most widely supported subtitle format: numbered cues with start and end times. | 1 KB to 1 MB |
| VTT sample files.vtt text/vtt | The web standard for captions and subtitles, used by the HTML <track> element. | 1 KB to 1 MB |
About these files
Captions are a small feature with exacting requirements: timestamps must parse, encodings must survive and cues must appear on time. These samples have evenly spaced cues, which makes timing errors easy to notice.
Popular downloads by size
Jump straight to a file. Every size is exact to the byte.
Or browse every format at one size: 1 KB, 10 KB, 100 KB, 1 MB.
What to test
- Web development
Placeholder images, media, data and documents for building and demonstrating web interfaces.
- File parser testing
Well-formed files and deliberate edge cases for testing code that reads CSV, JSON, XML, PDF and more.
Related categories
Subtitle files: questions
- What is the difference between the SRT and VTT samples?
- The cue text and timing are the same. WebVTT adds the WEBVTT header and uses a full stop instead of a comma before the milliseconds.
Engineering test checklist for subtitle sample files
When designing automated integration suites for subtitles pipelines, QA engineers must validate three distinct layers: binary container framing, metadata extraction accuracy, and resource-bounded parsing under concurrent load.
| Verification layer | Target assertion for subtitles | Recommended test fixture or tool |
|---|---|---|
| 1. Signature & MIME check | Confirm backend inspects leading magic bytes rather than trusting the client Content-Type header for subtitles uploads | Magic-Byte File Inspector & Spoofed-Extension Fixtures |
| 2. Boundary byte sizes | Test minimum valid header size, 1 MB default proxy limit, 10 MB application ceiling, and 50 MB+ streaming transfers | Size Buckets (1 KB–1 GB) & In-Browser Generator |
| 3. Corrupt payload handling | Verify that truncated streams or malformed headers in subtitles return HTTP 400/422 instead of crashing the worker | Broken-File QA Suite & errors-400.json |
| 4. Checksum reproducibility | Assert that round-trip storage in cloud object storage preserves the exact byte length and SHA-256 digest | SHA-256 Checksum Directory |
Common failure points in subtitles ingestion workflows
- Buffering entire files in process memory: Node.js, Python, and Java services that read an entire uploaded subtitles fixture into a contiguous heap buffer before checking its header signature risk Out-Of-Memory (OOM) terminations when concurrent users upload 20 MB to 100 MB files. Read the first 4,096 bytes from the stream to validate magic bytes before streaming the body to object storage.
- Character encoding and metadata sanitization: Filenames and embedded metadata fields inside subtitles containers can contain precomposed (NFC) or decomposed (NFD) Unicode sequences, spaces, or missing extensions. Combine the format fixtures above with our edge-case filename samples and the A to Z Format Index to cover every parser branch.
- Cross-platform viewer and codec parity: A subtitles file that opens on a developer's macOS laptop may fail inside a minimal Alpine or Debian Linux container if required shared libraries or font tables are absent. Test parser behavior inside your exact production container image during CI using the copy-ready recipes on CLI & CI Automation.
Character encoding, timestamp precision and cue styling across subtitle formats
Subtitle and playlist parsers encounter subtle framing differences across SubRip (.srt), WebVTT (.vtt), SubStation Alpha (.ass), and streaming manifests (.m3u8, .m3u, .xspf). While SRT separates millisecond fractions with a comma (00:01:15,250) and starts immediately with cue number 1, WebVTT requires a mandatory WEBVTT file header on line 1 and separates milliseconds with a period (00:01:15.250). Use our subtitle fixtures and embedded-subtitle MKV sample to verify both standalone track uploads and muxed container extraction.