Compare two text files in Notepad++


Notepad++ is the most popular Text Editor for the Windows operating system, one of the 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, does that have something missing, what is the difference between the two files.

How to compare two files in Notepad++

  1. Open Notepad++,
  2. Open your 1st file,
  3. Open your 2nd file,
  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++



Recent Posts:




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, Video Tutorials, Code Snippets, How Tos, Blogs, Articles, etc.