How To Compare Two Files In Notepad++ (2027)
Quick answer
- Install the ComparePlus plugin from Plugins > Plugins Admin, open the two files, then choose Plugins > ComparePlus > Compare.
- If you only want to read two files side by side, use View > Move/Clone Current Document > Move to Other View, then turn on View > Synchronize Vertical Scrolling; that shows both files but does not mark differences.
- To check unsaved edits against the saved copy, use Plugins > ComparePlus > Diff since last Save.
Applies to: Notepad++ above v8.4.2 with the ComparePlus plugin (x86, x64 or ARM64 builds)
Notepad++ shows two files side by side on its own, but it needs a plugin to highlight what changed between them.
The plugin the Notepad++ community uses for this is ComparePlus, which installs from the built-in Plugins Admin.
This guide follows the Notepad++ user manual and the ComparePlus project’s own help page, and it was checked on November 29, 2026.
Table of Contents
Quick answer: compare two files in Notepad++
| You want to | Do this |
|---|---|
| Highlight the differences between two files | Install ComparePlus, open both files, choose Plugins > ComparePlus > Compare. |
| Compare only part of each file | Select the blocks, then choose Compare Selected Lines. |
| Compare unsaved edits with the saved file | Choose Diff since last Save. |
| Just view two files together | Move one file to the other view and turn on synchronized scrolling. |
| Compare two parts of the same file | Clone the file into both views and scroll each to a different place. |
Install the ComparePlus plugin
- Open Notepad++ and choose Plugins > Plugins Admin.
- On the Available tab, find ComparePlus.
- Tick the box next to it, because the manual says clicking only the plugin’s name shows its details without enabling the Install button.
- Click Install, and Notepad++ restarts after the install.
If you lack write permission to the Notepad++ folder, the manual says to run Notepad++ as administrator before using Plugins Admin.
The ComparePlus project says the plugin works with Notepad++ versions above v8.4.2, included, and its README says to find Plugins Admin in the Plugins menu for versions above v8.4.5.
The mini-portable edition has no Plugins Admin, as we explain in our guide to downloading and installing Notepad++.
Compare two files
- Open the two files in Notepad++.
- Make the newer file the active tab.
- Choose Plugins > ComparePlus > Compare.
ComparePlus treats the new file as the focal one and compares it with an older version.
When you open two files and press Compare, the second file is treated as the new one and is compared with the first.
By default the new file appears in the right-hand view.
Compare when more than two files are open
The project’s example uses four open files, A, B, C and D, with D active.
- Activate the file you want as the first one to compare.
- Choose Set as First to Compare from the ComparePlus menu.
- Activate the other file, which will be the new one.
- Choose Compare.
Another option is to right-click a tab, choose Move to Other View, and then press Compare, which compares the file in the other view with the one in the current view.
What the ComparePlus menu items do
| Menu item | What it does |
|---|---|
| Compare | Compares all lines in both files. |
| Compare Selected Lines | Compares only the selected blocks. |
| Diff since last Save | Compares the active, modified and unsaved file with its last saved version on disk. |
| SVN/Git Diff | Listed on the help page without a description; the README says Git and SVN diffs need libgit2.dll and sqlite.dll in the libs folder. |
Read the results
The help page explains the results with symbols.
| Mark | Meaning |
|---|---|
| Added (+) | The line exists only in the new file. |
| Removed (-) | The line exists only in the old file. |
| Moved | The line appears once in the other file, at a different location. |
| Moved-Multiple | The line appears several times in the other file, at different locations. |
| Changed | Most of the line matches, with some edits. |
The Moved labels appear when Detect Moves is unchecked, according to the help page.
Options worth knowing
| Option | What it does |
|---|---|
| First is | Sets whether the file marked as first counts as old or new. |
| Old file position | Puts the old file in the left or right view. |
| Warn about encodings mismatch | Warns when the two files use different encodings. |
| Align replacements | Lines up changed lines with their counterparts; when unchecked, blank lines are inserted instead. |
| Wrap around diffs | Lets Next jump from the last difference back to the first. |
| Re-Compare active on Save | Runs the comparison again when its files are saved. |
The project says you can set custom shortcuts in Settings > Shortcut Mapper > Plugin Commands.
View two files side by side without a plugin
Notepad++ itself has two views, and each has its own tab bar.
- Open both files.
- Choose View > Move/Clone Current Document > Move to Other View for one of them.
- Choose View > Synchronize Vertical Scrolling so both scroll together.
- Choose View > Synchronize Horizontal Scrolling if the lines are wide.
To change the layout, right-click the dotted bar between the views and choose Rotate Right or Rotate Left, which cycles through left/right, top/bottom and the reverse of each.
To compare two parts of one file, choose Clone to Other View, scroll each view to a different spot and turn on synchronization.
Update or remove the plugin
Open Plugins > Plugins Admin and use the Updates tab to update ComparePlus, or the Installed tab to deactivate or remove it.
The manual says each of these actions restarts Notepad++.
The ComparePlus project calls itself the successor to the older Compare plugin, which uses a different folder and file name and is no longer supported.
If you need the same thing for Word files instead, see our guide to comparing two versions of a Word document.