How to compare two files in Notepad++

To compare two files in Notepad++, install the ComparePlus or Compare plugin from Plugins > Plugins Admin, open both files, and run the plugin from the Plugins menu to see the differences side by side.

This guide covers installing the plugin through Plugins Admin or by hand, comparing files with and without it, adjusting the comparison layout, removing the plugin, and fixing the problems that stop it from appearing.

How to compare two files in Notepad++

Notepad++ does not highlight differences between files on its own. A plugin does that job, and the official Plugin List offers two: Compare and ComparePlus.

  1. Open Notepad++ and select Plugins > Plugins Admin.
  2. On the Available tab, tick the box next to ComparePlus (or Compare).
  3. Select Install and let Notepad++ restart.
  4. Open the two files you want to compare with File > Open, so each one has its own tab.
  5. Select the tab of the file you want to check against the other one.
  6. Open the Plugins menu, point to the plugin you installed, and run its compare command.
  7. Read the result: the two files appear in side-by-side views with the changed lines marked.

Ticking the box matters. Clicking a plugin's name in Plugins Admin only shows its description and does not enable the Install button.

Compare two files in Notepad++ with removed, changed, added and moved lines highlighted
After the compare command runs, the two files sit in side-by-side views and every changed line gets its own colour and marker. (Image: community.notepad-plus-plus.org)

Notepad++ Compare plugin vs ComparePlus

Both plugins are in the official Notepad++ Plugin List and both are maintained by Pavel Nedev. ComparePlus is the advanced fork, built on the original Compare plugin by Ty Landercasper and Jean-Sebastien Leroy.

Your situation Use this Why
You want the most capable diff inside Notepad++ ComparePlus (version 3.0.0 in the 64-bit Plugin List) The Plugin List describes it as an advanced compare tool based on the original Compare plugin
You want the classic plugin that older tutorials show Compare (version 2.0.2 in the 64-bit Plugin List) It shows the differences between two files side by side
You cannot install plugins on this PC Notepad++ dual view with Synchronize Vertical Scrolling Built in, but you spot the differences by eye
You only need to know whether two text files differ fc in Command Prompt Built into Windows and lists the differing lines
You want a list of lines that exist in only one file Compare-Object in PowerShell Marks each line with <= or => to show which file it came from
You have Visual Studio Code installed code --diff file1 file2 Opens VS Code's file difference editor

Install only one of the two plugins at a time, so you always know which plugin's commands you are using in the Plugins menu.

Word files are not plain text, so compare two Word documents with Word's own Compare tool instead of a text editor.

How to compare two files in Notepad++
Plugins Admin describes Compare 2.0.2 as a plugin that shows the differences between two files side by side. (Image: community.notepad-plus-plus.org)

Installing the Compare plugin in Notepad++

Plugins Admin is the built-in installer for plugins in the official Plugin List. It has five tabs: Available, Updates, Installed, Incompatible and Deactivated.

  1. Save any open work, because Notepad++ restarts during the install.
  2. Select Plugins > Plugins Admin.
  3. Stay on the Available tab and scroll to Compare or ComparePlus.
  4. Tick the checkbox beside the plugin name.
  5. Select Install, then confirm if Notepad++ asks to restart.
  6. After the restart, open the Plugins menu and check that the plugin now has its own entry.

If Notepad++ sits in a protected location such as the Program Files folder and the install fails, close it, right-click its shortcut, select Run as administrator, and repeat the steps. The Notepad++ manual says Plugins Admin can need elevated permission when you cannot write to the plugins folder.

Install the Compare plugin in Notepad++ from the Plugins Admin Available tab
Tick the Compare checkbox, select Install, then select Yes so Notepad++ can exit and restart to finish the install. (Image: community.notepad-plus-plus.org)

How to install the Compare plugin in Notepad++ manually

Use a manual install when Plugins Admin cannot reach the Plugin List. Get the plugin release from the homepage listed for it in the Plugin List, and pick the build that matches your Notepad++ (32-bit, 64-bit or ARM64).

  1. Close Notepad++ completely.
  2. Right-click the plugin's DLL, select Properties, tick Unblock if it appears, then select Apply and OK.
  3. Open the Notepad++ install folder: %PROGRAMFILES%\Notepad++ for 64-bit, %PROGRAMFILES(x86)%\Notepad++ for 32-bit, or your portable folder.
  4. Open the plugins folder and create a subfolder with exactly the DLL's name minus .dll, for example ComparePlus.
  5. Copy the DLL and any other files that came with it into that subfolder, approving the User Account Control prompt if Windows shows one.
  6. Start Notepad++ and open the Plugins menu to find the plugin.

The folder name must match the DLL name, so ComparePlus.dll belongs in plugins\ComparePlus\ComparePlus.dll. Settings > Import > Import plugin(s) only copies a single DLL, so it misses any extra files a plugin needs, and you must restart Notepad++ before the plugin shows.

Install the Compare plugin in Notepad++ manually in its own plugins subfolder
The DLL goes in a subfolder of plugins named exactly like the DLL without .dll, here ComparePlus under Program Files. (Image: community.notepad-plus-plus.org)

Using Notepad++ to compare two files side by side without a plugin

Notepad++ can show two files next to each other and scroll them together. It does not mark the differences, but it helps with short files or when plugins are blocked. The Notepad++ manual names synchronized scrolling as useful for comparing two files.

  1. Open both files in Notepad++.
  2. Select the tab of the second file.
  3. Select View > Move/Clone Current Document > Move to Other View, or right-click the tab and select Move to Other View.
  4. Select View > Synchronize Vertical Scrolling so both views scroll together.
  5. Select View > Synchronize Horizontal Scrolling as well if your lines are long.
  6. Scroll through either file and read the two views line against line.

You can also drag a tab from one view's tab bar into the other. To look at two parts of the same file, use Clone to Other View instead of Move to Other View.

Compare two files side by side in Notepad++ with Synchronize Vertical Scrolling
With one file moved to the other view, View > Synchronize Vertical Scrolling makes both views scroll together. (Image: community.notepad-plus-plus.org)

Customizing the Compare plugin in Notepad++

The plugin's own options sit in its entry under the Plugins menu, where Notepad++ says installed plugins are used and configured. The layout of the comparison comes from Notepad++ itself, so you can change it with these settings.

What you want Where to change it Effect
Plugin options Plugins > the plugin's submenu The settings the plugin exposes for its comparison
Files above and below instead of side by side Right-click the dotted bar between the two views and select Rotate Right or Rotate Left Cycles the second view through right, below, left and above
Both files zoom together View > Zoom > Synchronize Across Views (Notepad++ 8.9.5 and later) Zooming one view zooms the other; select it again to unlock
A newer plugin version Plugins > Plugins Admin > Updates tab, tick the plugin, select Update Installs the more recent version and restarts Notepad++
Turn the plugin off without uninstalling it Plugins Admin > Installed tab, tick the plugin, select Deactivate Moves its files to a disabled folder and frees memory until you reactivate it

Compare two text files with fc in Command Prompt

If you only need to know what changed, Windows has a file comparison command. Open Command Prompt in the folder that holds both files and run it.

fc /n file1.txt file2.txt

Compares the two files line by line and adds line numbers to the output. Add /c to ignore letter case, /w to compress spaces and tabs, or /u for Unicode text files.

You should see: Identical files print FC: no differences encountered. Otherwise fc prints the differing lines from the first file, then the matching lines from the second file.

In PowerShell, type fc.exe instead of fc, because fc is an alias for Format-Custom there. If more than 100 consecutive lines differ, fc stops with Resynch failed. Files are too different.; raise the buffer with /lb followed by a number of lines.

Compare two files with PowerShell Compare-Object

Compare-Object reads both files with Get-Content and returns only the lines that are not in both.

Compare-Object (Get-Content -Path .\file1.txt) (Get-Content -Path .\file2.txt)

The first file is the reference and the second is the difference. Add -IncludeEqual to list matching lines too, marked ==, or -CaseSensitive to treat case changes as differences.

You should see: Each output line shows => when it appears only in the second file and <= when it appears only in the first. No output means the files hold the same lines.

Notepad++ Compare plugin not showing in Plugins menu

The Install button stays grey in Plugins Admin

You clicked the plugin's name, which only shows its description.

  1. Tick the checkbox to the left of Compare or ComparePlus.
  2. Select Install.

The plugin installed but is missing from the Plugins menu

Notepad++ has not restarted, or the plugin was imported with Import plugin(s).

  1. Close every Notepad++ window.
  2. Start Notepad++ again and open Plugins.
  3. If it is still missing, check the subfolder name matches the DLL name under plugins.

Plugins Admin fails to install or Windows denies access

Your account cannot write to the Notepad++ plugins folder in Program Files.

  1. Close Notepad++.
  2. Right-click the Notepad++ shortcut and select Run as administrator.
  3. Open Plugins > Plugins Admin and install the plugin again.

The Compare plugin is listed on the Incompatible tab

The installed version no longer works with your Notepad++ version.

  1. Open Plugins > Plugins Admin > Incompatible.
  2. Tick the plugin and select Remove.
  3. Install the current version from the Available tab, or check the plugin's homepage for a compatible release.

A manually installed plugin does not load

The DLL is still blocked by Windows, or its build does not match your Notepad++ architecture.

  1. Close Notepad++.
  2. Open the DLL's Properties, tick Unblock and select OK.
  3. Replace a 32-bit DLL with the 64-bit build, or the other way round, to match your Notepad++.
Notepad++ ComparePlus selected in Plugins Admin with the Install button greyed out
Clicking the plugin's name only shows its description; the Install button stays grey until you tick the checkbox. (Image: community.notepad-plus-plus.org)

How to remove the Compare plugin from Notepad++

  1. Select Plugins > Plugins Admin.
  2. Open the Installed tab.
  3. Tick Compare or ComparePlus.
  4. Select Remove and let Notepad++ restart.
  5. Check the Available tab: the plugin returns there, ready to reinstall later.

To keep the plugin but stop it loading, select Deactivate instead of Remove, then use Activate on the Deactivated tab when you need it again.

Notepad++ compare two files FAQ

Does Notepad++ have a built-in compare feature?

No. Notepad++ can show two files side by side and scroll them together, but it does not mark the differences. To highlight changed lines, install the Compare or ComparePlus plugin from Plugins > Plugins Admin, which are both in the official Notepad++ Plugin List.

How do I install the Compare plugin in Notepad++?

Select Plugins > Plugins Admin, tick the box next to Compare or ComparePlus on the Available tab, and select Install. Notepad++ restarts and the plugin appears in the Plugins menu. If the install fails, run Notepad++ as administrator and try again.

What is the difference between Compare and ComparePlus?

Compare is the original plugin that shows the differences between two files side by side. ComparePlus is an advanced compare tool built on it by the same maintainer, Pavel Nedev. Both install from Plugins Admin, and you only need one of them.

Why is there no Compare option in the Notepad++ Plugins menu?

The plugin is not installed, or Notepad++ has not restarted since you installed it. Install Compare or ComparePlus from Plugins Admin, then close and reopen Notepad++. A plugin added with Import plugin(s) only shows after a full restart.

How do I view two files side by side in Notepad++?

Open both files, select the second file's tab, and choose View > Move/Clone Current Document > Move to Other View. Then turn on View > Synchronize Vertical Scrolling so both files scroll together. Right-click the bar between the views to rotate the layout.

How do I compare two text files without Notepad++?

Run fc file1.txt file2.txt in Command Prompt, or Compare-Object with Get-Content in PowerShell. Both are built into Windows. fc prints the differing lines, and Compare-Object marks each line that exists in only one file with <= or =>.

How do I uninstall the Compare plugin in Notepad++?

Open Plugins > Plugins Admin, go to the Installed tab, tick Compare or ComparePlus and select Remove. Notepad++ deletes the plugin files from its plugins folder and restarts. The plugin then appears on the Available tab again.

Philip Celasco

Philip is a Texas-based technology writer and IT administrator at Techdows.com with more than 10 years of experience creating practical content for everyday users and professionals. He specializes in web browsers, particularly Chromium-based platforms such as Google Chrome, Microsoft Edge, Brave, and Opera. Through his work as an IT administrator, Philip has hands-on experience managing devices, configuring browser policies, troubleshooting software and network issues, and helping people resolve problems that affect productivity and security. His articles are based on practical testing and real-world technical experience. He covers browser settings, extensions, performance problems, privacy controls, security features, and Windows troubleshooting. Outside work, Philip enjoys the quieter side of life in Texas and stepping away from the screen when he can. He has two kids, two cats and loves to play golf with his mother during the weekends.

Leave a Reply

Your email address will not be published. Required fields are marked *