How to compare two subtitle (SRT) files and find what changed
Text Compare — open the free tool →You translated a video's subtitles, a teammate fixed some lines, and now you have two .srt files with almost the same content. Or you downloaded a subtitle for a film, found a better version, and want to know what the second one actually changed. Opening both files and reading them line by line is slow, and with 1,500 cues it is easy to miss a renamed character or a removed line.
An SRT file is plain text: a number, a timing line like 00:01:12,400 --> 00:01:15,000, one or two lines of dialogue, then a blank line. That makes it a good fit for a text diff.
Compare two SRT files online
- Open Text Compare.
- Use the file picker above the left box to open the original .srt file, and the right box for the edited one. You can also drag each file onto its box or paste the text.
- Tick Ignore blank lines if one file has extra empty lines between cues, and Ignore whitespace if an editor added trailing spaces.
- Click Compare now.
- Changed lines are highlighted on both sides, with the exact changed words marked. Use Next change to jump from one edit to the next, or tick Only changes to hide everything that stayed the same.
The files are read in your browser and are not uploaded to a CompareOnline4U server, which is useful for unreleased videos or client work. When you are done, Download result saves a readable report you can send to the translator or editor.
How to read the result
- A highlighted dialogue line: the wording changed. The marked words show exactly what: a spelling fix, a different translation, a changed name.
- A highlighted timing line only: the cue was re-timed but the text is the same.
- Lines only on one side: a cue was added or removed. Cue numbers after it usually shift too, so expect the following number lines to show as changed.
When the whole file was re-timed
If one version was shifted to match a different video release (say every cue is 0.5 seconds later), every timing line is different. The diff still lines up the dialogue, so the text lines that did not change appear as unchanged rows between the highlighted timing lines. To find wording changes, scroll for highlighted text lines rather than timing lines, or use Next change and skip the timing rows.
If you only care about the dialogue, a simple trick is to remove the numbers and timings first. In a code editor with regular-expression search (VS Code, Notepad++), replace ^\d+\s*$ and ^\d\d:\d\d:\d\d,\d+ --> .*$ with nothing in a copy of each file, then compare the copies. Now only the spoken text is compared.
Common reasons to compare subtitles
- Translation review: check what a reviewer changed in a Hindi, Tamil or English translation before you publish.
- YouTube captions: compare the auto-generated captions you downloaded with your corrected version to see how many lines you fixed.
- Two downloaded versions: find out whether a "fixed" subtitle really fixes anything, or only shifts the timing.
- Team edits: merge changes from two editors by seeing exactly which cues each one touched.
Tips for a clean comparison
- Same encoding: save both files as UTF-8. A file in an old encoding can show broken characters on one side, and every such line looks changed.
- Same format: compare .srt with .srt. WebVTT files use a dot for milliseconds and a WEBVTT header, so an .srt vs .vtt diff is mostly noise.
- Line breaks inside a cue: if an editor re-wrapped long lines, the same sentence may now be split differently. The words are the same, but the lines differ. Read those pairs together.
- Desktop alternative: dedicated subtitle editors such as Subtitle Edit can also compare subtitle files, which helps if you edit and compare in one place.
For other plain-text files, see how to find differences between two texts.
Text Compare — open the free tool →Frequently asked questions
Can I open .srt files directly?
Yes. Text Compare accepts .srt files from the file picker above each box, or you can drag a file onto a box. The file is read in your browser and is not uploaded.
Why is every timing line marked as changed?
The whole subtitle was shifted, for example by half a second to match another video release. The dialogue lines in between still show as unchanged, so look for highlighted text lines between the timing lines to find real wording changes.
Does it work with Hindi or other non-English subtitles?
Yes. SRT files saved as UTF-8 compare like any other text, and changed words are highlighted inside each changed line. If Hindi text shows as strange symbols, re-save the file as UTF-8 in your subtitle editor first.
Can I compare .vtt or .ass subtitle files?
Yes, as long as both files are the same format. Open them in a text editor, copy the content into the two boxes and compare. Comparing an .srt with a .vtt shows many format-only differences, so convert one first.