You have two text files — a config, a script, a log — and you need to know exactly what changed between them. Reaching for Notepad is instinctive, but the question that follows is immediate: does Notepad compare files at all? This guide answers that question definitively and then walks through every practical method: plain Windows Notepad workarounds, the Notepad++ Compare plugin step-by-step, the modern ComparePlus alternative, how to compare two files in Notepad++ without a plugin, and a browser-based option that works regardless of which editor you have installed. By the end you will have a clear picture of every available tool for notepad file comparison and which one fits your situation.

Notepad.exe No compare feature Notepad++ Side-by-side diff
Plain Notepad has no compare capability; Notepad++ with the Compare plugin shows a color-coded side-by-side diff.

Can You Compare Files in Regular Notepad?

The short answer is no. Windows Notepad (notepad.exe) is a plain-text editor with no diff engine, no plugin system, and no multi-document workspace. It cannot open two files simultaneously in one window, and it has no mechanism to highlight differences between two documents. If you try to use standard Notepad for a notepad compare task, you will be copying and pasting content manually — which is error-prone for anything beyond a few lines.

This surprises many users because the question "how to compare files with Notepad" is searched thousands of times each month. The frustration is understandable: Notepad is always available, it opens instantly, and it is the default handler for .txt files on every Windows machine. But for notepad file comparison, you need either a different tool or a workaround.

Workaround 1: PowerShell Compare-Object

If you cannot install anything, PowerShell is available on every modern Windows machine and its Compare-Object cmdlet produces a rudimentary diff. Open PowerShell and run:

$file1 = Get-Content "C:\path\to\file1.txt"
$file2 = Get-Content "C:\path\to\file2.txt"
Compare-Object $file1 $file2

The output uses <= to flag lines present only in the first file and => for lines only in the second file. Lines that are identical are suppressed by default. To include matching lines in the output, add -IncludeEqual:

Compare-Object $file1 $file2 -IncludeEqual

This is a functional CLI diff, but it has no context lines, no syntax highlighting, and no way to navigate changes interactively. It is useful for a quick sanity check in a script but not for reviewing a meaningful change. At its core, this is a string comparison operation — each line is compared as a text string.

Workaround 2: Manual Side-by-Side in Two Notepad Windows

Open both files in separate Notepad windows, then use Windows Snap (drag each window to opposite sides of the screen with Win+Left / Win+Right) to tile them. This gives you a visual layout for reading both files at once, but scrolling is independent — the windows do not scroll-lock together, and there is no highlighting. For files longer than 20–30 lines, you will miss differences. Trying to spot the difference manually between two windows is exactly the kind of error-prone task that automated diff tools were built to eliminate.

Both workarounds underscore the same reality: for any serious notepad compare two files task, you need a proper diff tool. The most accessible upgrade is Notepad++ with the Compare plugin — and that is where this guide goes next.

Windows PowerShell PS C:\> Compare-Object $file1 $file2 InputObject SideIndicator ----------- ------------- server=192.168.1.1 <= server=192.168.1.42 => timeout=30 <= timeout=60 => debug=true <= <= only in file1 = > only in file2
PowerShell Compare-Object output: <= marks lines present only in the first file; => marks lines only in the second.

How to Compare Files with Notepad++ Compare Plugin

Notepad++ is a free, open-source text editor for Windows released under the GNU General Public License (GPL). It has been the most popular Windows text editor for developers for over two decades. Crucially, it has a plugin architecture — and the Compare plugin for Notepad++ is the most widely used extension for how to compare files with Notepad on Windows.

The Compare plugin was originally authored by Ty Landercasper and is now maintained by the open-source community. For Notepad++ v8.2.2 and newer, the current version is v2.0.2; for older versions use v2.0.1. Both are available directly through Notepad++'s built-in Plugin Admin, which means no manual download or DLL copying is required. (Note: the older v1.5.6 is deprecated and no longer actively maintained.)

Step 1: Install the Compare Plugin via Plugin Admin

  1. Open Notepad++.
  2. Click Plugins in the menu bar, then select Plugins Admin…
  3. In the Available tab, type compare in the search box.
  4. Check the box next to Compare (v2.0.2 or the latest version available for your Notepad++ version).
  5. Click Install. Notepad++ will prompt you to restart — click Yes.

After the restart, a new Plugins > Compare submenu appears in the menu bar.

Plugins Admin Available Updates Installed compare Plugin Name Version Author Compare v2.0.2 T. Landercasper ComparePlus v8.4.5 pnedev Install Close ← select this row ← then click Install
Notepad++ Plugins Admin — search for "compare", tick the Compare checkbox, then click Install. The editor restarts and adds the Plugins > Compare menu.

Step 2: Open Both Files

Open the two files you want to compare. You can use File > Open for each, drag and drop from File Explorer, or use the command line:

notepad++ file1.txt file2.txt

Both files appear as tabs in the same Notepad++ window. The Compare plugin requires both files to be open as tabs — it cannot compare files from separate Notepad++ instances.

Step 3: Run the Comparison

With both files open, run the comparison using either method:

  • Menu: Plugins > Compare > Compare
  • Keyboard shortcut: Alt+D

Notepad++ splits into two panes — the first file on the left, the second on the right. Color-coded highlights indicate changes:

Color Meaning
Green background Line added in the right file (not in the left)
Red background Line deleted from the left file (not in the right)
Yellow/orange background Line changed — present in both files but different
Orange inline highlight Character-level change within a modified line

The two panes scroll in sync — a hallmark of the plugin compare Notepad experience. Use Alt+N to jump to the next difference and Alt+P to go back to the previous one.

Step 4: Clear the Comparison

When you are finished, go to Plugins > Compare > Clear Results (or press Alt+C) to return to the standard tab layout. The plugin does not modify either file — it only highlights differences in the editor view.

Key Plugin Settings

Access settings via Plugins > Compare > Settings…. Useful options include:

  • Ignore spaces: Treats whitespace-only differences as identical — helpful for comparing code that was reformatted.
  • Ignore case: Makes the comparison case-insensitive.
  • Detect moves: Flags lines that were moved rather than added/deleted.
  • Compare to last save: Diffs the current unsaved state against the last-saved version of the same file — useful for reviewing your own edits before committing.

ComparePlus: The Modern Alternative

If you want more features than the original Compare plugin provides, ComparePlus is a community-maintained fork that has diverged significantly from the original. ComparePlus requires Notepad++ v8.4.2 or later and is available on GitHub and can also be installed via Plugins Admin by searching for "ComparePlus."

ComparePlus is relevant for the npp compare use case because it addresses several limitations of the original plugin:

Feature Compare v2.0.2 ComparePlus v2.1.1+
Side-by-side diff view Yes Yes
Character-level highlights Yes Yes
Navigation panel / diff map No Yes
Moved-block detection Basic Enhanced
Ignore trailing whitespace Global only Per-comparison option
Ignore blank lines No Yes
Compare git history No Yes (via git integration)
Installation Plugins Admin Plugins Admin or GitHub

The navigation panel in ComparePlus is the most practical improvement for large files: it shows a minimap-style overview of all differences so you can jump to any section instantly, rather than pressing Alt+N repeatedly through hundreds of changes. If you search online for npp compare tools, ComparePlus consistently ranks among the top recommendations alongside the original Compare plugin.

Installing ComparePlus

  1. Go to Plugins > Plugins Admin…
  2. Search for ComparePlus in the Available tab.
  3. Check the box and click Install.
  4. Restart Notepad++ when prompted.

If ComparePlus does not appear in Plugins Admin (older Notepad++ versions), download the latest release DLL from the GitHub releases page and place it in the %APPDATA%\Notepad++\plugins\ComparePlus\ directory, then restart Notepad++.

file1.txt file2.txt Navigation Deleted Added Changed Diff Minimap
ComparePlus adds a navigation panel (right strip) showing a minimap of all differences — click any block to jump directly to that change without pressing Alt+N repeatedly.

Compare Two Files in Notepad++ Without a Plugin

Sometimes you are on a locked-down machine where you cannot install plugins, or you just want to do a quick visual scan. Here is how to compare two files in Notepad without plugin support — using only built-in Notepad++ features.

Method A: Split View (Move / Clone Document)

  1. Open both files as tabs in Notepad++.
  2. Right-click the tab of one file and choose Move to Other View.
  3. Notepad++ splits the editor area into two panes — one file on each side.
  4. Scroll both panes manually to compare sections of interest.

The limitation is significant: the panes do not scroll in sync, and there is no highlighting. This is a layout aid, not a diff tool. It works adequately for very short files (under 50 lines) where you can hold both in view simultaneously. If you need to compare entire directories rather than individual files, our guide to finding which files differ in Windows folders covers dedicated tools for that workflow.

Method B: Use Notepad++ Find + External CLI

For a more systematic approach without plugins, you can run the diff command from a terminal opened alongside Notepad++, then use Notepad++'s powerful Find in Files (Ctrl+Shift+F) to search for specific strings flagged by the CLI diff output. This is a hybrid workflow — the terminal handles the comparison logic, and Notepad++ handles the editing response.

If you have Git installed, Git Bash provides the standard Unix diff tool:

diff -u file1.txt file2.txt

The unified diff output (-u) shows context lines above and below each change, making it easy to locate the relevant section in Notepad++ using Ctrl+G (Go to Line).

Method C: PowerShell (No Extra Software)

As covered in the plain Notepad section, PowerShell's Compare-Object cmdlet produces a line-level diff with zero dependencies. To save the output for review in Notepad++:

Compare-Object (Get-Content file1.txt) (Get-Content file2.txt) | Out-File diff-result.txt
notepad++ diff-result.txt

This opens the diff output as a readable file you can scroll through in Notepad++ with syntax highlighting (select PowerShell as the language for color coding). Of all the ways to compare two files in Notepad without plugin dependencies, the PowerShell-to-Notepad++ pipeline offers the best balance of speed and readability. The ability to find every difference without installing a plugin makes this approach especially valuable on locked-down corporate machines.

Browser Extension: Diff Checker

All of the Notepad-based methods above require either Notepad++ installed or PowerShell available. If you need a notepad compare two files solution that works instantly, with no editor dependencies, the Diff Checker Chrome extension is a compelling option.

Diff Checker (version 1.1.7, Manifest V3) is a browser extension that performs all processing locally — no files are uploaded to servers. It supports a range of comparison scenarios that go well beyond plain text:

  • 40+ file formats including plain text, code files, Office documents (DOCX, XLSX, PPTX), and PDFs — drag-and-drop or multi-file upload.
  • Side-by-side and unified diff views — toggle between them to suit your preference. The same two modes the Notepad++ Compare plugin offers, but in a browser tab.
  • Three comparison algorithms: Smart Diff (the default), Ignore Whitespace, and Classic LCS — useful when you need to compare reformatted code and want to suppress whitespace noise, similar to the Compare plugin's "Ignore spaces" option.
  • Syntax highlighting for 15+ languages via Monaco Editor (the same engine that powers VS Code).
  • Normalize options: JSON key sorting, whitespace normalization, CSS property sorting — useful when you need to compare JSON objects that have identical content but different key ordering.
  • Code formatting with Prettier for JS, TS, HTML, CSS, JSON, YAML, and Markdown — auto-format before diffing to eliminate style differences.
  • Persistent comparison history, keyboard navigation (Alt+Up / Alt+Down), collapsible unchanged sections, and copy diffs in unified diff format.
  • Compare browser tabs directly — paste content from any open tab without leaving the browser.
  • AI-powered summaries using OpenAI API (your own key) for a natural-language explanation of what changed.
  • Dark mode with system preference detection.

The key advantage over Notepad++ plugins is that Diff Checker works with binary-adjacent formats. The Compare plugin only handles files that are already open as text in Notepad++ — it cannot read DOCX or XLSX natively. If your comparison involves Office documents, a browser-based tool is the more practical path. For a broader look at Office file comparison, see the guides on comparing Word documents and comparing Excel files.

chrome-extension://diffchecker.pro D Diff Checker Side-by-Side Unified Smart Diff Ignore Spaces Classic LCS 1 2 3 4 5 6 host = prod-server-01 port = 8080 debug = false timeout = 30 retry = 3 log = /var/log/app.log 1 2 3 4 5 6 host = prod-server-01 port = 9000 debug = false timeout = 60 retry = 3 log = /var/log/app.log 2 changes found 1 deleted 1 added 2 modified All local
Diff Checker Chrome extension — side-by-side diff view with color-coded deletions (red), additions (green), and modifications (yellow). All processing is local; no files leave your browser.

Notepad File Comparison Tool Matrix

Choosing the right method for notepad file comparison depends on your environment and what you need to compare. Use this matrix to pick quickly:

Tool Install Required Side-by-Side View Syntax Highlighting Non-Text Formats Scroll Sync Character-Level Diff Best For
Plain Notepad (manual) No (built-in) Manual windows No No No No Absolute last resort, tiny files
PowerShell Compare-Object No (built-in) No (CLI output) No No N/A No Scripts, automation, locked-down machines
Notepad++ Compare plugin v2.0.2 Notepad++ + plugin Yes Yes No Yes Yes Most everyday text/code comparisons
ComparePlus v2.1.1+ Notepad++ + plugin Yes Yes No Yes Yes Large files, moved blocks, git history diff
Notepad++ split view (no plugin) Notepad++ only Yes Yes No No No Quick visual scan of short files
Diff Checker extension Chrome extension Yes Yes (15+ langs) Yes (40+ formats) Yes Yes Office docs, JSON, multi-format, no IDE

For pure text and code files, the plugin compare Notepad approach (Compare plugin or ComparePlus) is the most integrated experience — everything stays in the editor you are already using. For non-text formats or situations where you cannot install Notepad++, a browser extension is the fastest zero-friction path.

Best Practices for File Comparison

Regardless of which tool you use, these habits make the process of how to compare 2 files in Notepad (or any editor) more reliable and less error-prone:

1. Normalize Before You Compare

Line-ending differences (Windows CRLF vs Unix LF) and encoding differences (UTF-8 with BOM vs without BOM) generate false positives in nearly every diff tool. Before a serious comparison, normalize both files to the same line endings and encoding. In Notepad++: Edit > EOL Conversion and Encoding menu. In the Diff Checker extension, use the Whitespace Normalization option.

2. Use Ignore Whitespace for Reformatted Code

If you are comparing code that was reformatted by Prettier, Black, or a similar tool, a raw diff will flag almost every line as changed. Both the Compare plugin and Diff Checker's Ignore Whitespace algorithm suppress whitespace-only differences, letting you focus on semantic changes. This is essential when you need to compare files in VS Code or any editor after a formatting pass.

3. Compare Lists Separately from Prose

When comparing configuration files that contain both structured lists and free-text values, consider splitting the comparison. Diffing a sorted list of dependencies against an unsorted one will look like everything changed, even if only one item was added. Sort both files first, or use a tool that supports list comparison semantics.

4. Document Your Comparison Results

For compliance, auditing, or team review workflows, save the diff output rather than just reviewing it visually. Both the Compare plugin (via copy) and Diff Checker (via "Copy unified diff") let you export the diff as a standard unified diff format that can be stored alongside your files or attached to a ticket.

5. Know When to Use a Dedicated Static Analysis Tool

Manual file diffing is great for spot-checking, but for systematic code quality review, static code analysis tools automate the process at scale. A diff tells you what changed; a static analyzer tells you whether the change introduced a bug, security vulnerability, or style violation. Teams that process large volumes of text — log files, documentation, or NLP pipelines — often pair diff tools with text analysis software to verify data integrity between processing runs.

6. For Structured Data, Use Format-Aware Comparison

Comparing JSON, XML, or CSV files with a plain text diff often produces confusing results when key order or attribute order differs. Use format-aware tools: the Diff Checker extension's JSON normalization (key sorting) eliminates false positives for JSON. For XML, see the guide to XML comparison with canonicalization.

Compare Files Without Installing Notepad++ Plugins

Diff Checker processes everything locally in your browser — no uploads, no plugins to manage. Side-by-side and unified views, 40+ file formats, syntax highlighting for 15+ languages.

Add to Chrome — It's Free

Frequently Asked Questions

How do I compare two files in Notepad++?
Open both files in Notepad++. Install the Compare plugin via Plugins > Plugins Admin (search for "Compare", install, restart). Then go to Plugins > Compare > Compare or press Alt+D. Notepad++ splits into two synchronized panes with color-coded additions (green), deletions (red), and changes (yellow/orange).
Can you compare files in regular Notepad?
No. Windows Notepad has no diff feature, no plugin system, and cannot open two files in the same window. Workarounds include PowerShell's Compare-Object cmdlet for a CLI diff or opening two Notepad windows side-by-side manually for a visual scan. For a real comparison, use Notepad++, a terminal diff command, or a browser-based tool.
What is the best Notepad++ compare plugin?
The Compare plugin v2.0.2 (available via Plugins Admin) is the most widely used — it covers the core use case reliably with minimal setup. ComparePlus v2.1.1+ is the better choice for power users: it adds a navigation panel, enhanced moved-block detection, per-comparison whitespace options, and optional git integration. Both are free and open-source.
How do I compare files without Notepad++?
Options in order of ease: (1) PowerShell Compare-Object — no installation, available on all modern Windows systems; (2) Git Bash or WSL diff command — standard Unix diff if you have Git installed; (3) Diff Checker browser extension — visual side-by-side diff with syntax highlighting, supports 40+ file formats, all processing stays local; (4) WinMerge — dedicated open-source visual diff application for Windows.
How do I compare two files in Notepad++ without a plugin?
Right-click a tab and choose Move to Other View to split the editor. Both files appear side-by-side, but scrolling is independent and there is no highlighting. For a true diff without a plugin, run diff -u file1.txt file2.txt from Git Bash or PowerShell, then open the output in Notepad++ to review the changes. This is the simplest answer for how to compare 2 files in Notepad when plugins are not an option.