A TXT file holds only the words. An SRT file holds the same words cut into short lines, each with a start and an end time, so a player can show them under the video. Converting TXT to SRT therefore means one thing: giving every line its timing. Renaming the file does not do that, and a tool that only reads your text has to guess the times.
There are three ways to get the timings right:
- Your own video on YouTube: paste the text into YouTube Studio and let it set the timings. Free.
- Any video file: load the text into a subtitle editor and set the timings yourself against the audio.
- You still have the video: skip the TXT and transcribe the video straight to SRT.
What an SRT file looks like
1
00:00:01,000 --> 00:00:04,200
To get a transcript of a YouTube video,
2
00:00:04,200 --> 00:00:07,500
open the video and click "Show transcript".
Every cue has four parts:
- A number, counting up from 1.
- The start and end time as hours:minutes:seconds,milliseconds, with a comma before the milliseconds and
-->in between. - One or two lines of text.
- An empty line before the next cue.
Save the file as plain text in UTF-8, with the extension .srt.
Subtitles read best in short pieces. Ours keep each cue to one phrase, at most 42 characters on a line and two lines, on screen for 1 to 7 seconds. Those are good limits for any SRT you write by hand too.
Way 1: let YouTube Studio set the timings
If the video is on your own channel, YouTube does the timing for free:
- Open YouTube Studio and choose Subtitles in the menu on the left.
- Pick the video and click Add language, then pick the language.
- Under Subtitles, click Add and choose Auto-sync.
- Paste your text and click Assign timings.
- When it is done, open the three-dot menu next to the language and choose Download, then .srt.
Auto-sync works best when the text matches what is said word for word, so fix the transcript before you paste it.
Way 2: set the timings in a subtitle editor
For a video that is not on your channel, use a subtitle editor. Subtitle Edit is free for Windows. Import the TXT as plain text, so every line becomes a cue, then open the video and set each cue's start and end against the waveform. For a short clip you can also type the cues in any text editor, using the format above.
Expect this to take a while: you set two times for every line, and a ten-minute video easily has a hundred lines.
Way 3: skip the TXT
If you still have the video, a transcription tool writes the subtitles with the timings already in place. With YoutubeToText you paste a YouTube link and get an SRT and a WebVTT, timed from the audio. Already transcribed the video with us? Download the SRT from the same job: the export menu offers TXT, DOCX, SRT and WebVTT.
When the subtitles do not show up
- The file is called
video.srt.txt. Windows hides known extensions, so a file saved from Notepad can keep.txtat the end. Turn on file name extensions in Explorer and rename it. - A time has a period instead of a comma.
00:00:01.000is WebVTT style; SRT needs00:00:01,000. - A blank line is missing between cues. The player then reads two cues as one, or stops there.
- Strange characters instead of accents. Save the file as UTF-8.
- Cues overlap. A cue that starts before the previous one ends can make players skip lines. Check the end times.
