What Is an SRT File? Format, Examples, and How to Create One

By whispertranscribe.ai Editorial Team · Last updated: November 2026 · 10 min read

An SRT file is a plain-text subtitle file. SRT is short for SubRip Subtitle, and each caption in the file has three parts: a sequence number, a start and end timestamp, and the text shown on screen. Because the format is so simple, YouTube, most video players, and most editing apps accept it.

Below you'll find the SRT file format explained line by line, SRT vs VTT, how to open, create, and upload an SRT file, plus a copy-paste template, a fix-it table, and a pre-upload checklist.

Quick answer: what is an SRT file?

An SRT file (.srt) stores subtitles and their timing as text, separate from the video. The player reads it and shows each line at the right moment. There's no audio or video inside.

  • SRT meaning: SubRip Subtitle, named after SubRip, a Windows program that extracts subtitles from DVDs and video files.
  • What's inside: numbered caption blocks, each with a timing line and one or more lines of text.
  • Where it works: YouTube, Vimeo, Facebook, and most desktop players.
  • How to make one: type it by hand, use a subtitle editor, or transcribe your video and export SRT.

The SRT file format, line by line

Here is a short sample we wrote for this article. It's a complete, valid SRT file:

1
00:00:01,000 --> 00:00:04,000
Welcome to the studio tour.

2
00:00:04,200 --> 00:00:07,500
This is where we record
every episode of the show.

3
00:00:08,000 --> 00:00:10,250
[door closes]

Each block follows the same four-part pattern:

  1. Sequence number. 1, 2, 3, and so on, starting at 1.
  2. Timing line. Start time, then -->, then end time, written as hours:minutes:seconds,milliseconds. Hours, minutes, and seconds take two digits and milliseconds take three. SRT uses a comma before the milliseconds, so 4.2 seconds is 00:00:04,200.
  3. Subtitle text. One or more lines. Block 2 wraps onto two lines, which is how you control line breaks on screen.
  4. Blank line. An empty line ends the block. Without it, the next block merges into this one.

There's no official SRT standard. These rules are the de facto format summarized on the Wikipedia SubRip page, so each player's parser has the final say. That's why a small slip can break one player and not another.

Many players understand simple tags such as <i>italic</i> and <b>bold</b>, but not all. YouTube's help page says only basic SRT files are supported and "no style info (markup) is recognized."

Pros and limitations of SRT

SRT is the safe default because almost everything reads it. It's the wrong choice when you need styling, positioning, or metadata.

Strengths

  • Readable and editable in Notepad or TextEdit.
  • Widely accepted. YouTube recommends SubRip to people new to caption files, Vimeo accepts it, and Facebook's caption upload uses it.
  • Easy to translate. Change the text lines, keep the timing, and the new language stays in sync.

Limitations

  • No reliable styling. Fonts, colors, and sizes aren't part of the format, and tag support varies.
  • No standard positioning, so you can't reliably move a caption off on-screen text.
  • No header or metadata. The file can't state its language, which is why Facebook asks for the language in the filename.
  • No declared encoding. Players have to guess, so save as UTF-8. YouTube says SRT files "must be in plain UTF-8."

SRT vs VTT: what's the difference?

VTT (WebVTT, Web Video Text Tracks) is a W3C web format that looks almost like SRT but requires a WEBVTT header, uses a period in timestamps, and supports positioning, styling, and comments. SRT is simpler and supported in more places.

Feature SRT (.srt) VTT (.vtt)
Full name SubRip Subtitle Web Video Text Tracks (WebVTT)
Specification None official; de facto format W3C specification
First line of file The first cue number WEBVTT header (required)
Millisecond separator Comma: 00:00:04,200 Period: 00:00:04.200
Hours in timestamp Always written Optional when zero
Cue numbers Expected Optional cue identifiers
Styling and positioning Not standard Cue settings, STYLE blocks, regions
Comments No NOTE blocks
Text encoding Not defined (use UTF-8) Must be UTF-8
Best for YouTube, Facebook, editors, desktop players HTML5 video on your own site, Vimeo

Sources: the W3C WebVTT specification and each platform's help pages. Vimeo accepts both and recommends WebVTT; Facebook's upload expects SRT.

SRT to VTT by hand: add WEBVTT and a blank line at the top, then change the comma in each timestamp to a period. Touch only the timing lines, not commas in your text.

How to open an SRT file

To read or edit an SRT file, open it in a plain text editor. To watch it with a video, load it into a media player.

  • Windows: right-click, choose Open with, then Notepad (or Notepad++).
  • Mac: open it in TextEdit. If it looks odd, use Format → Make Plain Text.
  • VLC: play the video, then Subtitle → Add Subtitle File. Many players load the subtitles automatically if the .srt has the same name as the video and sits in the same folder.
  • Subtitle editors: free tools such as Subtitle Edit or Aegisub show timing for each block and flag overlaps.

If accented letters turn into symbols such as é, the file was saved or read in the wrong encoding. Re-save it as UTF-8. Avoid Word or Google Docs, which can add curly quotes and hidden formatting.

How to create an SRT file

You can write an SRT file by hand, build it in a subtitle editor, or generate it from the audio. For anything longer than a minute or two, generating it and then fixing it is the fastest.

Method 1: Type it in a text editor

  1. Open Notepad, or TextEdit in plain-text mode.
  2. Paste the template below and replace the times and text.
  3. Save as UTF-8 with the name your-video.srt. On Windows, set "Save as type" to All Files so you don't get your-video.srt.txt.

Minimal SRT template:

1
00:00:00,000 --> 00:00:02,500
First line of dialogue.

2
00:00:02,700 --> 00:00:05,000
Second line of dialogue.

Leave a blank line after the last block, since some players expect it.

Method 2: Use a subtitle editor

Subtitle editors let you set each line's in and out points against the audio waveform, then export SRT. Video editors such as Premiere Pro and DaVinci Resolve can also export caption tracks as SRT.

Method 3: Generate an SRT file with whispertranscribe.ai

whispertranscribe.ai is a browser-based transcription tool powered by OpenAI's Whisper model. It turns speech into a timed transcript you can export as SRT or VTT.

  1. Choose the spoken language from 130+ languages. For rough audio, many languages have a Noise / Low-Quality Audio/Video option.
  2. Add your media. Upload an audio or video file up to 5GB, or paste a YouTube, Vimeo, Google Drive, or Dropbox link into Transcribe from URL.
  3. Turn on speaker detection if more than one person talks.
  4. Review the transcript, especially names, numbers, and jargon.
  5. Export SRT or VTT.

You can also start from the AI subtitle generator, the MP4 to SRT converter, or MP3 to SRT for audio-only recordings. The exports are soft subtitle files that you upload alongside the video; nothing is burned into the picture. You can start for free with no account required, and paid plans start from $9.99/month billed annually (pricing).

How to upload an SRT file to YouTube, Vimeo, and Facebook

The steps below follow each platform's help center as of November 2026. Menus change, so check the linked page if a button looks different.

YouTube

From YouTube Help: Add subtitles & captions:

  1. In YouTube Studio, choose Subtitles from the left menu and select the video.
  2. Click Add language and pick the language.
  3. Under Subtitles, click Add, then Upload file.
  4. Choose With timing, then Continue.
  5. Pick your .srt file and select Save.

YouTube's supported caption formats page lists the SRT rules: plain UTF-8, no markup.

Vimeo

From Vimeo Help: How to add captions or subtitles:

  1. Open the video from your Library.
  2. Select Languages beside the player, then +.
  3. Upload the file and set Language and Type (Subtitle or Caption).
  4. Select Upload, then toggle the track on.

Facebook

Facebook requires a locale in the filename: filename.[language code]_[country code].srt, lowercase language and uppercase country, such as tour.en_US.srt (Facebook Help: SRT naming convention). For a video on your profile, open the post, click Options → Edit post, then Edit from the composer, Add captions, upload the file, and Save. Pages and Meta Business Suite use slightly different menus.

Troubleshooting: common SRT mistakes and fixes

Most SRT problems are small formatting slips. Here are the usual ones side by side.

Problem Wrong Right
Period instead of comma 00:00:04.200 00:00:04,200
Missing hour digit 0:00:04,200 00:00:04,200
Broken arrow 00:00:01,000 -> 00:00:04,000 00:00:01,000 --> 00:00:04,000
No blank line between blocks Text runs into the next number One empty line after each block
End before start 00:00:09,000 --> 00:00:08,000 00:00:08,000 --> 00:00:09,000
Overlapping cues Block 2 starts before block 1 ends Block 2 starts at or after block 1 ends
Leftover VTT header File starts with WEBVTT File starts with 1
Hidden .txt extension video.srt.txt video.srt
Wrong encoding café on screen Save as UTF-8 to show café

Everything off by the same amount? The file has a fixed offset, often because the video was trimmed afterward. Shift all timestamps in a subtitle editor. In VLC, the G and H keys change subtitle delay, which helps you find the offset.

Gap growing over time? The subtitles were likely timed against a different cut or frame rate. Re-time against the final export, or regenerate the SRT from it.

Converting frame timecodes to SRT time

Editors often show hours:minutes:seconds:frames. To get SRT milliseconds, divide the frame number by the frame rate and multiply by 1,000:

Editor timecode Frame rate Calculation SRT timestamp
00:01:05:12 25 fps 12 ÷ 25 × 1,000 = 480 ms 00:01:05,480
00:01:05:12 30 fps 12 ÷ 30 × 1,000 = 400 ms 00:01:05,400
00:01:05:12 24 fps 12 ÷ 24 × 1,000 = 500 ms 00:01:05,500

This only holds for whole-number frame rates. For 23.976 or 29.97 fps, and drop-frame timecode in particular, export the SRT straight from your editor.

SRT pre-upload checklist

  • Extension is .srt, not .srt.txt
  • Saved as UTF-8
  • First line is 1, with no WEBVTT header
  • Numbers run in order with no duplicates
  • Every timing line uses commas: HH:MM:SS,mmm --> HH:MM:SS,mmm
  • Every end time is later than its start, and no cues overlap
  • One blank line after every block
  • No more than two lines of text per caption
  • For Facebook, the filename includes a locale such as .en_US.srt
  • Played back once in VLC or the platform preview

What SRT files are used for

Use case Why SRT fits Tip
YouTube uploads A basic format YouTube suggests for beginners Upload "With timing"
Social video watched muted Captions carry the message without sound Follow Facebook's locale filename rule
Courses and training Instructors can fix lines in a text editor Keep captions to two short lines
Podcasts posted as video Turns audio into readable captions Generate from the audio, then review
Translation Translate the text, keep the timing Never edit timing lines while translating

Reusing an SRT file for translation

  1. Fix the original-language SRT first. Errors carry into every translation.
  2. Copy it and rename it for the new language, such as tour.es_ES.srt.
  3. Translate only the text lines. Leave numbers, timestamps, and blank lines alone.
  4. Check line length, since translations often run longer.
  5. Need English from non-English speech? Translate audio to English gives you English text to work from.

For plain transcripts, try the video to text converter or see all features.

FAQs

What does SRT stand for?

SRT stands for SubRip Subtitle, sometimes called SubRip Text. The name comes from SubRip, a free Windows program that uses text recognition to extract subtitles and their timings from DVDs and video files, then saves them as a .srt text file. Few people use the program today, but its output format became one of the most common subtitle formats on the internet.

Is SRT or VTT better?

Neither is better everywhere. SRT is simpler and works in more places, including YouTube, Facebook, editing software, and desktop players. VTT, or WebVTT, is the W3C format for web video and adds a required header, positioning, styling, and comments. Use SRT when you upload to platforms or hand files to editors. Use VTT for HTML5 video on your own website, or on Vimeo, which recommends it.

How do I create an SRT file from a video?

The fastest way is to transcribe the video's audio and export the result as SRT. With whispertranscribe.ai, choose the spoken language, upload the video or paste a YouTube, Vimeo, Google Drive, or Dropbox link, review the transcript, and export SRT or VTT. For a short clip, you can also type the file in a text editor using the number, timestamp, text, and blank-line pattern, then save it as .srt.

Can an SRT file include formatting or speaker names?

Speaker names, yes; formatting, only partly. You can type a name or a marker such as ">> ALICE:" at the start of a caption line, because it's just text. Many players also read basic tags for italic, bold, and underline, but support varies, and YouTube ignores SRT markup completely. If you need reliable styling or caption positioning, use WebVTT or another advanced format.

Why are my SRT subtitles out of sync?

If every caption is off by the same amount, the file has a fixed offset, often because the video was trimmed after the subtitles were made. Shift all timestamps in a subtitle editor. If the gap grows over time, the subtitles were probably timed against a different cut or frame rate. Re-time them against the final video, or regenerate the SRT from that final file.


Need subtitles for your next video? Upload a file or paste a link into the whispertranscribe.ai subtitle generator to get SRT or VTT files in 130+ languages, with speaker identification.

References

Ready to turn your recordings into text?

Transcribe audio and video with whispertranscribe.ai.

Start transcribing ↗