There is the "Compare" plugin. You can install it via Plugins -> Plugins Admin... (or Plugins -> Plugins Manager in older versions of Notepad++) in the top menu.

Alternatively you can install a specialized file compare software like WinMerge.

Answer from Lars Fischer on Stack Overflow
🌐
JSON Diff
jsondiff.com
JSON Diff - The semantic JSON compare tool
Validate, format, and compare two JSON documents. See the differences between the objects instead of just the new lines and mixed up properties.
🌐
Reddit
reddit.com › r/learnprogramming › automate json compare
r/learnprogramming on Reddit: Automate JSON compare
September 22, 2022 -

Hey all,

So I’m taking over a role for a coworker managing content for our site in AEM. We have three AEM environments: we make changes in the lower one and push it to the middle environment to test it before pushing the middle to production.

Part of the testing involves comparing JSONs between the lower and middle environments to ensure they match. Right now, we do this in Notepad++ by copying the JSON code from each environment and doing a simple compare. This is incredibly time consuming so I am looking to automate the process. Something as simple as, here’s a list of lower/middle environment JSONs side by side; compare these and return if they match or not.

I typically work in Excel and code in VBA since it’s a program everyone in the enterprise has so there’s no special access required. In researching I’ve noticed Python makes JSON compare pretty easy but I haven’t really seen any automated JSON compare code. Could anyone point me in the right direction?

Thanks all!

Top answer
1 of 8
328

There is the "Compare" plugin. You can install it via Plugins -> Plugins Admin... (or Plugins -> Plugins Manager in older versions of Notepad++) in the top menu.

Alternatively you can install a specialized file compare software like WinMerge.

2 of 8
94

Update:

  • for Notepad++ 7.5 and above use Compare v2.0.0
  • for Notepad++ 7.7 and above use Compare v2.0.0 for Notepad++ 7.7, if you need to install manually follow the description below, otherwise use "Plugin Admin".

I use Compare plugin 2 for notepad++ 7.5 and newer versions. Notepad++ 7.5 and newer versions do not have plugin manager. You have to download and install plugins manually. And YES it matters if you use 64bit or 32bit (86x).

So Keep in mind, if you use a 64-bit version of Notepad++, you should also use a 64-bit version of the plugin, and the same is valid for 32-bit.

I wrote a guideline how to install it:

  1. Start your Notepad++ in administrator mode.
  2. Press F1 to find out if your Notepad++ is 64bit or 32bit (86x), hence you need to download the correct plugin version. Download Compare-plugin 2.
  3. Unzip Compare-plugin in a temporary folder.
  4. Import the plugin from the temporary folder.
  5. The plugin should appear under the Plugins menu.

Note:
It is also possible to drag and drop the plugin .dll file directly in the plugin folder.
64bit: %programfiles%\Notepad++\plugins
32bit: %programfiles(x86)%\Notepad++\plugins

Update Thanks to @TylerH for this update: Notepad++ Now has "Plugin Admin" as a replacement for the old Plugin Manager. But this method (answer) is still valid for adding plugins manually for almost any Notepad++ plugins.

Disclaimer: the link to this guideline refer to my personal website.

🌐
GitHub
github.com › molsonkiko › JsonToolsNppPlugin
GitHub - molsonkiko/JsonToolsNppPlugin: A Notepad++ plugin providing tools for JSON like linting, querying, a tree view, and CSV conversion. · GitHub
The list below shows which things in JsonTools are case-sensitive and which are case-insensitive. ... The sort form ignores the leading minus sign when ordering the numbers; Notepad++ does not. The sort form orders ö between o and p (because culturally that makes sense), but Notepad++ puts ö last, because it compares the strings by Unicode code points, and non-ASCII characters like ö come after all ASCII characters.
Author   molsonkiko
🌐
Notepad++ Community
community.notepad-plus-plus.org › topic › 25251 › json-tools-for-viewing-and-editing
JSON tools for viewing and editing | Notepad++ Community
December 16, 2023 - However, even not being a user of JSON Tools, but just knowing a tiny bit about reading normal JSON files and being able to install the JSON Tools plugin, I was able to get it to try to look at the tree and see that it thought it was a string (at least, that’s what I interpreted the abc prefix to mean):
🌐
Polovnaprocesnaoprema
polovnaprocesnaoprema.com › how-to-compare-two-text-files-using-notepad-29
How To Compare Two Text Files Using Notepad++ – Polovna procesna oprema
Like many of the other code editors we have tested, Notepad++ could take a page from Atom’s playbook in this regard. It has an intuitive interface with which you can compare and edit code between files. JSON files are simple plain text files, so you can open them with any text editor.
Find elsewhere
🌐
Medium
medium.com › @wepypixel › compare-two-files-in-notepad-in-5-easy-steps-pypixel-fdbb99c47b44
Compare Two Files in Notepad++ in 5 Easy Steps | PyPixel | by Stilest | Medium
December 7, 2023 - If you compare files in Notepad++ using the Compare plugin, you can enjoy the highlighting feature for a good visual understanding of your file updates. ... You can compare any plain text-based formats like CODE, SQL, CSV, LOG, XML, JSON etc.
🌐
MiniTool Partition Wizard
partitionwizard.com › home › partition manager › how to format json in notepad++ properly? [2 ways]
Discover How to Format JSON in Notepad++ Easily
November 28, 2024 - However, most of them didn’t give you a clear and complete guide on how to format JSON in Notepad++. So, here this post comes. Notepad++ Hex Editor Download and Install (x86) [Full Guide] A lot of people want to install Notepad++ Hex Editor. If you are also searching for that, you come to the right place. This post provides you with a full guide. ... Notepad++ is a widely popular free text editor and source editor used on Microsoft Windows. This tool can be used to do many powerful tasks such as “compare two files in Notepad++”, “open .CFG files in Windows 10/11”, format JSON notepad++, etc.
🌐
GitHub
github.com › NPP-JSONViewer › JSON-Viewer
GitHub - NPP-JSONViewer/JSON-Viewer: A JSON viewer plugin for Notepad++. Displays the selected JSON string in a tree view. · GitHub
A JSON viewer plugin for Notepad++. Displays the selected JSON string in a tree view. - NPP-JSONViewer/JSON-Viewer
Author   NPP-JSONViewer
🌐
JSONFormatters
jsonformatters.com › home › json compare
JSON Compare Tool – Instantly Find Differences Between Two JSON Files
February 1, 2026 - Click 'Compare JSON' to instantly see all differences highlighted in color: green for additions, red for removals, and yellow for changes. The tool also displays a summary of total additions, removals, and modifications. No data is stored on our servers—the comparison happens entirely in ...
🌐
Sunjw
sunjw.us › jstool › npp
JSTool - A JavaScript tool for Notepad++
A JavaScript tool for Notepad++. Douglas Crockford's JSMin algorithm to minimize JavaScript code. My own algorithm to format JavaScript code. A JSON tree viewer.
🌐
JSON Editor Online
jsoneditoronline.org › home › compare › json-compare
JSON compare: how to compare two JSON files? | Indepth
January 18, 2023 - Or you want to compare the updated user profile returned from your REST API with what you did send to the server. In those cases you need a tool that can show you the differences in a clear way. This article shows how you can compare JSON online using JSON Editor Online, and explains how this works under the hood.
🌐
Reddit
reddit.com › r/dataengineering › what’s the best way to compare two large new line delimited json files?
r/dataengineering on Reddit: What’s the best way to compare two large new line delimited JSON files?
March 23, 2023 -

One of my recent tasks involves syncing aggregated metrics from our data warehouse to a marketing platform so that the marketing team can make campaigns that target, for example, all users that made 5 or more orders in the last week.

Due to limitations with the marketing platform’s reporting api, we have to download all of the existing data at once instead of by user. This requires downloading a 1 gigabyte text file, filtering out the random attributes we didn’t write, and comparing each user with the existing data in our data warehouse.

The goal is to end up with a list of JSON objects to send to the marketing platform api that only contain the changed attributes because the platform charges us by the attribute.

What’s the best way to compare two giant lists of json objects by user id and only return the attributes that are different?

Right now I’m loading both into pandas dataframes and running a comparison, but it eats up a ton of memory and takes a while.

🌐
UiPath Community
forum.uipath.com › help › studio
How to compare two Json file and write into text file - Studio - UiPath Community Forum
August 9, 2021 - HI, Am having two file (Source and target) in json format and i need to compare both the files and write in an separate text file. both file may have nested json string. Output should should return the difference not jus…
🌐
YouTube
m.youtube.com › watch
JSON Formatter and Compare plugin Notepad++
Share your videos with friends, family, and the world
Published   June 10, 2022
🌐
SourceForge
sourceforge.net › projects › nppjsonviewer
JSONViewer Notepad++ plugin download | SourceForge.net
Download JSONViewer Notepad++ plugin for free. A JSON viewer plugin for notepad++ A JSON viewer plugin for notepad++. Displays the selected JSON string in a tree view.
Rating: 3.2 ​ - ​ 22 votes