What is an SRT file?

SRT: SubRip Subtitle

Updated

An SRT file (.srt) is a plain-text subtitle file: numbered cues, each with a start and end time in HH:MM:SS,mmm format and the caption text, separated by blank lines. It is the most widely supported subtitle format, read by YouTube, VLC, Premiere, CapCut and almost every other player and editor.

In depth

SRT stands for SubRip Subtitle (also SubRip Text). The format comes from SubRip, a free Windows program from around 2000 that pulled ("ripped") subtitles off DVDs with text recognition and saved them as simple text files. There has never been an official standard: the format is defined by what players accept, which is exactly why it caught on. An .srt file holds no video and no audio, only text and timing, so it is tiny (a 10-minute video's subtitles are usually a few kilobytes) and you can open it in any text editor. A video player or platform reads the file next to the video and shows each line at the right moment. Because it is the lowest common denominator, SRT is the safest choice whenever you don't know what the other side accepts.

SRT file format, line by line

Every SRT file is a list of cues (subtitle blocks). Each cue has exactly four parts, always in this order:

  1. Cue number: a counter that starts at 1 and goes up by one for every cue.
  2. Timing line: start time, a space, the arrow -->, a space, end time. Times are HH:MM:SS,mmm: two-digit hours, minutes and seconds, then a comma and three-digit milliseconds (00:01:02,500 is 1 minute 2.5 seconds).
  3. Text: one or more lines of caption text. Two lines is the practical maximum; most style guides keep each line under about 42 characters.
  4. A blank line, which ends the cue. The next cue number follows.
PartRuleExample
Cue numberInteger, starting at 1, one per cue1
TimestampHH:MM:SS,mmm --> HH:MM:SS,mmm (comma before milliseconds)00:00:01,000 --> 00:00:03,200
Text1–2 lines of plain textWelcome back to the channel.
SeparatorOne empty line between cues(blank line)
EncodingUTF-8 (needed for accents, emoji, non-Latin scripts)Café, ¿qué tal?, 日本語
Extension / MIME type.srt / application/x-subripmy-video.srt

SRT has no official styling. Many players do honour simple HTML-style tags inside the text, <i>italic</i>, <b>bold</b>, <u>underline</u> and <font color="#ffff00">colour</font>, and some desktop players read the position tag {\an8} to move a line to the top. Platforms like YouTube and Facebook ignore most of this, so treat tags as a bonus, not something to rely on.

SRT file example

Here is a complete sample SRT file with five cues. Copy it into a text editor, save it as sample.srt in UTF-8, and it will load in VLC, YouTube Studio or any editor:

1
00:00:00,500 --> 00:00:02,800
Hey, welcome back to the channel.

2
00:00:03,000 --> 00:00:06,200
Today I'll show you how subtitles
actually work under the hood.

3
00:00:06,600 --> 00:00:09,000
It's just a text file.

4
00:00:09,400 --> 00:00:12,900
<i>Seriously</i>, open one in Notepad
and you'll see this exact layout.

5
00:01:05,250 --> 00:01:08,000
Thanks for watching!
sample.srt: five cues, a two-line cue, an italic tag and a jump to the one-minute mark.

Notice what is not there: no header, no style block, no frame numbers. Cue 5 starts at 00:01:05,250 because cues only need to exist where someone is speaking; gaps between cues simply show nothing.

How to create an SRT file

You can write an SRT by hand in any plain-text editor, or generate one from the video's audio. Typing works for a short clip; for anything longer than a minute or two, generating it is far faster because the hard part is the timestamps, not the text.

By hand on Windows (Notepad):

  1. Open Notepad and type your cues in the format above: number, timing line, text, blank line.
  2. Choose File > Save As.
  3. Set "Save as type" to All files (*.*) and type a name ending in .srt, for example my-video.srt. Otherwise Notepad saves my-video.srt.txt.
  4. Set Encoding to UTF-8 and click Save.

By hand on Mac (TextEdit):

  1. Open TextEdit, start a new document and choose Format > Make Plain Text (rich text would add hidden formatting).
  2. Type your cues.
  3. Choose File > Save, name the file my-video.srt, set Plain Text Encoding to Unicode (UTF-8), and when asked, choose Use .srt.

From the video (automatic): upload the video to an SRT generator that transcribes the speech and writes the timestamps for you. The SoCaptions SRT generator uses Whisper with word-level timing, works in 99 languages, and lets you pick standard two-line cues or short one-line cues for vertical video. The first 5 minutes of transcription are free, and SRT/VTT downloads are free on every plan.

Free tool
SRT generator: turn a video or audio file into a timed .srt
Already have a transcript?
Text to SRT: paste plain text and get a timed SRT file

How to open and edit an SRT file

An SRT file is plain text, so double-clicking it may open a video player, a text editor, or nothing, depending on what your computer has associated with .srt. The file itself is never the problem; pick the right program:

  • To read or fix the text: right-click the file > Open with > Notepad (Windows) or TextEdit (Mac). VS Code, Notepad++ and Sublime Text work too and show the encoding.
  • To watch it with the video: in VLC, open the video and choose Subtitle > Add Subtitle File. Or give the SRT the same name as the video (holiday.mp4 + holiday.srt) in the same folder, and VLC, Windows Media Player and most TV players load it automatically.
  • To edit timing and text visually: use a subtitle editor that shows cues as rows, so you can't break the format by accident. Subtitle Edit and Aegisub are free desktop options; the SoCaptions SRT editor runs in the browser.
  • On a phone: most mobile players (VLC for iOS and Android included) can load an SRT stored next to the video. To edit, use a text editor app that saves as plain .srt.
Free tool
SRT editor: open, fix and re-save subtitle files in your browser

How to add an SRT file to a video

There are two ways to put SRT subtitles on a video, and which one you need depends on where the video goes:

  • Upload it as a caption track (closed captions): YouTube Studio > Subtitles > Add language > Upload file > With timing; Vimeo, Facebook, LinkedIn and most course platforms have a similar caption upload. Viewers can switch the captions on and off, and YouTube can index the text.
  • Burn it into the picture (open captions): render the text into the video pixels so it shows everywhere, including TikTok, Instagram Reels and WhatsApp, which have no caption upload. Use the free Add SRT to video tool, a video editor (Premiere, DaVinci Resolve, CapCut), or FFmpeg: ffmpeg -i video.mp4 -vf subtitles=video.srt out.mp4.
  • Keep it as a sidecar file: for local playback, keep the .srt next to the video with the same file name.
Free tool
Add SRT to video: burn subtitles into an MP4 online
Guide
How to upload an SRT file to YouTube, step by step

Common SRT errors and how to fix them

SymptomCauseFix
Upload rejected or subtitles never appearDot instead of comma before milliseconds (00:00:01.000), which is WebVTT syntaxReplace the dot with a comma in every timing line, or run the file through a VTT to SRT converter
Accents show as é or ?File saved as ANSI/Windows-1252 instead of UTF-8Re-save as UTF-8 in Notepad, TextEdit or VS Code
Two cues merge into oneMissing blank line between cuesPut exactly one empty line after every cue's text
File won't load, shows as my-video.srt.txtEditor added a hidden .txt extensionTurn on file extensions and rename it to .srt
Every line is early or late by the same amountVideo was trimmed after the SRT was madeShift all timestamps by the offset
Subtitles drift further out of sync over timeTimings made for a different frame rate (e.g. 25 vs 23.976 fps)Convert the timing between frame rates
Lines overlap or flashEnd time of one cue is after the start of the nextMake each end time earlier than the next start time
Free tool
Shift subtitle timing: fix an SRT that is early or late
Free converter
VTT to SRT: fix dot timestamps and drop the WEBVTT header

SRT vs VTT and other subtitle formats

SRTWebVTT (.vtt)ASS (.ass)
Timestamp00:00:01,00000:00:01.0000:00:01.00
HeaderNoneWEBVTT required[Script Info] sections
Styling and positionUnofficial tags onlyCue settings, CSS ::cueFull fonts, colours, effects
Best forUploads, editors, playersHTML5 <video> on websitesStyled fansubs, karaoke

When to use it

Use SRT whenever you need a subtitle file that just works: uploading captions to YouTube, Vimeo, Facebook or LinkedIn, importing into Premiere Pro, DaVinci Resolve, Final Cut Pro or CapCut, or playing subtitles in VLC and smart TVs. Switch to WebVTT only for captions in an HTML5 <video> element on your own site, and to ASS when you need styling the file itself must carry.

Frequently asked

What is an SRT file used for?+

To store subtitles or closed captions separately from the video. A player or platform reads the SRT and shows each line over the video at the times written in the file. It is the format YouTube, Facebook, Vimeo, LinkedIn and video editors most commonly ask for.

What does SRT stand for?+

SubRip Subtitle (sometimes SubRip Text). SubRip was a free Windows program from around 2000 that extracted subtitles from DVDs and saved them in this format.

How do I open an SRT file?+

Open it with Notepad (Windows) or TextEdit (Mac) to read or edit the text. To watch it with a video, load it in VLC via Subtitle > Add Subtitle File, or give it the same name as the video in the same folder.

How do I make an SRT file for free?+

Type it in Notepad or TextEdit using the number / timestamp / text / blank line layout and save it as UTF-8 with a .srt extension. Or upload the video to the SoCaptions SRT generator, which transcribes the first 5 minutes free and writes the timestamps for you.

Is an SRT file the same as a caption file?+

SRT is one kind of caption file. Others include WebVTT (.vtt), SBV (YouTube's old format), TTML/DFXP and SCC. SRT is the most widely accepted, so it is the usual answer when a platform asks for "a caption file".

Can an SRT file contain multiple languages?+

No. One SRT holds one subtitle track. For several languages, make one file per language (video.en.srt, video.es.srt) and upload each as its own track.

Does SRT support styling or positioning?+

Not officially. Many players honour <i>, <b>, <u> and <font color> tags, and some honour {\an8} to move a line to the top, but platforms often strip them. For guaranteed styling, burn the captions into the video.

How do I convert SRT to VTT or text?+

Swap every comma in the timestamps for a dot and add WEBVTT as the first line, or use a free in-browser converter: SRT to VTT, or SRT to TXT to keep only the words.

Related terms
Full comparison
SRT vs VTT vs ASS: compatibility table and a 4-question decision tree for picking the right format.
Skip the file-format gymnastics.
Drop a video into the SoCaptions editor — get ready-to-publish captions in any format.
Try free