Convert SRT

TXT to SRT Converter

Turn a plain text file or a pasted script into an SRT subtitle file. Every line becomes a numbered subtitle with a start and an end time, ready to fine-tune in a subtitle editor.

Input
Output

Your files stay on this device. The conversion runs in your browser and nothing is uploaded.

How TXT becomes an SRT file

An SRT file needs three things a text file does not have: a number, a start time and an end time for every piece of text. Converting TXT to SRT adds them in four steps:

  1. The text is split into subtitles: one per line, one per sentence or one per paragraph.
  2. Each subtitle is wrapped to at most 42 characters per line and two lines. Text that does not fit continues in the next subtitle.
  3. Each subtitle gets a duration, and the subtitles are placed one after another from 00:00:00 with a tenth of a second between them.
  4. The subtitles are numbered and written in SubRip notation.

These three lines of text:

Welcome back to the channel.
Today we are fixing the audio on last week's recording, and it only takes about five minutes from start to finish.
Let's get started.

become this SRT file with the default settings:

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

2
00:00:01,967 --> 00:00:07,234
Today we are fixing the audio on last
week's recording, and it only takes about

3
00:00:07,334 --> 00:00:09,601
five minutes from start to finish.

4
00:00:09,701 --> 00:00:10,901
Let's get started.

The long second line was split into two subtitles so that no line is longer than 42 characters.

Timing options

  • By reading speed gives each subtitle the time needed to read it: its number of characters divided by the characters per second value, 15 by default. A subtitle never stays for less than 1.2 seconds or more than 7 seconds.
  • Same for every subtitle shows each subtitle for a fixed number of seconds.
  • Shift all times moves every subtitle later or earlier, for example by 5 if the speech starts five seconds into the video.

These times are estimates. The converter cannot hear the audio, so treat the file as a first pass and adjust the times in a subtitle or video editor where you can see the waveform.

Text that already has timestamps

If at least two lines of the text start with a time, the converter keeps those times instead of estimating. That covers a transcript copied from YouTube, where a time and its text alternate line by line, and lines that begin with a time in brackets such as [00:01:10]. Each subtitle then ends where the next one starts.

0:00
welcome back to the channel
0:04
today we are fixing the audio
0:09
let's get started

turns into:

1
00:00:00,000 --> 00:00:04,000
welcome back to the channel

2
00:00:04,000 --> 00:00:09,000
today we are fixing the audio

3
00:00:09,000 --> 00:00:10,200
let's get started

The last subtitle has no following time, so its end is estimated from its length.

How to convert TXT to SRT

  1. Choose your .txt file, drop it on the input box, or paste the text.
  2. Under Timing for plain text, choose how the text is split and how long subtitles stay on screen.
  3. Check the subtitle count and the end time above the output, then download the .srt file.

TXT to SRT questions

How does the converter know when each line is spoken?

It does not. A text file holds no timing, so the length of each subtitle is estimated from the length of its text. If the text already carries timestamps, those are used instead.

Why are lines limited to 42 characters?

Two lines of up to 42 characters is a widely used guideline for subtitles that can be read in time. Change the number under Longest line if your style guide asks for something else.

Can I convert a Word document to SRT?

Copy the text and paste it into the input box, or save the document as plain text (.txt) and load that. A .docx file itself is not read.

Why does the SRT show wrong characters?

The text file was probably saved in an older encoding. After loading the file, choose it under Text encoding. The SRT file is always written as UTF-8.

Is the result a standard SRT file?

Yes. Each subtitle has a number, a time line written as hours:minutes:seconds,milliseconds and its text, separated by an empty line and saved as UTF-8. That is the SubRip layout players, editors and YouTube read as .srt.

Other subtitle converters