How to Split, Merge and Renumber SRT Files Correctly
You open an SRT file and something’s wrong. Your movie comes in two video parts but you have one subtitle. Or you have two subtitle files and one video. Or the numbers jump from 41 to 58 and your player chokes. Learning to split, merge and renumber SRT files fixes all three, and none of it needs fancy software.
The trick is understanding what an SRT file really contains, then following a few steps in the right order. I’ll walk you through each job, with real timing math so you can see why it works.
How an SRT file is built
An SRT file is plain text made of blocks, which people call cues. Each block has four parts. First comes a number. Next comes a time line with the start time, an arrow and the end time. Then come one or two lines of text. Finally, a blank line closes the block.
That blank line is the part everyone forgets. It tells the player where one cue ends and the next begins. A stray blank line in the middle of a cue splits it in two. A missing blank line glues two cues into one mess.
The numbers should run in order from 1 with no gaps and no repeats. Most players ignore them and read the timing instead. But stricter players, converters and upload tools can reject a file or drop cues when the numbers misbehave. So whenever you cut, paste or delete lines, renumber.
Pick your tool and protect your original
You can do all of this in Notepad, but an editor saves time. Subtitle Edit is free on Windows and has tools for splitting, joining and shifting times. Aegisub is free on Windows, Mac and Linux. For quick shifts, our subtitle sync tool moves every timestamp forward or backward in your browser, and our SRT subtitle editor lets you edit lines and export a clean SRT.
Whatever you use, work on a copy. Keep the original file untouched until you’ve tested the result.
How to split an SRT file by time
You need this when a long movie became two video files and each part needs its own subtitle. The second file needs two fixes. Remove the lines that belong to part one, then move the remaining times back so they start near zero.
First, find the exact moment where the first video ends. MediaInfo or VLC shows the duration of part one. Say it’s 01:12:30,500. Then follow these steps:
- Copy your SRT file twice and name the copies part one and part two.
- In part one, delete every cue that starts after the split time.
- In part two, delete every cue that starts before the split time.
- Shift all the remaining times in part two earlier by the length of part one.
- Renumber both files so each one starts at 1.
Here’s the math. A line at 01:20:00,000 in the full file lands at 00:07:29,500 in part two, because 01:20:00,000 minus 01:12:30,500 leaves seven minutes and 29.5 seconds.
Watch for a cue that straddles the split. Trim it or repeat it in both files so no dialogue gets lost.
How to merge two SRT files into one
Merging is the reverse. You have two subtitle parts and one video, or you joined two video files into one. The second subtitle must move later by the exact length of the first video.
Say part one runs 01:12:30,500. A line at 00:00:10,000 in the second file must become 01:12:40,500 in the merged file. Here are the steps:
- Get the exact duration of the first video from MediaInfo.
- Shift every time in the second subtitle later by that amount.
- Paste the shifted cues under the last cue of the first file.
- Check that one blank line sits between the last old cue and the first new one.
- Renumber the whole file from 1.
Subtitle Edit also has a Join subtitles tool under the Tools menu that automates much of this. Check its result against your own math.
A different kind of merge puts two languages on screen at once. There the cues share the same times, and you stack the second language under the first inside each block. Keep every cue to three or four lines at most, or the text covers the picture.
Split and merge single cues
Sometimes the file is fine and individual cues are the problem. A long cue that fills four lines hurts readability. Split it in two, give each half part of the original time and break at a natural pause.
The opposite problem is a pile of tiny cues that flash by. Merge two neighbors into one longer cue when each lasts under a second. Keep the start time of the first and the end time of the second, then join the text with a line break.
Subtitle Edit offers split and merge actions in its right click menu for single cues. After either change, check that no cue overlaps the next one.
How to renumber an SRT file
The easy way is to let an editor do it. Most editors write fresh sequential numbers when they save an SRT, so opening the file and saving it again often fixes the numbering. Check the first and last numbers afterward. The last number should match the count of cues.
Doing it by hand makes sense for a file with a dozen cues. Anything longer deserves an editor. Also save as UTF8 so accented and non Latin letters survive. Our guide on subtitle encoding explains why.
Mistakes that break an SRT file
A handful of slips cause most of the grief.
- Shifting the times but forgetting to renumber.
- Using a period instead of a comma before the milliseconds in the time lines.
- Leaving two blank lines or none between cues.
- Guessing the video length. Use the exact duration, because a one second error shows on every line.
- Splitting by line number instead of by time. Cue counts say nothing about where the video ends.
- Editing the only copy of the file.
Test before you trust it
Open the new file in VLC with the matching video. Check a cue near the start, one in the middle and one near the end. If the first looks right but the last drifts, your offset is off, so recheck the duration. Our guide on fixing subtitle delay covers small corrections.
Want proof that nothing got lost? Compare the old and new files in our text diff checker to spot missing or changed lines.
The short version
To split, merge and renumber SRT files, treat each cue as a block with a number, a time line, text and a blank line. Split by time and shift part two earlier. Merge by shifting the second file later by the exact length of the first video. Then renumber from 1, save as UTF8 and test in your player.
Grab a spare copy of a troublesome file and try it tonight. Ten minutes of careful editing beats a season of subtitles that drift.