How to turn a plain text file into subtitle format

A .txt file becomes a subtitle file by adding timing information and reformatting the text into a structure that video players recognize. The simplest route is to use a subtitle editor — software that lets you paste your text, set when each line appears and disappears, then save in a format like .srt or .vtt. If your text is already broken into chunks that match your video's dialogue, the process takes minutes. If it is one long block of text, you will need to split it manually or use a tool that can do it for you.

The most common subtitle format is .srt (SubRip), which works on nearly every video player and platform. An .srt file looks like this: a number, a timestamp showing when the subtitle starts and ends, the text itself, then a blank line before the next subtitle. You can create this structure in a text editor by hand, but a dedicated subtitle editor is faster and less error-prone because it handles the timing automatically.

Key Takeaways

  • Subtitle editors like Subtitle Edit, Aegisub, or Kapwing let you paste text and add timing without writing code.
  • The .srt format (number, timestamp, text, blank line) works on nearly all video players and streaming platforms.
  • If your text is one long block, you will need to manually split it into lines that match your video's pacing, or use a tool with auto-split features.
  • Online converters can reformat .txt to .srt if your text is already structured with timing, but they cannot add timing if it is missing.

Using a subtitle editor on your computer

Subtitle Edit is free and works on Windows, Mac, and Linux. Open the program, create a new subtitle file, then paste your text into the editor. The software shows a timeline at the bottom where you can set the start and end time for each line of dialogue. You can type times manually or use the video preview to click where each subtitle should appear and disappear. Once all timings are set, go to File > Save As and choose SubRip (.srt) as the format.

Aegisub is another free option, popular with people who work with video regularly. It has a steeper learning curve but offers more control over subtitle styling and positioning. Import your video, paste your text, then use the timeline to set timings for each line. Save as .srt when finished.

Both programs let you preview your subtitles over the actual video, so you can see whether the timing matches the dialogue. This is the most reliable way to ensure subtitles appear at the right moment.

Converting text that already has timing information

If your .txt file already includes timing — for example, lines that say "00:00:05 --> 00:00:10 This is the first subtitle" — an online converter can reformat it to .srt. Paste the text into a converter like Subtitle Converter or CloudConvert, select .txt as the input format and .srt as the output, then download the result. These tools work only if your text is already structured with timestamps; they cannot add timing if it is missing.

Check the output file in a text editor before using it. Make sure the timestamps are in the correct format (HH:MM:SS,mmm --> HH:MM:SS,mmm) and that each subtitle is separated by a blank line. If the converter made errors, you can fix them by hand or re-run the conversion with different settings.

Splitting a long text file into subtitle chunks

If your .txt file is one continuous block of dialogue with no breaks, you need to decide where each subtitle should start and end. Watch your video and note the timestamps where natural pauses occur — usually at the end of a sentence or thought. Then open your text file and manually insert line breaks at those points.

Some subtitle editors have an auto-split feature that breaks text into chunks of a certain length (for example, 42 characters per line). This is faster than doing it by hand, but the breaks may not match your video's pacing. Always preview the result over the video to check whether subtitles appear at sensible moments. If a subtitle stays on screen for too long or disappears too quickly, adjust the timing in your editor.

Uploading subtitles to video platforms

YouTube accepts .srt, .vtt, and several other formats. Go to your video's details page, click Subtitles, then Upload File. Select your .srt file and choose the language. YouTube will display the subtitles on the video and let viewers turn them on or off.

Vimeo also accepts .srt and .vtt. In your video settings, go to Subtitles and Captions, then Upload a File. Select your subtitle file and the language it is in.

Streaming services like Netflix or Amazon Prime have their own subtitle formats and submission processes. Check their creator guidelines for the exact format and timing requirements they expect. Most accept .srt as a starting point, but may require conversion to their proprietary format before upload.

Common timing and formatting mistakes

The most frequent error is timestamps that do not match the video length. If your video is 5 minutes long but a subtitle is timed to start at 6 minutes, it will never appear. Check that all start times come before end times, and that no subtitle extends past the video's total duration.

Another common problem is text that is too long for the screen. Most video players display subtitles in two lines maximum. If a subtitle is more than 42 characters, it will wrap awkwardly or get cut off. Test your subtitles on the actual video player you plan to use — what looks fine in an editor may look cramped on screen.

Blank lines matter in .srt format. Each subtitle block must be separated from the next by a completely empty line. If you delete this blank line by accident, the file will not parse correctly and the subtitles may not display at all.

Frequently Asked Questions

Can I create subtitles without a video editor?

Yes. You can write subtitles in any text editor and format them as .srt by hand — just follow the structure of number, timestamp, text, blank line. However, a subtitle editor makes timing much easier because you can see the video and click to set when each subtitle appears. Hand-timing is slow and error-prone unless you are very familiar with the format.

What is the difference between .srt and .vtt?

.srt is older and more widely supported across all video players and platforms. .vtt is newer and allows more styling options like colors and positioning. For most purposes, .srt is the safer choice. If a platform requires .vtt, you can usually convert an .srt file by changing the header and timestamp format slightly, or use an online converter.

Can I edit subtitles after uploading them to YouTube?

Yes. Go to your video's Subtitles section, click the subtitle file you uploaded, and select Edit. You can change the text, timing, or language. Save your changes and YouTube will update the subtitles on the video within a few minutes.

What if my text file has no natural breaks?

Watch the video and pause at moments where the speaker takes a breath or completes a thought. Insert line breaks at those points in your text file. If you are unsure, aim for subtitles that are 1 to 5 seconds long — anything shorter feels choppy, anything longer is hard to read quickly.

Do I need special software to save a file as .srt?

No. Any text editor can save a file with the .srt extension. The format itself is just plain text with timestamps and blank lines. However, a subtitle editor will validate your format and let you preview timing over video, which a text editor cannot do.