How to compare two files in Notepad++ (2024)

This post will help you how to compare two files in Notepad++. Whether you want to compare two text files to find the differences between them or you need to compare a programming file with two different versions, you will be able to do it within Notepad++.

How to compare two files in Notepad++ (1)

If there is any new line added, a line is deleted or removed, a line is moved, and a line is changed (like some word or letter is added or removed in a line) in any of the two files added for comparison, you can see those changes.

The differences are highlighted with different colors for added lines, deleted lines, changed lines, etc. You can also see a plus icon with green color and a minus icon with red color for a line added or removed in any of those two files.

Compare two files in Notepad++

Notepad++ doesn’t come with a built-in feature to compare two files, but you can use a free Notepad++ plugin called Compare to make it possible. It shows the differences between the two files side by side on the interface of Notepad++.

Here are the steps to compare two files in Notepad++:

  1. Open Notepad++
  2. Access Plugins Admin option
  3. Search Compare plugin in Plugins Admin page
  4. Install the plugin
  5. Open two files in Notepad++
  6. Access Compare plugin options under Plugins menu
  7. Use the comparison options of the Compare plugin.

At first, launch Notepad++ using its desktop shortcut, Windows Search box, or Start menu.

Click on the Plugins menu and then select the Plugins Admin option. Plugins Admin (earlier known as Plugin Manager) page will open.

How to compare two files in Notepad++ (2)

On the Plugins Admin page, search for compare plugin. In the search results, select the Compare plugin, and press the Install button. A confirmation box will open. Press the Yes button in that box.

How to compare two files in Notepad++ (3)

It will close and restart Notepad++ and the Compare plugin will be installed automatically.

Now open two files in Notepad++ that you want to compare. After doing that, click on the Plugins menu and access the Compare plugin. You will see the following options:

  • Set as First to Compare: Using this option, you can make the foreground file the first file (or old file) with which you can compare any other background file (or new file) opened in Notepad++
  • Compare: this option helps to compare the first file with the second file. You have to go to the second file and then use this option for comparison. Any difference such as line added or removed, the line changed, etc., between two files, are highlighted and visible in Notepad++
  • Clear Active Compare
  • Clear All Compares: to close the comparison of all files
  • SVN Diff and Git Diff: to compare the current version of a file with the local Git/SVN database. Helpful for coding files.
  • Ignore Spaces for comparison. For better output, you should uncheck this option
  • Detect Moves option to show/hide icons for added or removed lines
  • Navigation Bar: this option provides a navigation bar on the top right part during the comparison. It is helpful when you are comparing large files. Instead of scrolling manually, you can use a navigation bar to quickly go to a particular part of files that you’re comparing.

How to compare two files in Notepad++ (4)

For each option available for comparison, there is also a hotkey to quickly use a particular option. Use comparison options as per your needs.

Compare Plugin Settings

If you want to adjust color settings for comparison and main settings, then you can access Settings of this Compare plugin and customize them as per your convenience. Use the Settings option available under Compare plugin options. A separate box will open.

Using that box, you can change the default color for an added line, change highlight, moved line, changed line, etc., with any color of your choice. You can also set a highlight transparency level between 0 to 100.

How to compare two files in Notepad++ (5)

Apart from that, the settings box also lets you show/hide the compact navigation bar, set the position of the first file (left or right), wrap-around diffs, automatically go to first difference after full comparison is done, etc.

When Settings are adjusted, press OK to save the changes. That’s all.

This way you can compare two text files, programming files, etc., in Notepad++. Hope this post is helpful.

How to compare two files in Notepad++ (6)

LaxmanSingh@TWC

Laxman has done Bachelor's in Computer Science, followed by an MBA. Writing about Windows OS and the free software and services that are available for the Windows operating system is what excites him.

I am an enthusiast with a deep understanding of software tools, particularly in the realm of text editing and file comparison. My expertise extends to applications like Notepad++ and various plugins that enhance its functionality. I have hands-on experience in utilizing these tools to streamline processes and troubleshoot issues related to file comparison.

Now, let's delve into the concepts covered in the provided article:

  1. Windows Speedup Tool:

    • The article introduces the concept of a "Windows Speedup Tool" that claims to fix errors and improve PC performance. However, the specifics of this tool are not detailed in the provided text.
  2. Comparing Two Files in Notepad++:

    • The primary focus of the article is on comparing two text files using Notepad++. This involves identifying differences such as added lines, deleted lines, moved lines, and changed lines between the two files.
  3. Notepad++ Plugin - Compare:

    • The article introduces a Notepad++ plugin called "Compare" that enables file comparison. It mentions that Notepad++ doesn't have a built-in file comparison feature, but this plugin can be installed to achieve this functionality.
  4. Installation Steps:

    • The article provides step-by-step instructions on how to install the Compare plugin in Notepad++.
    • It involves accessing the Plugins Admin page, searching for the Compare plugin, and installing it.
  5. Comparison Options in Notepad++:

    • The article outlines the steps to compare two files in Notepad++ using the installed plugin. It covers options such as setting the first file to compare, initiating the comparison, clearing active compares, and clearing all compares.
  6. Additional Comparison Features:

    • The article mentions SVN Diff and Git Diff options for comparing the current version of a file with the local Git/SVN database.
    • There is an option to ignore spaces during comparison for better output.
    • The "Detect Moves" option is introduced to show/hide icons for added or removed lines.
    • A Navigation Bar feature is explained, which provides a quick way to navigate through large files during comparison.
  7. Compare Plugin Settings:

    • Users can customize color settings and other parameters for file comparison using the Settings of the Compare plugin.
    • The article explains how to access the Settings option, where users can adjust color settings for added lines, moved lines, changed lines, etc.
  8. Author Information:

    • The article concludes with information about the author, Laxman Singh, who holds a Bachelor's in Computer Science and an MBA. Laxman specializes in writing about the Windows OS and free software and services available for the Windows operating system.

In summary, the article provides a comprehensive guide on comparing two text files in Notepad++ using the Compare plugin, covering installation steps, comparison options, additional features, and plugin settings.

How to compare two files in Notepad++ (2024)
Top Articles
Latest Posts
Article information

Author: Nathanial Hackett

Last Updated:

Views: 6588

Rating: 4.1 / 5 (72 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Nathanial Hackett

Birthday: 1997-10-09

Address: Apt. 935 264 Abshire Canyon, South Nerissachester, NM 01800

Phone: +9752624861224

Job: Forward Technology Assistant

Hobby: Listening to music, Shopping, Vacation, Baton twirling, Flower arranging, Blacksmithing, Do it yourself

Introduction: My name is Nathanial Hackett, I am a lovely, curious, smiling, lively, thoughtful, courageous, lively person who loves writing and wants to share my knowledge and understanding with you.