How to make an SRT file
If you have the words as text, paste them into a text-to-SRT tool and it splits and times them for you; then line the timing up with your video. With no text yet, type the subtitles in any text editor as numbered blocks with start and end times, and save the file with the .srt extension in UTF-8.
Which way to make it
| You have | Fastest way |
|---|---|
| A script, a transcript or the words in a document | Paste the text into TXT to SRT, then line up the timing |
| Only the video, and a few lines to write | Type the SRT by hand in a text editor |
| Only the video, and a long film to subtitle | A free desktop subtitle editor such as Subtitle Edit or Aegisub |
| Captions from YouTube, a course or a meeting, as a VTT file | VTT to SRT |
| Styled ASS subtitles from an anime release | ASS to SRT |
Making subtitles from the audio itself, by speech recognition, is not something this site does. If the video is yours on YouTube, YouTube Studio can download the captions YouTube made for it as an SRT file, which you can then check and correct here.
From a script or a transcript
Most of the work in a subtitle file is typing the words. If you already have them, let a tool do the splitting and timing:
- Open TXT to SRT and paste the text, or open a TXT file. Put an empty line where a new subtitle must start, and start a line with a name and a colon, such as
ANA:, when someone new speaks. - The text is split into subtitles of at most two lines of 42 characters, and each one stays on screen for its length divided by a reading speed of 15 characters per second, between 1 and 7 seconds.
- Enter when the speech starts and ends in your video to spread the subtitles over that stretch, or download them as they are and line them up afterwards.
For example, this short script:
Welcome back to the workshop.
Today we are building a bird box from one pine plank, and the whole job takes about an hour.
First, mark out the six pieces.
becomes this SRT file:
1
00:00:00,000 --> 00:00:01,933
Welcome back to the workshop.
2
00:00:02,017 --> 00:00:05,484
Today we are building a bird
box from one pine plank,
3
00:00:05,568 --> 00:00:08,101
and the whole job takes about an hour.
4
00:00:08,185 --> 00:00:10,252
First, mark out the six pieces.
The long sentence did not fit in two lines of 42 characters, so it was split after the comma. The timing starts at zero and follows reading speed, not the speaker, so the last step is always to match it to the video: sync subtitles shifts every line until the first one starts when the speech does, and with two sync points it also stretches the timing to fit the end.
By hand, in a text editor
An SRT file is plain text, so any text editor can make one. Copy this template and change the times and the words:
1
00:00:01,000 --> 00:00:03,500
The first subtitle.
2
00:00:04,000 --> 00:00:06,000
The second subtitle,
on two lines.
Each subtitle is a number, a timing line, one or two lines of text and an empty line. The times are hours, minutes, seconds and milliseconds, with a comma before the milliseconds and --> between start and end. What is an SRT file? explains each part and the rules players enforce.
To find the times, play the video and pause where each line starts and ends. Most players show whole seconds, which is close enough to begin with; you can fine-tune each line later.
Saving it on Windows
- Type or paste the subtitles in Notepad.
- Choose File, Save as. Set "Save as type" to "All files", so Notepad does not add
.txt. - Name the file after the video, such as
Holiday.srtforHoliday.mp4. Typing the name in quotes,"Holiday.srt", keeps Notepad from adding.txtin any case. - Set Encoding to UTF-8 and save.
Saving it on a Mac
- In TextEdit, choose Format, Make Plain Text before you type. A rich text document cannot become an SRT file.
- Choose File, Save, and name the file
Holiday.srt. If TextEdit asks which extension to use, choose.srt. - Choose Unicode (UTF-8) as the plain text encoding, and save.
Check the file before you use it
Hand-typed files often have small mistakes that players do not forgive. Open the file in the subtitle checker and the check finds them in about a second. Some are repaired as the file opens, and listed under "Fixed for you" so you see what changed.
This file was typed with four common slips: a missing empty line after the first subtitle, full stops instead of commas in its times, a time without hours in the last subtitle, and numbers that skip from 2 to 4:
1
00:00:01.000 --> 00:00:03.200
Is anyone there?
2
00:00:03,900 --> 00:00:06,000
Over here.
4
00:07,100 --> 00:00:09,500
Hold the light still.
This is the file the studio saves from it, with nothing else pressed:
1
00:00:01,000 --> 00:00:03,200
Is anyone there?
2
00:00:03,900 --> 00:00:06,000
Over here.
3
00:00:07,100 --> 00:00:09,500
Hold the light still.
The check also points out what needs a decision, such as two subtitles that overlap or a line too fast to read, and you can change any line's start, end or text in the list before you download.
With a subtitle editor
For a whole film, typing times by hand is slow. Desktop subtitle editors such as Subtitle Edit and Aegisub, both free, show the video and its sound wave, and set a subtitle's start and end with a key press as the video plays. They save SRT files directly. If you make a file there and something is wrong with it later, the check here still works on it.
What can go wrong
| What happens | Why | Fix |
|---|---|---|
| The player does not see the subtitles at all | The file is really Holiday.srt.txt, because Windows hides extensions |
In File Explorer, turn on file name extensions, then rename the file |
| The player sees the file but no subtitles show | A timing line is broken, or the file is rich text | Open it in the subtitle checker: it lists broken timecodes; save from a plain text editor |
Accented letters show as é |
The file was saved in another encoding than UTF-8 | Fix subtitle encoding |
| Every subtitle comes too early or too late | The times were measured on another version of the video, or by eye | Sync subtitles |
| Two subtitles appear at once | One ends after the next one starts | The check flags overlaps and fixes small ones safely |
Frequently asked questions
Can I make an SRT file in Word?
Not directly: a Word document is not plain text. Copy the words into TXT to SRT to get timed subtitles, or save the document as plain text and open that file there.
Can I make an SRT file on a phone?
Yes. TXT to SRT works in the browser on iPhone and Android: paste your text and download the file. Typing a whole SRT file by hand on a phone is possible in any notes app that saves plain text, but slow.
How long should each subtitle stay on screen?
Long enough to read. At 15 characters per second, a full subtitle of two lines of 42 characters needs between 5 and 6 seconds. TXT to SRT times your text that way and keeps every subtitle between 1 and 7 seconds.
Is it free?
Yes. The tools on this site that make and fix SRT files are free, with no account, and your text is processed in your browser.
Can I make the same subtitles in another language?
Yes, once the file is finished and in sync: translate subtitles translates it into another language and keeps every start and end time, so you do not have to time the subtitles again.
How do I add the SRT file to my video?
Keep it next to the video with the same name, such as Holiday.srt beside Holiday.mp4, and most players load it. YouTube Studio and video editors such as Premiere Pro import SRT files directly.