What Is an SRT File? How to Open, Create, and Edit Subtitles

Quick answer: An SRT file (.srt) is a plain-text subtitle file in the SubRip format. It holds your captions as numbered blocks, each with a start and end timecode and the line of text to show during that window. Because it is just text, you can open an SRT in any text editor, and you can create one in seconds by auto-generating subtitles from your video and exporting to SRT. This guide covers what an SRT file is, what it looks like inside, and how to open, create, edit, translate, and attach one to a video.
Updated June 2026.
SRT is the most widely supported subtitle format on the planet. YouTube, LinkedIn, VLC, Premiere, and almost every video platform accept it. If you have ever downloaded subtitles for a movie or uploaded captions to a video, you have probably handled an SRT file without thinking about it. The format is old, simple, and exactly because of that, it works everywhere.
The confusing part is that an SRT is not the subtitles you see burned onto a video. It is a separate text file that tells a player what to show and when. Understanding that distinction is what makes the rest of this easy.
What is an SRT file?
SRT stands for SubRip Subtitle. It came from a Windows program called SubRip that pulled (ripped) subtitles off video, and the format it saved them in became a de facto standard. The file extension is .srt, and the contents are plain text with no special encoding, no styling engine, and no proprietary structure.
That simplicity is the whole point. An SRT file is human-readable, tiny (usually a few kilobytes), and openable in any program that can read text. It carries three things and nothing more: the order of each caption, the time each caption appears and disappears, and the words themselves.
Because it is a separate sidecar file, an SRT keeps your subtitles editable and toggleable. The viewer can turn them on or off, the platform can swap in a different language, and you can fix a typo without re-rendering the video. That is the advantage of "soft" subtitles over text that is permanently baked into the picture. If you want the difference spelled out, our explainer on subtitles vs captions vs closed captions covers when each one matters.
What does an SRT file look like inside?
Open any SRT in a text editor and you will see a repeating pattern of four lines per caption:
1
00:00:01,000 --> 00:00:04,000
Welcome to the tutorial.
2
00:00:04,500 --> 00:00:08,200
Today we are setting up your first project.
3
00:00:08,500 --> 00:00:12,000
Click the button in the top right to begin.
Each block has four parts:
- A sequence number. Captions are numbered in order, starting at 1.
- A timecode line. The format is
HH:MM:SS,mmm --> HH:MM:SS,mmm. The first timestamp is when the caption appears, the second is when it disappears. Note the comma before the milliseconds. This is one of the few rules people get wrong. - The subtitle text. One or two lines is ideal. You can use more, but long blocks get cut off on small screens.
- A blank line. This separates one caption from the next and is required.
A few details that trip people up:
- The comma matters. SRT uses a comma as the decimal separator for milliseconds (
00:00:04,500), not a period. The web format WebVTT uses a period. Mixing them up is the number one reason an SRT fails to load. - Encoding should be UTF-8. If your captions have accented characters, emoji, or non-Latin scripts and they show up as garbage, the file was saved in the wrong encoding. Re-save as UTF-8.
- Styling is limited. Standard SRT has no built-in styling. Some players read basic HTML-style tags like
<i>for italics or<b>for bold, but do not count on color or positioning working everywhere.
How to open an SRT file
Since an SRT is plain text, you do not need special software to read or edit one.
- On Windows: right-click the file, choose Open with, and pick Notepad (or any code editor like VS Code). Notepad opens it instantly.
- On Mac: open it with TextEdit. If TextEdit tries to be clever about formatting, a plain editor like VS Code is safer for keeping the file clean.
- In a video player: this is the part most people actually want. To watch a video with its subtitles, put the
.srtfile in the same folder as the video and give it the same filename (for examplelesson.mp4andlesson.srt). Players like VLC load it automatically. You can also drag an SRT directly onto a playing video in VLC to attach it on the fly.
If double-clicking an SRT tries to launch a media player instead of showing the text, just open your text editor first and use File then Open to point at the SRT. You are reading the captions, not playing a video.
How to create an SRT file
There are two ways to make an SRT: by hand, or automatically. For anything longer than a few lines, automatic wins by a mile.
The fast way: auto-generate from your video
Typing timecodes by hand is slow and error-prone. The practical approach is to let a tool transcribe your video and export the result as an SRT. Upload your video to Vidocu's free subtitle creator, let it transcribe the speech and align the timecodes for you, then export to SRT. A clip that would take an hour to caption manually is done in minutes, and the timecodes line up with the audio automatically.
This matters because the hard part of an SRT is not the text, it is the timing. Getting each caption to appear and vanish on the right frame is tedious work that a transcription engine handles for free. From the same workflow you can also pull a clean transcript with the video transcript extractor if you need the words without timecodes.
Generate an SRT file from any video, free
Upload your video, get accurate subtitles with timecodes, and export to SRT in minutes. No manual timing.
Create subtitles freeThe manual way: write it in a text editor
If your clip is short, you can write an SRT by hand. Open a text editor, follow the four-line block pattern above, and save the file with a .srt extension (in Notepad, choose Save as type: All Files, and set the encoding to UTF-8). Keep each caption to one or two short lines, leave a blank line between blocks, and watch the comma in your timecodes. For a single ten-second clip this is fine. For a real tutorial, use the auto route.
For a deeper comparison of tools that export clean, accurate SRT files across languages and formats, our roundup of the best subtitle generator tools breaks down accuracy, language support, and export options side by side.
How to edit an SRT file
Editing is where the plain-text format pays off. To fix a typo, open the SRT in any text editor, change the words, and save. The timecodes stay untouched.
To shift timing, edit the timecode line. If a caption appears a beat too early, nudge both timestamps later by the same amount. If your whole subtitle track is consistently out of sync (every line is, say, two seconds ahead of the audio), most subtitle editors and players have a global "shift subtitles" or "sync" option so you do not have to edit every block by hand.
Common edits and how to handle them:
- Typo or wording fix: edit the text line, save. Done.
- Caption shows too briefly: push the second timestamp later to hold it on screen longer.
- Whole track out of sync: use a bulk time-shift rather than editing each block.
- Line is too long: split it into a two-line caption, or break it into two numbered blocks with their own timecodes.
If you generated the SRT with an AI tool, the cleanest workflow is to make corrections inside that tool's editor and re-export, so the numbering and spacing stay valid automatically.
How to add an SRT file to a video
You have two choices, and they are very different.
Soft subtitles (keep the SRT separate). You upload the video and the SRT alongside it, and the platform shows the captions as a toggleable track. This is how YouTube, LinkedIn, and Vimeo work: upload the video, then upload the .srt as the subtitle track. Viewers can turn captions on or off and switch languages. This is the better default because it stays editable and accessible.
Hard subtitles (burn them in). Here the text is rendered permanently onto the video pixels, so it always shows no matter where the file plays, even on platforms that strip subtitle tracks. The tradeoff is that burned-in captions cannot be turned off or edited later. To do this, run your video and SRT through a free subtitle burner, which renders the captions into the frame and exports a new file. We cover the full list of options in the 7 best free subtitle burner tools.
Use soft subtitles when you control the platform and want flexibility. Use burned-in subtitles for social clips, downloads, and anywhere the viewer scrolls on mute and you cannot rely on the player loading a separate track. The 9 best free caption generators post walks through both paths if you are deciding which fits your workflow.
SRT vs VTT and other subtitle formats
SRT is the most compatible format, but it is not the only one. Here is how it compares to the formats you are most likely to meet.
| Format | Extension | Best for | Styling | Notes |
|---|---|---|---|---|
| SubRip | .srt | Maximum compatibility, uploads, players | Minimal | The safe default. Works almost everywhere. |
| WebVTT | .vtt | Web video, HTML5 players | Yes (positioning, color) | Web standard. Uses a period for milliseconds, not a comma. |
| SubStation Alpha | .ass / .ssa | Anime, karaoke, heavy styling | Extensive | Powerful styling but poor general support. |
| SAMI | .smi | Legacy Windows media | Some | Largely outdated. |
| Plain transcript | .txt | Reading, repurposing into docs | None | No timecodes. Good as a source, not a caption file. |
For most people, the choice is simply SRT or VTT. Use SRT when uploading to a platform, attaching to a player, or sending captions to someone, because compatibility is the priority. Use VTT when you are embedding video on a web page with an HTML5 player and want styling and positioning control. Good subtitle tools export both, so you rarely have to convert by hand.
How to translate an SRT file
Because an SRT is just timed text, it translates cleanly: keep the numbers and timecodes, swap the text into the target language, and you have a second subtitle track. Doing that manually for one language is tedious; for ten languages it is a project.
The faster path is to translate the whole file at once while preserving the timing. Upload your SRT (or your video) to Vidocu's subtitle translator, pick your target languages, and export a translated SRT per language with the timecodes intact. Vidocu supports 65+ languages, so one video can ship captions for your entire audience without a translation team. Our 6 best AI subtitle translator tools post compares the options, and there is a step-by-step subtitle translation tutorial if you want the guided version.
If you are translating the video itself and not just the captions, the video translation workflow goes further by regenerating voiceover in the target language alongside the subtitles.
Translate subtitles into 65+ languages
Upload an SRT or a video, pick your languages, and export translated SRT files with the timing preserved.
Translate subtitles freeCommon SRT problems and quick fixes
- Subtitles do not appear: check the filename matches the video exactly, or upload the SRT as the subtitle track manually. Confirm the file extension is really
.srtand not.srt.txt. - Garbled or boxed characters: the file was saved in the wrong encoding. Re-save as UTF-8.
- Captions out of sync: use a bulk time-shift to move the whole track, or check that you did not mix SRT comma timecodes with VTT period timecodes.
- File will not load on the web: the platform may want WebVTT. Export a
.vttversion instead. - Long lines getting cut off: split into shorter one or two-line captions.
Most of these come down to the same root causes: wrong encoding, wrong decimal separator, or a filename mismatch. Generating the file from a tool instead of typing it by hand avoids nearly all of them.
FAQ
What is an SRT file used for?
An SRT file stores subtitles or captions as timed plain text. It tells a video player or platform what caption to show and exactly when to show and hide it. You use one to add toggleable subtitles to a video, to upload captions to YouTube or LinkedIn, to make a video accessible, or as the source for translating captions into other languages.
How do I open an SRT file?
Open it in any text editor: Notepad on Windows, TextEdit on Mac, or a code editor like VS Code. To watch a video with the subtitles instead of reading the raw text, place the SRT in the same folder as the video with a matching filename and open the video in a player like VLC, which loads it automatically.
What is the difference between SRT and VTT?
Both are plain-text subtitle formats. SRT (SubRip) is the most universally compatible and uses a comma before milliseconds in its timecodes. VTT (WebVTT) is the web standard, uses a period for milliseconds, and supports styling and on-screen positioning. Use SRT for broad compatibility and uploads, and VTT for HTML5 web players where you want styling control.
How do I create an SRT file from a video?
The fastest way is to auto-generate it. Upload your video to a tool like Vidocu's free subtitle creator, which transcribes the speech, aligns the timecodes, and exports an SRT in minutes. You can also write one by hand in a text editor using the numbered block format, but that only makes sense for very short clips.
Can I edit an SRT file?
Yes. Open it in any text editor and change the text or timecodes, then save. To fix wording, edit the text line. To fix timing, adjust the timestamps, or use a bulk time-shift in a subtitle editor if the whole track is out of sync. Keep the sequence numbers in order and a blank line between each caption block.
How do I add an SRT file to a video permanently?
To make the captions permanent so they show on any platform, burn them into the video. Run the video and its SRT through a subtitle burner, which renders the text into the picture and exports a new file. Permanent (hard) subtitles cannot be turned off or edited afterward, so keep your original SRT in case you need to make changes later.
An SRT file is one of the simplest, most useful formats in video, and you almost never need to build one by hand. Upload your video to Vidocu's free subtitle creator, export a clean SRT in minutes, and translate it into 65+ languages from the same place. Try Vidocu for free to turn one video into subtitles, voiceover, documentation, and translations in a single workflow.

Written by
Daniel SternlichtDaniel Sternlicht is a tech entrepreneur and product builder focused on creating scalable web products. He is the Founder & CEO of Common Ninja, home to Widgets+, Embeddable, Brackets, and Vidocu - products that help businesses engage users, collect data, and build interactive web experiences across platforms.


