How to make an SRT subtitle file for a video
An SRT file is the simplest and most widely accepted subtitle format. YouTube, Facebook, VLC and most video editors can read it. This guide shows what is inside one, how to create one automatically from speech, and how to fix the usual problems.
What an SRT file looks like
An SRT file is plain text. It is a list of numbered blocks, and each block has a number, a time range and the words to show. Blocks are separated by an empty line:
- 1
- 00:00:01,000 --> 00:00:03,500
- Welcome to the channel.
The time uses hours:minutes:seconds, followed by a comma and milliseconds. The comma is part of the format, so a full stop in its place will often make a player reject the file. You can open any SRT in Notepad to read or fix it.
Creating one automatically
- Open Subtitle Generator and add a video or audio file.
- Start the transcription. The first time you use it, a speech-recognition model is downloaded once and then kept by your browser; your own file is never uploaded.
- When it finishes, download the .srt file and read through it.
- Add the file in the place where your video platform asks for subtitles.
If you only need the words without timing, use Video/Audio Transcription, which gives you plain text you can copy.
What to expect from the accuracy
Automatic speech recognition is not perfect. The model used here is a small, fast one that works best on clear English speech with little background noise. Names, technical words, strong accents and music under the voice will produce mistakes. Plan to read the result once while watching the video, and correct what is wrong before you publish.
A few things improve results a lot: use a clean recording, speak at an even pace, and remove loud background music before you start. If your audio is in another language, the current model will not do well, so for those videos it is better to type or edit subtitles by hand.
Fixing common problems
- Subtitles appear too early or too late: open the file and adjust the time stamps, or re-export from the beginning of the video.
- Lines are too long: split a long block into two blocks, each with its own number and time range.
- The platform says the file is invalid: check for the comma in the timestamps and that blocks are separated by a blank line.
- Odd characters: save the file as UTF-8 text.
Subtitle habits that help viewers
- Keep each block to one or two short lines.
- Show each block long enough to read: roughly one second for every few words.
- Break lines at natural pauses, not in the middle of a phrase.
- Add important sounds in brackets only when they matter to the story.
A worked example: subtitles for a short tutorial
You have a 3-minute screen recording with a spoken explanation. Generate the SRT, then play the video with the subtitles on and a text editor open next to it. Fix names of software and tools, add the missing punctuation and split any block that holds more than two lines. After the edits, upload the video and the SRT file to your platform. The whole check takes about as long as the video itself.
Where to add the file
- YouTube Studio: open the video, then Subtitles, then upload a file and choose "With timing".
- Facebook and other platforms: look for a captions or subtitles option in the video settings and upload the .srt file.
- Video players such as VLC: put the SRT in the same folder, with the same name as the video, and it will load automatically.
Language and translation
The recogniser in the browser handles English speech. To publish subtitles in other languages, you can translate the text lines in the SRT file and keep the numbers and timestamps exactly as they are. Only change the words between the time line and the blank line.