← Back to Blog

What Is an SRT File? Format, Structure and Uses

Rachel Nguyen··9 min read
SRTSubtitlesVideo ToolsGuidesCaptions
Laptop screen showing an SRT subtitle file open in a code editor with timestamped caption blocks

What Is an SRT File? Format, Structure and Uses

If you've ever downloaded subtitles for a movie or exported captions from YouTube, you've already dealt with an SRT file. The .srt format is the most widely used subtitle format on the internet, supported by virtually every video platform and player. But what actually goes inside one, and how does it work?

An SRT file is a plain text file that contains timed subtitle data for a video. It holds each subtitle as a numbered block with a start and end timestamp and the text to display. SRT files contain no audio or video data — they're a separate companion file that a player reads alongside the video.

An SRT file (SubRip Subtitle) is a plain text file containing timed captions for a video. Each subtitle block includes a sequence number, a start and end timestamp in HH:MM:SS,mmm format, and one or two lines of caption text, followed by a blank line. Virtually every video platform accepts SRT files, including YouTube, Vimeo, and TikTok.

What Does SRT Stand For?

SRT stands for SubRip Subtitle. The name comes from SubRip, a Windows application developed by Nicolas Wallon around 2001. SubRip was built to rip subtitle text from DVD video alongside the corresponding timecodes, and the .srt file it produced became the standard output format.

The format spread quickly because it's dead simple. Plain text, no proprietary encoding, no special software required. Any text editor on any operating system can open, create, or modify an SRT file. That simplicity made it the default subtitle format across the internet long before streaming even existed.

SRT files are supported by YouTube, Vimeo, TikTok, Facebook Video, VLC, Windows Media Player, Final Cut Pro, Adobe Premiere Pro, and most smart TVs. The format predates HTML5 video and WebVTT by roughly a decade, which explains its near-universal adoption: it was already everywhere when streaming platforms needed a subtitle standard. YouTube alone processes millions of manually uploaded subtitle files per year, with SRT as the most common format. Subtitles matter more than many creators realize: 69% of people watch video without sound in public (Verizon Media, 2022), and videos with subtitles get 15% more shares on average than those without (3Play Media, 2021). SRT is also the standard format for ADA and WCAG 2.1 caption compliance workflows, since it exports cleanly from transcription tools and imports into every major video platform. The file format's age is its biggest asset: nothing else has had 20+ years to become the default everywhere.

What Does an SRT File Look Like?

An SRT file is a sequence of subtitle blocks, each separated by a blank line. Each block has 3 components in this exact order:

  1. Sequence number — a whole number starting at 1, incrementing for each subtitle
  2. Timestamp line — start time --> end time, in HH:MM:SS,mmm format
  3. Caption text — one or two lines of the actual subtitle

Here's what a short SRT file looks like:

1
00:00:01,500 --> 00:00:03,200
Hello, welcome to the video.

2
00:00:03,500 --> 00:00:05,800
Today we're going to cover subtitle formats.

3
00:00:06,200 --> 00:00:08,000
Let's get started.

One detail trips up a lot of people: the timestamp separator is a comma, not a period. 00:00:01,500 is correct SRT format. 00:00:01.500 is VTT format. Video players are usually strict about this — a period instead of a comma can break subtitle display entirely, or cause the entire file to load with no captions showing.

Other format rules to know:

  • Maximum 42 characters per line
  • Maximum 2 lines per subtitle block
  • Text must be UTF-8 encoded (matters for accented characters, non-Latin scripts, apostrophes)
  • Each block must end with a blank line, including the last one in the file

Italics are supported via HTML tags: wrap text in <i> and </i>. Bold works with <b> tags. Most major platforms render these correctly, though some strip them silently.

How to Create an SRT File

There are two practical ways.

Manually in a text editor

Open Notepad on Windows or TextEdit on Mac, type the blocks following the format above, and save with an .srt extension instead of .txt. Make sure your editor is saving in UTF-8 encoding — this matters the moment your subtitles include anything beyond basic ASCII characters.

Manual creation works for short videos. A 10-minute video might have 80-100 subtitle blocks, which takes 2-4 hours to time by hand.

Transcribe, then export

If you don't want to hand-time every line, a transcription tool handles it automatically. PixScript transcribes a video from a URL or uploaded file and exports the result as a properly formatted SRT file with accurate timestamps. Paste a YouTube, TikTok, or Instagram Reels link, or upload an MP3, MP4, M4A, WAV, or MOV file (up to 500 MB). The transcript generates in under a minute, and you download the SRT with one click.

For detailed steps on both methods, see how to create an SRT file from a video.

How to Open and Edit an SRT File

SRT files open in any text editor. Double-clicking a .srt file on Windows usually opens Notepad; on Mac, TextEdit works. VS Code handles SRT files cleanly if you want syntax highlighting.

To edit a subtitle, find the block, change the text or adjust the timestamps, and save. Common edits:

  • Fixing spelling or punctuation errors
  • Adjusting timestamps when subtitles run early or late
  • Splitting long lines to stay under the 42-character limit
  • Adding italics with <i> tags for foreign language phrases or emphasis

Common SRT errors and how to spot them:

  • Subtitles not showing at all: check whether timestamps use a comma (correct) or a period (breaks most players)
  • Non-English characters showing as boxes or question marks: re-save the file with UTF-8 encoding
  • Subtitles running consistently early or late: shift all timestamps by a uniform offset
  • Subtitles overlapping: look for missing blank lines between blocks

For a full editing walkthrough, see how to edit an SRT file.

SRT vs VTT and Other Subtitle Formats

SRT is the oldest widely used subtitle format, but it's not the only one.

SRT vs VTT (WebVTT)

VTT is the HTML5 standard, used natively in web browsers. Both YouTube and Vimeo accept either format for uploads. The structural differences are small but important: VTT uses a period in timestamps (00:00:01.500) instead of a comma, and it supports CSS styling such as font color, size, and caption position. VTT also supports chapter markers, which SRT doesn't.

For uploading captions to YouTube or Vimeo, either format works. For web development where you're embedding video with <video> tags and want styled subtitles, VTT is the right choice. For broad platform compatibility with the least friction, SRT is the safer default.

SRT vs ASS/SSA

ASS (Advanced SubStation Alpha) supports complex styling: custom fonts, colors, positioning, and karaoke timing. It's common in anime fan-subtitling communities but rarely accepted by mainstream platforms. If a platform asks you to upload subtitles, it almost certainly wants SRT or VTT.

For platform-specific guidance on when to use each format, read SRT vs VTT: which subtitle format to use.

How PixScript Generates SRT Files From Any Video

Manually timing an SRT file for a 20-minute video means handling 150+ subtitle blocks by ear. That's 2-4 hours of work per video.

PixScript transcribes video from a URL or uploaded file and exports a properly formatted SRT file in under a minute. Paste a YouTube, TikTok, or Instagram Reels URL, or upload an audio/video file up to 500 MB (MP3, MP4, M4A, WAV, MOV). The transcript generates with timestamps, and you download the SRT in one click.

The free tier includes 10 transcriptions per month with TXT export. Pro ($9/month) adds SRT, VTT, and PDF export, AI summary, and translation into 10 languages (handy if you need subtitles in multiple languages without re-transcribing). Business ($19/month) adds 50+ translation languages and unlimited video length.

Try it at pixscript.com — paste a video URL and download your first SRT file in under 60 seconds.

Frequently Asked Questions

What does SRT stand for?

SRT stands for SubRip Subtitle. The name comes from SubRip, a Windows application created around 2001 that ripped subtitle text and timecodes from DVD video. The .srt file format it produced became the internet's most widely supported subtitle standard. Today it works on YouTube, Vimeo, TikTok, VLC, and virtually every other platform.

What's the difference between SRT and VTT?

Both formats store timed caption text, but SRT timestamps use a comma (00:00:01,500) while VTT uses a period (00:00:01.500). VTT also supports CSS styling and chapter markers; SRT has no built-in styling. For uploading captions to YouTube or Vimeo, either works. For web-embedded HTML5 video, VTT is the standard. See SRT vs VTT: which subtitle format to use for a full breakdown.

Can I create an SRT file for free?

Yes. You can write one manually in any text editor at no cost — just follow the block format and save with an .srt extension. For automatic creation from video, PixScript offers 10 free transcriptions per month; SRT export requires the Pro plan ($9/month). YouTube's auto-captions also let you download an SRT file for your own videos through YouTube Studio.

How do I add an SRT file to a YouTube video?

In YouTube Studio, open the video, go to Subtitles, and click Add Language. Choose "Upload file" and select your .srt file. YouTube reads the timestamps and displays captions at the correct times. Changes go live within a few minutes of saving.

What programs open SRT files?

Any text editor opens an SRT file: Notepad, TextEdit, VS Code, Sublime Text. Video players like VLC and MPC-HC load them alongside video — place the .srt file in the same folder as the video with the same base filename and VLC loads it automatically. Subtitle editors like Subtitle Edit show a waveform view for easier timing work.