Shift, two-point sync or frame rate
Subtitles that are off come in two kinds. Either every line is early or late by the same amount, or the error grows from start to end. Watch one line near the start and one near the end of the video to tell which kind you have, because the way to resync them differs.
| What you see | Cause | Use |
|---|---|---|
| Every line is 2 seconds late, start to end | The video has a different intro, logo or cut at the start | Shift by -2 |
| Right at the start, later and later toward the end | The video runs at a different speed than the one the subtitles were timed for | Two-point sync or Frame rate |
| Right until one scene, then off by a fixed amount | A scene or ad break was cut or added | Shift with Only from cue |
How two-point sync works
You give the correct start time of two cues, A and B. The tool draws a straight line through both points and moves every other cue along it:
new = A′ + (old − A) × (B′ − A′) ÷ (B − A)
A and B are the current start times of the two cues, A′ and B′ the times you entered. The factor (B′ − A′) ÷ (B − A) stretches or squeezes the file, and A′ sets where it starts.
Worked example: cue 1 starts at 0:00:10.000 and should start at 0:00:10.000. Cue 812 starts at 1:40:00.000 (6,000 seconds) but is spoken at 1:35:53.760 (5,753.76 seconds). The factor is (5,753.76 − 10) ÷ (6,000 − 10) = 0.958891. A cue at 0:50:00.000 (3,000 seconds) moves to 10 + (3,000 − 10) × 0.958891 = 2,877.086 seconds, or 0:47:57.086. That is close to 23.976 ÷ 25 = 0.95904, the factor between a video at 23.976 and the same frames played at 25 frames per second.
Frame rate conversion
When a video is sped up or slowed down by playing the same frames at another rate, every subtitle time scales by the same factor: the rate the subtitles were made for divided by the rate of your video. From 23.976 to 25 fps the factor is 0.95904, so a line at 1:00:00 moves to 0:57:32.547. From 25 to 23.976 it is 1.04271. Pick the two rates if you know them; otherwise two-point sync finds the factor from the video itself.
A video that was converted to another frame rate by repeating or dropping frames keeps its running time. Subtitles for that video need no frame rate change, at most a shift.
What happens to the file
Only the times change. The tool rewrites each time line and leaves numbers, text, styles, comments, line endings and a byte order mark as they were. Times are written in the notation of each format: 00:01:02,500 in SRT, 00:01:02.500 in WebVTT (without hours when the file had none and the time stays under an hour), 0:01:02.500 in SBV and 0:01:02.50 in ASS, which counts in hundredths of a second. WebVTT word timings inside a cue, written like <00:01:02.800>, move with their cue. To change the format as well, run the result through the Subtitle Converter.
How to fix subtitle timing
- 1Paste the subtitles or drop the file. The format is detected and the first cues show in the preview.
- 2Choose Shift and enter the offset, or Two-point sync and enter the correct times of an early and a late line, or pick the two frame rates.
- 3Check the preview, then download the file in its own format or copy the text.
Sources
- W3C, WebVTT: The Web Video Text Tracks Format: timestamp syntax with optional hours and inline timestamps in cue text
- Library of Congress, SubRip Subtitle format (SRT): SRT time code format
- YouTube Help, supported subtitle and closed caption files: SBV time line
- Matroska, Subtitles: SSA and ASS times in hundredths of a second
Guide on this topic
Frequently asked questions
My subtitles are a few seconds early or late. Which option do I need?
Shift. Find one line in the video, note when it is spoken and when its subtitle appears, and enter the difference: a positive number adds a delay, so the subtitles appear later, and a negative number makes them appear earlier. Every cue moves by the same amount, so the gap stays the same from start to end.
The first lines are right but the end drifts further and further off. Why?
The subtitles were timed for a version of the video that runs at a different speed, usually another frame rate such as 23.976 and 25 frames per second. A fixed shift cannot fix that. Use Two-point sync and enter the correct time of an early line and a late line, or pick the two frame rates under Frame rate if you know them.
Can I shift only part of the file?
Yes. Enter a cue number under Only from cue. Cues before it keep their times, and that cue and all later ones move. That helps when a video had an ad break or a scene cut out after the subtitles were made.
Does the shifter change anything besides the times?
No. Text, cue numbers, styles, NOTE blocks, line endings and the byte order mark stay as they are. Only the time lines are rewritten, in the standard notation of the format, so an SRT time with a full stop comes back with a comma. In WebVTT files the word timings inside a cue move with it.
What happens to cues that would start before zero?
They start at 0:00. A subtitle file cannot hold negative times, so those times are set to zero and the result tells you how many cues were affected. If whole cues end up at 0:00, the video simply starts later than your subtitles; cut those lines or use Only from cue.
Is my file uploaded?
No. The file is read and rewritten by your browser on your own device. Nothing is sent to a server.