Compare Two Files Using Notepad++

Posted by 12 Comments

If you need to compare the contents of two files Notepad++ has a great plugin for doing just that. Begin by opening the Plugin Manager from the Plugins menu:


Next select the Compare plugin and click Install:


Now open both of the files you would like to compare as two separate tabs in Notepad++. Then from the Plugins menu selecct Compare -> Compare (or use the shortcut Alt+D):


Your two files will now be opened side-by-side with conflicting lines highlighted. You can use the blue arrows on the toolbar to navigate between each alert.

Category: Development

Comments (12)

Trackback URL | Comments RSS Feed

  1. Sena Munasinghe says:

    I love this feature and used it quite a lot. But now it’s not working for some time.
    It does not highlight differences.

    Notepad++ version 6.1.5
    Compare plug-in version 1.5.6

    Thanks for any ideas.


  2. Nathan says:

    Looks like you might be a couple versions behind, have you tried upgrading? 6.3 is the latest version which appears to be working fine.

  3. HarizHaran says:

    Thank you for this.. This is what exactly what i’m looking for. Your screen shot explanations are able to understand easily.

  4. Peter says:

    I don’t have a plug-ins menu.

  5. KR Rayberry says:

    Just a FYI, the Compare feature didn’t come with my download of Notepad++. I needed to download it from SourceForge and add the dll to my plugins directory.

  6. Ronnin says:

    Settings>Import>Import Plugin(s)

  7. Anonymous says:

    note it will creash Notepad++ if more then 2 files are open

  8. sina says:

    Please make this plugin better by adding features such as the internal compression of “EmEditor” program. compare tools in emeditor is complete your plugin, compare tools in emeditor is not like notepad++ but is very comfortable and well designed.

    The “Search tool” and “Search in files” on the “emeditor” (one text editor) also very comfortable & good designed , so you can easily search for any file and jump to the corresponding line.
    Please add emeditor facilities also to the notepad++ program.

  9. Mohan says:

    This is very helpful for comparing my property files in the deployment folder. Thanks for putting it.

  10. Neelu says:

    would be so helpful if u pass how i can get source code for compare two files as it is doing for Notepad ++.

    Thank you Advance

Leave a Reply