What Is an SRT File? Format, Example, and How to Use It
An SRT file is a plain-text subtitle file that pairs each line of dialogue or caption text with a start and end time. This guide shows the exact file structure, a downloadable sample, practical ways to open and use it, and the errors to check before delivery.
Editorial owner: CueSift. We checked the format claims against the Library of Congress and current YouTube documentation, created the sample specifically for this guide, and validate its four cue blocks in the site test suite. A separate production check confirmed that CueSift exported one six-cue YouTube SRT on August 10, 2026; that single check is not a universal compatibility claim.
SRT file quick facts
Think of an SRT as a timed text document that travels beside a video. It is small and readable because it describes subtitle content and timing rather than carrying the media itself.
| Full name | SubRip Subtitle |
|---|---|
| File extension | .srt |
| File type | Plain text |
| Stores | Cue order, start and end times, and subtitle text |
| Does not store | Video, audio, images, or a portable font choice |
| Common timestamp | HH:MM:SS,mmm --> HH:MM:SS,mmm |
| Required header | None |
SRT is simple but not completely standardized. The table describes the common structure used by the downloadable sample; always verify the target platform's current import rules.
Download and inspect a real sample
This four-cue UTF-8 sample was written for this guide, so it contains no third-party transcript. Download it, open it as plain text, and compare each cue with the visual below.
Download the sample SRTHow to open an SRT file
Choose the app based on what you want to inspect. Opening the SRT alone in a text editor shows its source; loading it with a video shows the timing; importing it into an editor lets you adjust the track and presentation.
| Goal | Open it with | What to verify |
|---|---|---|
| Read or edit the source | A plain-text editor | Numbers, timestamps, text, blank lines, and UTF-8 |
| Preview timing | A player that supports external SRT tracks | First and last cue, sync, overlaps, and line breaks |
| Prepare a deliverable | A subtitle or video editor | Track mapping, language, styling, and export behavior |
Do not edit an SRT in a rich-text word processor unless it is explicitly in plain-text mode. Hidden formatting, smart punctuation, or an extra .txt extension can leave you with a file the destination cannot parse.
Common SRT file errors
Most failures are easier to diagnose when you separate structure, timing, text encoding, and destination behavior. Fix the smallest confirmed problem first, then preview the complete file again.
The file ends in .srt.txt
A text editor may add .txt when extensions are hidden. Confirm the complete filename before upload.
The timestamp punctuation changed
A common SRT timing line uses a comma before milliseconds and the exact --> arrow. A period belongs to the corresponding WebVTT timestamp pattern, not the usual SRT pattern.
A cue has no blank line after it
Blank lines separate cues. Without them, a parser may group content incorrectly or reject the malformed area.
The end time is not later than the start
Reverse ranges cannot describe a display interval. Fix the cue and check nearby cues for unintended overlap or reversed order.
Text looks garbled after upload
Reopen the saved file, confirm UTF-8, and verify the target platform's encoding requirement. SRT itself does not define one universal character encoding.
Styling disappears
SRT styling behavior is player-dependent. Keep a plain-text master and treat fonts, colors, and position as destination-specific unless they were tested there.
Continue learning
What is a VTT file?
See the WEBVTT header, cue settings, and a live HTML text track.
Read guideHow to edit an SRT file
Repair text, timing, overlap, numbering, and encoding without breaking the file.
Read guideSRT vs VTT
Choose between simple subtitle interchange and web-oriented text tracks.
Read guideCreate an SRT from video
Choose caption extraction, speech transcription, or OCR by source.
Read guide