Skip to main content
Aivently
Log inGet started
Menu

How to Create an SRT File: 4 Easy Ways (With Example)

An SRT file is plain text with numbered, timed lines. Type one by hand, build one from a script, or generate one from speech. Here is how to pick and do each.

Written by
Aivently Editorial
Reviewed by
Aivently Editorial
Published
Updated

An SRT file is a plain text file of numbered subtitles, each with a start time, an end time and the words to show. To create one, type it in a text editor and save it with the .srt extension, or let a tool build it from a script or from speech. For a short clip, typing works. For anything longer, generate the file and spend your time correcting it.

Four ways to create an SRT file

Your starting point decides the method. If the words already exist as a script, you only need timing. If they exist only as speech, you need transcription.

Your situationBest methodCostTiming quality
Clip under a minute or twoWrite it by handFreeAs good as your patience
You have a script or transcriptText to SRT toolFreeEstimated, needs adjusting
You have only audio or videoAI transcriptionPaid, with a free startFollows the speech
The video is on your YouTube channelYouTube StudioFreeFollows the speech

What goes inside an SRT file

Every subtitle, called a cue, has four parts in this order: a number, a timing line, one or two lines of text, and a blank line. Here is a complete, working file:

1
00:00:01,000 --> 00:00:03,500
Welcome back to the channel.

2
00:00:03,800 --> 00:00:06,200
Today we are making a subtitle file
from scratch.

3
00:00:06,600 --> 00:00:09,000
It takes less time than you think.

The timing format is hours:minutes:seconds,milliseconds, and the arrow is two hyphens and a greater-than sign with a space on each side. The comma before the milliseconds matters. A dot there is WebVTT style, and strict SRT readers can reject it.

Want a file to compare yours against? Our sample SRT files are valid examples you can copy or download.

Method 1: Write an SRT file by hand

This suits short clips, and it is the best way to see how the format works. You need the video open beside a text editor.

On Windows with Notepad

  1. Open Notepad and type your first cue, using the example above as a pattern.
  2. Play the video, pause at each new line of speech, and note the time.
  3. Choose File, then Save as.
  4. Set Save as type to All files. If you skip this, Notepad can save video.srt.txt.
  5. Name the file after your video, such as my-video.srt.
  6. Set Encoding to UTF-8 and save.

On a Mac with TextEdit

  1. Open TextEdit and choose Format, then Make Plain Text. The default is rich text, which will not work.
  2. Type your cues.
  3. Save the file with a name ending in .srt, with UTF-8 as the encoding. If TextEdit asks, keep .srt.

Menu labels can change between app versions, but the three rules do not: plain text, .srt extension, UTF-8.

In Microsoft Word

Word can do it, but it is the riskiest choice. Its AutoCorrect can turn the typed arrow into a single arrow character, and the timing line then stops working. If your script already lives in Word, paste it into Notepad or TextEdit and finish there.

If you stay in Word, save as Plain Text, pick UTF-8 when it asks about encoding, then rename the file from .txt to .srt.

Method 2: Create an SRT file from a script or text

If you already have the words, typing timecodes by hand is wasted effort. Aivently's free Text to SRT tool takes pasted text and gives you a timed file.

  1. Paste your script, up to 5 MB. Nothing is uploaded, because it runs in your browser.
  2. Choose SRT as the output. VTT and ASS are also available.
  3. Set a reading speed. 15 characters per second is comfortable for most viewers.
  4. Download the file.

The tool splits your text so each subtitle has at most two lines of 42 characters, and it keeps each one on screen for between 0.833 and 7 seconds.

One honest limit: plain text has no timing, so the tool estimates it from reading speed. The result will not match your video exactly. Move the whole file with the subtitle sync tool to fix a constant offset, then adjust single cues in an editor. Our guide on how to edit an SRT file covers that step.

Method 3: Create an SRT file from audio or video

If the words are only in the recording, use transcription. It creates the text and takes the timing from the speech, so there is no typing and no guessing.

With Aivently transcription the steps are:

  1. Upload your audio or video file. MP3, WAV, MP4, MOV and MKV are among the accepted types.
  2. Pick the language and see the exact credit cost before anything runs.
  3. Review the timed transcript in the editor, and fix names, numbers and misheard words.
  4. Export as SRT.

Files can run up to 3 hours and 4 GB. It costs 1 credit per minute of media, and packs start at $5 for 100 minutes. Your first 10 minutes are free once your email is verified, which is enough to test it on a real clip.

Do not skip the review in step 3. Speech recognition is a fast first draft, but it still trips on names, product terms and overlapping speakers. Our walkthrough on turning speech into an SRT file goes deeper. If you edit in Premiere Pro, see how to import SRT captions for the next step.

Method 4: Create an SRT file with YouTube Studio

YouTube can do the timing for free if the video is on your channel. Unlisted works if you do not want it public yet.

  1. In YouTube Studio, select Subtitles in the left menu and choose your video.
  2. Select Add language, pick the language, then Add under Subtitles.
  3. Select Auto-sync, then paste your transcript into the box.
  4. Save it. Timing can take a few minutes.
  5. To get the file, go back to Subtitles, select Edit next to the language, open the options menu and choose Download subtitles.

Auto-sync needs a transcript in the language spoken in the video, and YouTube does not recommend it for videos over an hour or with poor audio. YouTube's help pages do not name the downloaded format, so check the extension. If it is not .srt, run it through the free subtitle converter.

Mistakes that stop an SRT file from working

Most broken SRT files fail for one of these reasons:

  • The file is really .srt.txt. Your system may hide the last extension. Turn on file extensions and check the full name.
  • The file is rich text. Word and default TextEdit add formatting. SRT must be plain text.
  • The encoding is wrong. YouTube requires plain UTF-8. Other encodings can turn accented letters into symbols.
  • The arrow changed. Word can replace it with an arrow character, and TextEdit's Smart Dashes can merge the two hyphens. Turn that off under Edit, then Substitutions.
  • A dot replaced the comma in the timecode.
  • No blank line between cues, which can run two subtitles together.
  • Cues overlap. Many players hide or stack lines when one cue starts before the last one ends.

Test the file before you publish

Give the file the same name as your video, keep both in one folder, and open the video in a player such as VLC. Most players then load the subtitles for you. Watch the first minute and the last minute, because timing errors often grow toward the end.

Then run the file through the free subtitle checker. It flags lines over 42 characters, cues with more than two lines, reading speeds above 17 characters per second, and overlaps. Those are common defaults rather than hard rules, and some platforms use stricter limits.

Once the file reads well, you can reuse it. To reach viewers in another language, Aivently's subtitle translator keeps each cue's timecodes and returns a new SRT file. You can preview the first 20 lines free with no account.

Frequently asked questions

Can I create an SRT file for free?

Yes. A text editor such as Notepad or TextEdit is free, and so are the Text to SRT tool and YouTube Studio's Auto-sync. Paid tools save time on long recordings, because you do not need a transcript first.

How do I create an SRT file from text?

Paste the text into a Text to SRT tool, pick a reading speed and download the file. The timing is estimated, so shift it to match your video and adjust single cues afterward.

How do I create an SRT file from a video?

Upload the video to a transcription tool, correct the transcript and export it as SRT. If the video is on your YouTube channel and you have a transcript, YouTube Studio's Auto-sync is a free option.

Can I save a Word document as an SRT file?

Yes, as Plain Text with UTF-8 encoding, then rename the extension to .srt. Check every timing line first, because AutoCorrect can replace the arrow and break the file.

How long should each subtitle line be?

Aim for at most 42 characters per line and two lines per cue. The SRT format sets no limit, but these are common guidelines, and some platforms use stricter ones. Check the rules of the platform you publish on.

Sources

  1. Aivently subtitle translation and transcriptionAivently

Translate your SRT file with AI

Upload SRT, VTT or ASS subtitles, see the exact price, then review every translated line before you export. Your first 10 minutes are free once your email is verified.

Support