Signing you in… Opening checkout…
Blog

How to Create an SRT File (By Hand or Automatically)

Write subtitles for a short clip in a plain text editor, or let AI time a whole video for you, then check the file so it loads everywhere.


How to Create an SRT File (By Hand or Automatically)

To create SRT file subtitles, write numbered blocks in a plain text editor, each with a start and end time like 00:00:01,000 --> 00:00:04,000 and the line of text, then save it as .srt in UTF-8. For a longer video, upload it to a subtitle generator and download the .srt instead.

An SRT file is the most common subtitle file there is. YouTube, video editors and media players such as VLC all read it, and it is only plain text: numbers, times and words. That means you can create SRT file subtitles with nothing more than Notepad or TextEdit.

Typing and timing every line yourself is fine for a one-minute clip. For anything longer, it gets slow: typing up one hour of speech takes about four hours, before you add a single timestamp. This guide shows both ways, what goes inside the file, and how to fix the mistakes that stop subtitles from showing up.

On this page
  1. What Is an SRT File?
  2. How Do You Make an SRT File by Hand?
  3. How Do You Create Subtitles for a Video Automatically?
  4. Which Way Should You Create Your SRT File?
  5. How Do You Check and Fix an SRT File?
  6. SRT vs VTT: Which Subtitle File Do You Need?
  7. How Do You Use Your SRT File?
  8. Frequently Asked Questions
  9. Create Your First SRT File Now

What Is an SRT File?

An SRT file (SubRip Subtitle) is a plain text file that lists subtitle lines in order, each with the time it appears and disappears on screen. It does not contain any video. The player reads the file next to the video and shows each line at its time.

Here is a short SRT file:

1
00:00:01,000 --> 00:00:04,200
Hi everyone, and welcome back to the channel.

2
00:00:04,600 --> 00:00:08,100
Today I'll show you how to make subtitles
for your own videos.

3
00:00:08,500 --> 00:00:11,000
Let's get started.

Each subtitle is one block with four parts:

PartExampleRule
Number1Counts up from 1, one per block
Timecode00:00:01,000 --> 00:00:04,200hours:minutes:seconds,milliseconds, a comma before the milliseconds, an arrow with a space on each side
TextHi everyone, and welcome back…One or two lines of text
Blank line(empty)Separates one block from the next

How Do You Make an SRT File by Hand?

Open a plain text editor, type the blocks, and save the file with the .srt extension in UTF-8. This works well for short clips with only a few lines.

  1. Open a plain text editor

    On Windows, use Notepad. On a Mac, open TextEdit and choose Format → Make Plain Text, so the file has no hidden formatting.

  2. Play the video and note the times

    Pause where each line starts and ends, and write down the time from your player.

  3. Type each block

    The number, the timecode, the text, then an empty line. Keep each subtitle to one or two short lines; a common rule of thumb is about 42 characters per line.

  4. Save as .srt

    In Notepad, choose File → Save As, set Save as type to All files, set Encoding to UTF-8, and name the file my-video.srt. In TextEdit, save the file, then change the extension from .txt to .srt.

  5. Test it

    Give the .srt the same name as the video and put both in one folder, then open the video in VLC. The subtitles should appear on their own.

The hard part is the timing. Every line needs a start and an end, to the millisecond, and one wrong time pushes the rest out of sync.

How Do You Create Subtitles for a Video Automatically?

Upload the video to an AI subtitle generator, check the text, and download the SRT. The tool transcribes the speech and writes the timecodes for you, so you only correct words instead of typing and timing every line. With TranscriptX:

  1. Open the Subtitle Generator

    Open the Subtitle Generator in any browser, on a computer or a phone. Nothing to install, no account needed to try.

  2. Add the video

    Click Upload and choose From this device, Google Drive, Dropbox or OneDrive, or paste a link to a video on YouTube, TikTok, Instagram, Facebook, X or Kick.

  3. Wait for the transcript

    TranscriptX detects the spoken language and writes out the speech with timestamps.

  4. Fix the words

    Click Edit and correct names, brand terms and numbers. Subtitles sit in front of every viewer, so this step matters more than for a transcript you only read yourself.

  5. Download the SRT

    Click Download, the separate button next to Copy, and choose .srt. Choose .vtt instead if the subtitles are for a web player.

Audio works the same way. Upload an MP3, WAV or M4A file to make subtitles for a podcast clip or an audio-only video. The subtitles come out in the language people speak in the video.

Try it nowSubtitle Generator

Which Way Should You Create Your SRT File?

By handWith a subtitle generator
Best forClips under a minute, a few linesAnything longer, interviews, lessons, vlogs
What you doType every line and every timecodeCheck the words, fix names and numbers
TimingYou set each start and end timeWritten for you from the speech
ToolsNotepad, TextEditA browser
RiskTypos in timecodes, lines out of syncMisheard words in noisy audio

Many people combine the two: generate the SRT automatically, then open it in a text editor to adjust one or two lines.

How Do You Check and Fix an SRT File?

Open the file in a plain text editor and look for these common mistakes. Most "subtitles won't load" problems come from one of them.

ProblemWhat you seeFix
Period instead of comma00:00:01.000 in the timecodeUse a comma before the milliseconds in SRT
File saved as .txtmy-video.srt.txtShow file extensions and remove .txt
Wrong encodingAccented letters show as é or ?Save again as UTF-8
Missing blank lineTwo blocks merge into onePut one empty line between blocks
Overlapping timesTwo lines on screen at onceMake each end time earlier than the next start time
Subtitles all late or earlyEvery line is off by the same amountUse your player's subtitle delay, or regenerate from the final cut of the video

If you edited the video after making the subtitles, for example cut the intro, the times no longer match. Make the SRT from the final version of the video.

SRT vs VTT: Which Subtitle File Do You Need?

Choose SRT for YouTube, video editors and desktop players. Choose VTT (WebVTT) for web video players, such as the one on your own site or a course platform. The two look almost the same:

WEBVTT

00:00:01.000 --> 00:00:04.200
Hi everyone, and welcome back to the channel.

SRTVTT
First lineThe number 1WEBVTT
MillisecondsComma: 00:00:01,000Period: 00:00:01.000
Block numbersRequiredOptional
Used byYouTube, video editors, VLCWeb players, HTML5 video, course platforms

TranscriptX downloads both from the same transcript, so you don't need to convert one into the other.

How Do You Use Your SRT File?

Upload it next to the video, or load it in your player or editor:

  • YouTube. In YouTube Studio, open Subtitles, choose the video and the language, click Add, then Upload file and With timing, and pick your .srt.
  • Media players. Give the .srt the same name as the video and keep both in the same folder, for example interview.mp4 and interview.srt. VLC loads it automatically; you can also add it from the player's subtitle menu.
  • Video editors. Import the .srt into your editor's captions or subtitles track to style it or burn it into the picture.
  • Other platforms. Most video and course platforms have an upload field for subtitle or caption files; use SRT, or VTT if the platform asks for it.

Want the subtitles a YouTube video already has, rather than making new ones? See how to download YouTube subtitles or use the YouTube Subtitle Downloader.

Frequently Asked Questions

Can I create an SRT file for free?

Yes. You can write one by hand in Notepad or TextEdit, or generate one with TranscriptX, which is free every day and works without an account. The Pro plan is for heavy use.

How do I make an SRT file from a video?

Upload the video to the Subtitle Generator, fix any wrong words with Edit, then click Download and choose .srt.

Can I create an SRT file from audio?

Yes. Upload the MP3, WAV or M4A file the same way and download .srt. For text only, use Audio to Text.

Can I create an SRT file on my phone?

Yes. Open TranscriptX in your phone's browser, upload the video or paste its link, and download the .srt to your files.

How do I turn a transcript into an SRT file?

A plain transcript has no timecodes, so you would have to add every time by hand. It is faster to generate the SRT from the video itself, which gives you the text and the timing together.

Why don't my subtitles show up?

Usually the file ends in .txt instead of .srt, the milliseconds use a period instead of a comma, or the file name doesn't match the video. Check the table above.

Create Your First SRT File Now

An SRT file is just numbered blocks of time and text. Type it by hand for a short clip, and for anything longer let a subtitle generator do the typing and timing, then check names and numbers before you publish.

Upload your video to the Subtitle Generator and download an SRT or VTT file, free to try with no account.

Generate your SRT file free

Tool used in this guideSubtitle Generator

Related articles