Skip to main content
Subtitlio
Menu

TXT to SRT: turn text into a subtitle file

Paste a script or a transcript and get an SRT file with readable timing in about a second. Free, no signup, nothing uploaded.

Open a text file

A TXT file with a script or a transcript, or a subtitle file saved as text

Your file stays on this device. Nothing is uploaded. How?

How it works

  1. 1 Paste or open your text Paste a script, a transcript or any text, or open a TXT file. For a Word document, paste its text.
  2. 2 It is split and timed Sentences stay whole where they fit, and each subtitle stays on screen long enough to read.
  3. 3 Download the SRT Check the preview, stretch the timing to your video if you like, and save the SRT under your file name.

Your files stay on this device

Opening, checking, fixing, syncing and converting all happen in your browser. Your subtitle file and its text are never sent to our server, so we never store or log them.

Read the privacy policy

Three kinds of text this tool accepts

"TXT to SRT" covers different jobs, so the tool first looks at what you gave it:

  • A subtitle file saved as text. Many .txt files are really SRT files with the wrong extension: numbers, timing lines with an arrow, and text. Those open as subtitles with their own timing, and nothing is re-timed.
  • Plain text. A script, a transcript or an article, with no timing at all. It is split into subtitles and timed from reading speed, as described below.
  • Dialogue with names. A line that starts with a name and a colon, such as ANA: Where were you?, starts a new subtitle, and so does a name in capitals on a line of its own, such as ANA:, with the words on the next line. Names in scripts without capitals, such as Arabic or Chinese, count too, and so does the full-width colon : of Chinese and Japanese. So each speaker's turn starts a new subtitle, and viewers know who is talking. A line that starts with a dash starts a new subtitle as well, except that two short dashed lines share one, a line each, as two-speaker subtitles do, even when each starts with a name.

An empty line in your text always starts a new subtitle. Use empty lines between paragraphs or scenes to control where subtitles break.

How the automatic timing works

The timing follows fixed rules, so you know what you get:

Rule Value
Characters per line At most 42, the limit Netflix uses for English; 35 for Thai, 16 for Chinese and Korean, 13 for Japanese
Lines per subtitle At most 2
Reading speed for the estimate 15 characters per second, spaces and punctuation included; 10 for Korean, 7 for Chinese, 4 for Japanese
Shortest time on screen 1 second
Longest time on screen 7 seconds
Gap between subtitles 84 milliseconds, two frames of film

Whole sentences go into one subtitle while they fit in two lines of 42 characters. A sentence that is too long is split at a comma or a semicolon first, then before a word like "and" or "but", and only then at the most balanced point. The line breaker avoids ending a line on words like "the" or "a", and avoids splitting a name.

These are the rules for English. The tool follows the language of your text: the one in the file name, as in interview.es.txt, which gets the Spanish rules; otherwise Chinese, Japanese, Korean, Thai or Arabic when most of the text is written in them; otherwise English, the language of this page. A few names or words in another script do not change it.

Each subtitle stays on screen for its number of characters divided by 15, kept between 1 and 7 seconds. The result is labeled as estimated timing, because the tool has no way to hear when the words are spoken.

Example: one paragraph becomes two subtitles

This paragraph has three sentences:

We left at six. Nobody said a word until noon. Then Ana laughed, and the others joined in.

This is the SRT file it becomes, starting at zero:

1
00:00:00,000 --> 00:00:03,000
We left at six.
Nobody said a word until noon.

2
00:00:03,084 --> 00:00:05,884
Then Ana laughed,
and the others joined in.

The first two sentences fit together in two lines, so they share a subtitle. They hold 45 characters, which makes 3 seconds at 15 characters per second. The third sentence is 43 characters, too long for one line, so it breaks after the comma, before "and". Its 42 characters on screen make 2.8 seconds, and it starts 84 milliseconds after the first subtitle ends.

Fit the timing to your video

Timing from reading speed starts at zero and knows nothing about your video. Two ways to line it up:

  • Spread over the video. Enter when the speech starts and ends in your video. With more time than the text needs, the subtitles are spread out over it and each one shows longer, up to 7 seconds, so a short text over a long stretch of video ends before the end you entered. With less, the subtitles are shortened, none below 1 second, and the gaps stay at 84 milliseconds. If the text is too long to read comfortably in that time, the tool tells you, and if the subtitles do not fit even at 1 second each, the last ones run past the end.
  • Shift and sync afterwards. Download the SRT, play it with your video and use sync subtitles to move every line, or to match two lines to the moments they are spoken.

Estimated timing is a starting point. For speech that must match exactly, such as a music video or a fast dialogue scene, check the lines that matter in a player before you publish.

Frequently asked questions

How does text to SRT work?

The text is split into sentences, the sentences are packed into subtitles of at most two lines of 42 characters in English, and each subtitle gets a time on screen from its length. You get an SRT file you can play, edit and sync.

What text format should I paste?

Plain text in any language. Put an empty line where a new subtitle must start, and start a line with a name and a colon when a new person speaks. Chinese and Japanese, which have no spaces between words, are cut after punctuation first and then between characters. Thai, and any word longer than a line, such as a long web address, is cut by length, which can split a word, so check those lines.

Can I use a Word document or a YouTube transcript?

Yes: copy the text and paste it. For a Word document, you can also save it as plain text and open the TXT file.

Will the timing match my video?

Not exactly, because it is estimated from reading speed. Spread it over the length of the speech in your video, or line it up with sync subtitles.

How many characters fit on one line?

42 in English, with at most two lines per subtitle. That is the limit Netflix uses for English, and it reads well on TVs and phones. Text in Thai gets 35, in Chinese or Korean 16, and in Japanese 13, the limits for those languages. What is an SRT file? shows the rest of the format.

Can I turn SRT back into text?

Yes. SRT to TXT removes the numbers and timecodes and can join the lines into paragraphs.