All tutorials

How to Create an SRT File: Format, Rules and Fixes

What goes inside an SRT file, how to write one in a text editor, how long each line can be, how to get one generated from your video, and why YouTube or your editor might reject it.

How to create an SRT file: write each subtitle as a number, a start and end time (00:00:01,000 --> 00:00:03,500), one or two lines of text and a blank line, then save it as plain text with the .srt extension in UTF-8. That's the whole format. For a video longer than a minute, it's faster to have a caption tool transcribe the video and export the SRT, then fix the words.

What's inside an SRT file

1
00:00:01,000 --> 00:00:03,500
Most people cut their videos
in the wrong order.

2
00:00:03,600 --> 00:00:06,200
Here's the order that saves an hour.
PartRule
Number1, 2, 3… in order, on its own line
TimeHH:MM:SS,mmm --> HH:MM:SS,mmm, with a comma before the milliseconds
TextOne or two lines
Blank lineBetween every subtitle, including after the last one

Write one by hand

  1. Open a plain-text editor: Notepad on Windows; on a Mac, TextEdit with Format > Make Plain Text.
  2. Play the video and note when each line starts and ends.
  3. Type the blocks as above.
  4. Save as video-name.srt with UTF-8 encoding. Check the file doesn't end up as .srt.txt.

This works for a 30-second clip. For anything longer, generate it and correct it.

Rules that keep subtitles readable

Netflix's English subtitle guide is the common reference:

  • 42 characters per line, at most.
  • Two lines, at most.
  • 20 characters per second, at most, for adult viewers.

Break lines where you'd pause when speaking, not mid-phrase. On vertical video, go shorter than 42: the frame is narrow, and the bottom and right edge are covered by the app's buttons.

Get an SRT from your video automatically

  1. Upload the video to the AI caption generator. It transcribes what's said and times every word.
  2. Read the captions and fix names, brand names and numbers; that's where mistakes cluster. You can also cut the video by deleting words in the transcript.
  3. In Studio, choose Export for other editors (Pro and Max plans). The package has the timeline for Premiere Pro, DaVinci Resolve and Final Cut Pro, the media, and the captions as an SRT.

It's charged by the length of the video, and the page shows the credits before you start. New accounts get free credits.

Already editing in Premiere? It can transcribe and export captions itself: how to add captions in Premiere Pro.

Use the SRT

  • YouTube: in YouTube Studio, open Subtitles, choose the video, Add language, then Upload file and With timing.
  • Premiere Pro or Resolve: import the file and drag it onto the timeline as a caption track.
  • Another language: translate the text lines only; leave numbers and timestamps as they are.

If the file is rejected or looks wrong

What you seeWhyWhat to change
"Invalid file" or nothing appearsA period instead of a comma in a timestamp, or a missing blank lineFix the format in a text editor
Accented or Chinese characters show as symbolsNot saved as UTF-8Save again with UTF-8 encoding
The file is subtitles.srt.txtThe editor added .txtRename it to end in .srt
Subtitles drift late as the video goes onThe video was cut after the SRT was madeExport the SRT again from the final edit
Subtitles overlapOne end time is after the next start timeShorten the earlier subtitle

Frequently asked questions

What is an SRT file?

A plain-text subtitle file. Each subtitle is a number, a start and end time, one or two lines of text, and a blank line. Almost every video platform and editor reads it.

Can I make an SRT file in Notepad or TextEdit?

Yes. Write it as plain text, then save it with the .srt extension and UTF-8 encoding. In TextEdit, switch to plain text first.

What's the timestamp format in an SRT?

Hours, minutes, seconds and milliseconds with a comma: 00:01:05,250 --> 00:01:08,000. A period instead of the comma is the most common reason a file is rejected.

How long should each subtitle line be?

Netflix's English guide allows 42 characters per line and two lines at most, read at up to 20 characters per second. Shorter is easier to read on a phone.

How do I get an SRT from my video automatically?

Have a caption tool transcribe the video, correct the words, then export. In Pireel, Export for other editors (Pro and Max) puts the captions in the package as an SRT.