How to Open and Edit an SRT File
An SRT file is plain text. See how to open one, what each line means, how to edit it safely, and the mistakes that make subtitles stop working.
Try it now: AI Subtitle Generator — timed subtitles from speech in 20 languages, processed in your browser.
An SRT file (SubRip) is the most widely used subtitle format, and it is only text. You do not need special software to open it, which also means you can break it with one careless edit. This guide shows what is inside and how to change it safely.
Open it
Any plain text editor works: Notepad on Windows, TextEdit (set to plain text) on macOS, or a code editor. Right-click the file, choose to open it with the editor, and you will see something like this:
1 00:00:01,200 --> 00:00:03,800 Welcome back to the channel. 2 00:00:04,000 --> 00:00:06,500 Today we are fixing subtitles.
Double-clicking an SRT usually does nothing useful, or opens a media player. A subtitle file is not a video; it needs a video to go with it.
What each part means
Every caption is a block separated from the next by a blank line:
- A counter (1, 2, 3...). Players generally use the order of blocks, but keep the numbers sequential so the file stays tidy.
- A time range.
start --> end, writtenhours:minutes:seconds,milliseconds. Note the comma before the milliseconds. WebVTT uses a full stop there, which is the single most common cause of failed conversions (see SRT vs VTT). - One to three lines of text, ending at the blank line.
SRT has no official specification. The layout above is the convention that platforms and editors follow, which is why edge cases (very long files, odd characters) behave differently in different programs.
Editing safely
For wording fixes, a text editor is enough. Change only the text lines. Leave the numbers, the arrows and the blank lines alone.
For many fixes or timing work, use a subtitle editor or an editor that shows the video beside the text, so you hear what you fix. If you generated the file with the subtitle generator, you can edit the captions there before downloading (that step needs a free Google sign-in).
Do
- Save as UTF-8. YouTube's help page says SRT files must be plain UTF-8.
- Keep one blank line between blocks.
- Keep the
-->arrow with a space either side. - Keep end times later than start times.
Don't
- Don't use a word processor (Word, Pages) to edit; it can add smart quotes and hidden formatting.
- Don't add colours or fonts. YouTube's page describes SRT as basic, with no style markup. For styling, use another format or burn the captions in.
- Don't delete blank lines to "tidy up".
Common problems
| Symptom | Cause | Fix |
|---|---|---|
| Player shows nothing | Missing blank line or broken time range | Compare the broken block to a working one |
| Strange characters | Wrong encoding | Re-save as UTF-8 |
| Subtitles start too early or late | Offset | See fixing out-of-sync subtitles |
| Lines flash by | Duration too short | Extend the end time or split less aggressively |
Compare two versions
If you edit a lot, keep the original. A diff checker shows exactly which lines changed between two versions of the file, which is useful before you send a revised SRT to a client.
Summary
An SRT is numbered blocks of a time range and some text. Edit text freely, protect the structure, save as UTF-8, and test the file in a player. To create a first draft from speech, the subtitle generator exports SRT and VTT.
Sources
Last updated