What an SRT file is and why you might make one
An SRT file is a plain text document that holds subtitles for a video. SRT stands for SubRip, and it is the simplest subtitle format that most video players recognize — VLC, Windows Media Player, most streaming software, and video editing programs all read SRT files without needing extra software.
You make an SRT file when you have a video and want to add subtitles to it, either because the video has no captions, the existing captions are wrong, or you want subtitles in a language the video does not have. You can create one by hand using any text editor — Notepad on Windows, TextEdit on Mac, or gedit on Linux — and then save it with the .srt extension instead of .txt.
The file itself is just numbers, timestamps, and text arranged in a specific order. Video players match the timestamps to the video timeline and display the text at the right moment. If the format is wrong, the player will not read it correctly, so the structure matters.
Key Takeaways
- An SRT file is a text document containing subtitle numbers, timestamps, and text in a specific format that video players recognize.
- Each subtitle block has four parts: a sequence number, a timestamp showing when the subtitle appears and disappears, the subtitle text, and a blank line before the next block.
- Timestamps must be in the format HH:MM:SS,mmm --> HH:MM:SS,mmm, where the comma separates seconds from milliseconds, not a period.
- You create an SRT file in any text editor by typing the content in the correct format, then saving the file with the .srt extension.
- The easiest way to sync subtitles to video is to play the video in a text editor window side by side, pause at each subtitle moment, and note the timestamp.
The four-part structure every subtitle block needs
Every subtitle in an SRT file has the same four-part structure, and the order never changes. The first part is a sequence number — just 1, 2, 3, and so on for each subtitle in order. This number does not appear on screen; it just tells the player which subtitle comes next.
The second part is the timestamp. It shows when the subtitle appears and when it disappears, separated by an arrow made of two hyphens and a greater-than sign: -->. The format is always HH:MM:SS,mmm, where HH is hours, MM is minutes, SS is seconds, and mmm is milliseconds. The comma is critical — it separates seconds from milliseconds, not a period. An example timestamp is 00:00:05,000 --> 00:00:10,500, which means the subtitle appears at 5 seconds and disappears at 10.5 seconds.
The third part is the subtitle text itself. You can write one line or multiple lines. If your subtitle is long, break it into two lines by pressing Enter, but keep it short enough to read quickly — usually no more than two lines on screen at once.
The fourth part is a blank line. This blank line tells the player that one subtitle block is finished and the next one is starting. Without it, the player will not parse the file correctly.
A real example you can copy and adapt
Here is a complete SRT file with three subtitles. You can open this in your text editor and use it as a template:
1 00:00:05,000 --> 00:00:10,500 Welcome to the tutorial. 2 00:00:10,500 --> 00:00:15,000 In this video, we will cover the basics of video editing. 3 00:00:15,000 --> 00:00:20,000 Let's get your free guide.
Notice that each block has a blank line after it, except the last subtitle can end without one. The timestamps use commas, not periods. The text can span two lines if needed. If you copy this into a text editor, change the numbers and text to match your video, and save it as mysubtitles.srt, your video player will read it.
How to find the right timestamps for your video
The hardest part of making an SRT file is getting the timestamps right. You need to know exactly when each subtitle should appear and disappear in the video. The most practical way is to play the video while watching the timestamp display in your video player.
Open your video in VLC or another player that shows the current time. Pause the video at the moment you want a subtitle to appear, and note the time shown at the bottom or in the player controls. Write down that time in HH:MM:SS,mmm format — if the player shows 0:05:23, that is 00:05:23,000 in SRT format. Then play the video forward until the subtitle should disappear, pause again, and note that time as the end timestamp.
If you want to be more precise, open your text editor and your video player in windows side by side on your screen. Play the video, pause at each subtitle moment, read the timestamp from the player, type it into the text editor, and continue. This takes longer but gives you exact timing. Some video editors like Shotcut or DaVinci Resolve also show frame-accurate timestamps, which is helpful if you need precision.
Saving the file with the correct extension
After you finish typing your subtitles, you must save the file as .srt, not .txt. In most text editors, you do this by choosing File > Save As, then typing the filename with .srt at the end — for example, subtitles.srt or movie_english.srt.
On Windows in Notepad, open Save As and look for the "Save as type" dropdown. Change it from "Text Documents (.txt)" to "All Files (*.*)", then type your filename with .srt at the end. If you do not change the file type, Notepad will save it as .txt even if you type .srt in the name.
On Mac in TextEdit, go to Format menu and choose "Make Plain Text" before saving. Then use File > Save, type your filename with .srt, and make sure the file extension is set to .srt in the save dialog.
Matching your SRT file to your video file
Once you have saved your SRT file, it needs to be in the same folder as your video file and have the same name (except for the extension). If your video is called movie.mp4, name your subtitle file movie.srt. If your video is called tutorial_part1.mkv, name your subtitle file tutorial_part1.srt.
When you open the video in a player like VLC, it will automatically find and load the SRT file if the names match. If the names do not match, you can usually open the subtitle file manually through the player's menu — in VLC, that is Subtitle > Open/Load Subtitle File. Some players require the files to be in the same folder; others let you load a subtitle from anywhere.
If you have multiple subtitle files for the same video in different languages, you can name them with a language code: movie.en.srt for English, movie.es.srt for Spanish, movie.fr.srt for French. Most players will recognize these and let you switch between them.
Common mistakes that break SRT files
The most common error is using a period instead of a comma in the timestamp. The format must be HH:MM:SS,mmm with a comma, not HH:MM:SS.mmm with a period. If you use a period, many players will not read the file.
The second mistake is forgetting the blank line between subtitle blocks. Every subtitle must be followed by a blank line, or the player will not separate them correctly and may skip subtitles or display them at the wrong time.
The third mistake is saving the file as .txt instead of .srt. If your file is named subtitles.txt, most video players will not recognize it as a subtitle file. Always check the file extension before you close the save dialog.
A fourth mistake is using special characters that your text editor does not save correctly. Stick to standard letters, numbers, and punctuation. If you need accented characters like é or ñ, make sure your text editor is set to save as UTF-8 encoding, which most modern editors do by default.
Frequently Asked Questions
Can I edit an SRT file after I create it?
Yes. Open the .srt file in any text editor, make your changes, and save it. If you need to shift all the subtitles earlier or later by a few seconds, you can edit each timestamp, or use a free tool like Subtitle Edit or Aegisub that lets you adjust timing without retyping everything.
What if my video player does not show the subtitles even though the file is named correctly?
Check that the .srt file is in the same folder as the video and that the names match exactly (except the extension). If they do, try opening the subtitle file manually through the player menu. If the subtitles still do not appear, open the .srt file in a text editor and make sure the timestamps use commas, not periods, and that there is a blank line between each subtitle block.
Can I use an SRT file with streaming services like Netflix or YouTube?
YouTube lets you upload an SRT file when you upload a video, and it will use it as captions. Netflix does not accept SRT files directly from users. For other streaming services, check their documentation — some accept SRT, some use different formats like VTT or ASS.
How do I convert an SRT file to a different subtitle format?
Free tools like Subtitle Edit, Aegisub, or online converters can convert SRT to other formats like VTT, ASS, or SCC. Download or open your SRT file in one of these tools, then export it in the format you need.
What if I want to add subtitles directly into the video file instead of a separate SRT file?
Video editing software like DaVinci Resolve, Shotcut, or Adobe Premiere can import an SRT file and burn the subtitles into the video during export. This embeds the subtitles permanently so they always appear, but viewers cannot turn them off. Most people keep subtitles as separate files so viewers have the choice.