You have to use the plugin manager of Notepad++ and search for the JSON plugin. There you can easily install it.
This answer explains it pretty good: How to reformat JSON in Notepad++?
Answer from Kiril on Stack OverflowHere are the steps that worked for me:
- Download the plugin and extract the plugin dll file.
- Place the plugin.dll file under plugin folder of notepad++ installation.
For me it was :
C:\Program Files\Notepad++\plugins - Start Notepad++ as an elevated administrator and then go to:
Settings -> Import -> Import plugin(s)...(import the plugin). - Notepad++ will show the restart message. / Sometimes it may not show it.
- Restart the notepad++.
- Should see new plugin under the Plugins menu. ALL DONE!!
It's worth noting that the exact steps to follow can differ depending on the plugin. (E.g. I've just manually installed XML Tools and this involved copying some files from a subfolder into the root Notepad++ installation directory.) So would recommend the following:-
- Download the plugin you wish to install. A comprehensive list is the official Notepad++ Plugin List.
- Extract to a local folder (e.g. using 7-Zip or similar).
- Look in the extracted files and folders for any readme files or specific instructions to be followed - and then follow them. In case there aren't any instructions, the one thing that must be done for all plugins is to copy the .DLL file into the plugins folder within your Notepad++ installation folder (e.g.
C:\Program Files (x86)\Notepad++\plugins\).
Use JSTool
As of Notepad++ v7.6, you can use the Plugin Admin option in Notepad++ to install JSTool.
Manual Install
- Download it from https://www.sunjw.us/jstool/npp/#download
- Copy JSMinNpp.dll to the plugin directory of Notepad++. You may need to create a directory named "JSMinNPP" in the plugin directory after version 7.6.3
Here's an example of JSON that's been formatted using the tool:
{
"menu" : {
"id" : "file",
"value" : "File",
"popup" : {
"menuitem" : [{
"value" : "New",
"onclick" : "CreateNewDoc()"
}, {
"value" : "Open",
"onclick" : "OpenDoc()"
}, {
"value" : "Close",
"onclick" : "CloseDoc()"
}
]
}
}
}

Tip: Select the code you want to reformat, then Plugins | JSTool | JSFormat.
You can use JSON Viewer. For Notepad++ v.7.6+, Plugins Admin... is available to install it:
- Open the Menu option "Plugins" -> "Plugins Admin..."
- Search for "JSON Viewer"
- Check JSON Viewer in List
- Click on Install Button
- Restart Notepad++
- Select JSON text
- Go to "Plugins" > "JSON Viewer" > "Format JSON ( Ctrl + Alt + Shift + M )"
