SRT Subtitle Files: A Beginner’s Guide
Last updated: · 5 min read
Short answer
An SRT file is a plain text file of numbered subtitle cues, each with a start time, an end time, and the text to show. Any text editor can open it, and YouTube and most players read it. Dublyx video translation returns an original and a translated SRT for your video.
What is an SRT file?
SRT stands for SubRip Subtitle. It is one of the simplest subtitle formats: a text file, usually ending in .srt, that lists every subtitle in order. Because it is plain text, you can open it in Notepad or any editor, read it, and fix a word without special software.
The same simplicity is why almost everything supports it. YouTube, many course platforms, desktop players, and video editors can load an SRT file next to a video.
What does the inside of an SRT file look like?
1
00:00:01,000 --> 00:00:03,500
Welcome to the show.
2
00:00:04,000 --> 00:00:07,200
Today we look at how subtitles work.Every cue has four parts. First comes a number that counts the cues from 1. Then a line with the start time, an arrow, and the end time, written as hours:minutes:seconds,milliseconds. Then one or two lines of subtitle text. Finally a blank line that separates it from the next cue.
| Part | Example | Rule |
|---|---|---|
| Number | 1 | Counts up from 1 with no gaps |
| Times | 00:00:01,000 --> 00:00:03,500 | Comma before the milliseconds; the end is after the start |
| Text | Welcome to the show. | One or two short lines |
| Blank line | (empty) | Required between cues |
How do you create an SRT file for a video?
You can write one by hand, which is slow, or generate it from the speech in the video. With Dublyx video translation you upload the video, choose a target language, and download two SRT files: one with the original text and one with the translation. Audio translation returns SRT files in the same way for a recording.
Generate original and translated SRT files with Dublyx video translation
Videos up to 60 minutes and 2 GB are accepted, at 1 point per second.
How do you edit an SRT file safely?
- Edit only the subtitle text lines. Leave the numbers and the times alone unless you mean to retime a cue.
- Keep the blank line between cues. Deleting it can merge two cues or break the file.
- Save as plain text with UTF-8 encoding, so accents and non-Latin letters such as Arabic are preserved.
- Keep the .srt extension. Some editors add .txt without telling you.
- Use a subtitle editor if you need to change timing, because it shows the video next to the text.
After any edit, open the file in a player next to the video and watch a few minutes at the start, the middle, and the end.
What makes a subtitle easy to read?
- Keep each cue to one or two lines, and break lines at natural phrase boundaries.
- Aim for roughly 35 to 42 characters per line; longer lines get small on a phone.
- Leave a cue on screen long enough to read, usually at least a second, and longer for longer text.
- Do not let a cue run on while the speaker has stopped talking.
These are common conventions rather than hard rules, and the best limit depends on your platform and audience. If a machine-made file breaks them, adjust the lines in an editor.
How do you use an SRT file on YouTube and in players?
- On YouTube, open YouTube Studio, choose the video, open Subtitles, add a language, and upload the file.
- In a desktop player, give the SRT the same name as the video file and keep both in one folder; most players load it automatically.
- On a course or video platform, look for an option to upload captions or subtitles and select the SRT file.
- If a platform has no subtitle option, burn the subtitles into the video instead.
Our guide to burning subtitles into a video explains that option and when it is the better one.
What can go wrong with SRT files?
- Strange characters instead of accents or Arabic: the file was saved in the wrong encoding. Save it again as UTF-8.
- Subtitles that drift out of sync: the video was edited after the SRT was made, or its frame rate changed.
- A player that ignores the file: the name does not match the video, or the extension is wrong.
- A line that jumps to the wrong side in Arabic or Hebrew: punctuation or Latin words need checking. See the Arabic checklist for details.
A translated SRT is a good first draft. Names, numbers, and specialist terms should always be reviewed by a person before you publish.
How do you fix subtitles that are early or late?
If subtitles are consistently early or late by the same amount, a subtitle editor can shift every cue by that amount in one step. If they drift gradually, the frame rate of the video probably differs from the one the subtitles were timed for, and a stretch or frame-rate conversion fixes it. Always check the first and last cues against the audio afterwards.