Compare two text files in Notepad++

Notepad++ is the most popular Text Editor for the Windows operating system, one of its widely used features of it is text compare. You can compare two text files (be it XML, JSON, CSV, Java, Python, HTML, JavaScript, CSS code, any text file) to know if they are identical, do they have something missing, what is the difference between the two files.

If you do not see the Compare tool under the Plugins menu, then you would need to install it using the Plugin Admin (Manager) - follow this tutorial to install it -

How to compare two files in Notepad++

  1. Open Notepad++,
  2. Open your 1st file you want to compare,
  3. Open your 2nd file you want to compare,
  4. If you have multiple tabs open, be on the 1st file and go to Plugins -> Compare -> Set as first to compare.
  5. Now go the 2nd file tab and goto Plugins -> Compare -> Compare.
  6. You should be able to see the files compared with the differences.
GIF Demo:
Compare two files in Notepad++
Compare two files in Notepad++

As you can see in the above example, as soon as you click on Compare, the Notepad++ Window is split into two half with files side-by-side to show how the two files are different.

Notepad++ Compare Demo
Notepad++ Compare Two Files

In the next example, we have auto arranged to match files line-by-line and you can see various colors and icons to represent the missing line, extra line, and line that varies a bit - you can check it out under Compare -> Settings.

Notepad++ Compare Colors
Notepad++ Compare Colors
Notepad++ Compare Options
Notepad++ Compare Options
Compare Options and Keyboard Shortcuts:
Set as First to Compare: Ctrl+Alt+1
Compare: Ctrl+AIt+C
Clear Active Compare: Ctrl+Alt+X
Clear All Compares: CtrI+ Alt+ Shift + X
Diff since last Save: Ctrl+Alt+D
SVN Diff: Ctrl+Alt+V
Git Diff: Ctrl+Alt+G

Ignore Spaces
Detect Moves
Navigation Bar

Previous: Alt+ Page up
Next: Alt+Page down
First: Ctrl+Alt+ Page up
Last: Ctrl+Alt+Page down


  • Thank you! Was looking it.
    11 Apr 2022 11:21:21 GMT
  • Further comments disabled!
Try Out Code2care Dev Tools:


Android Java Linux Microsoft Google Python macOS Notepad++ Microsoft Teams CSS PHP SharePoint Html Linux C Programs Bootstrap jQuery Sublime Android Studio Facebook Eclipse WhatsApp News MySQL Json HowTos JavaScript FTP S3


Code2care is an initiative to publish and share varied knowledge in programming and technical areas gathered during day-to-day learnings and development activities.

Students and Software Developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts. Technical posts might include Learnings, Tutorials, Trouble-Shooting steps, Video Tutorials, Code Snippets, How Tos, Blogs, Articles, etc.
🎉 We are celebrating the 10th years of Code2care! Thank you for all your support! We hope we made a difference.
We strong support Gender Equality & Diversity.

We stand in solidarity with Ukraine - Make a donation to UNHCR -