To format/prettify a JSON file offline in Notepad++ text editor, you need to install a plugin called as JSTOOL, follow the below steps to get the plugin.
Installing Json Formatting Plugin in Notepad++
- Goto Menu → Plugins → Plugin Admin...
- Look for JSTOOL.
- Check the checkbox and click Install.
- Click OK and Notepad++ should restart.
Once the plugin is installed, open the JSON file in a tab, goto Plugins → JSTOOL → JSFORMAT to format/pretty print.
JSON before Prettify
{"details": {"name": "John L","age": "24",
"location": "Sweden"
}
}
JSON after Prettify
{
"details": {
"name": "John L",
"age": "24",
"location": "Sweden"
}
}
⛏️ You can also use Keyboard shortcut: Ctrl + Alt + M to format.
Comments:
- this is what I was looking for.... thank you!
anon 23 Aug 2020 05:04:14 GMT
- Thank you very very much for this article, short and sweet, I was looking for ways to format a JSON file locally on my system using Notepad and this works well.
mkiki 22 Aug 2020 10:08:25 GMT
- Further comments disabled!
-
Facing issues? Have Questions? Post them here! I am happy to answer!
More Posts related to NotepadPlusPlus,
- Notepad++ Editor alternatives for macOS
- How to add or remove bookmark on a line in Notepad++
- Notepad++ do not show CRLF characters
- Reduce the size of Tabs on Notepad++
- Delete blank lines in a file using Notepad++
- Fix: Notepad++ bottom status bar not visible
- Notepad++ Hex Editor
- How to show End of Line Characters in File using Notepad++
- [Tutorial] Write And Run Python Code In Notepad++ Editor
- How to install XML Tools Plugin Notepad++
- Customizing Notepad++ New Document Line Encoding: CR/LF/CR LF
- How to remove blank lines from a file using Notepad++
- Column Mode Editing in Notepad++
- Convert text to random case using Notepad++
- How to recover unsaved notepad file Windows 10
- How to delete all text after a character or string in Notepad++
- Setting up Cloud feature with Notepad++
- Install Notepad++ silently using Windows Powershell
- Using Document Map in Notepad++
- Enabling Notepad++ Dark Theme
- [Fix] Notepad++ tab not visible (hidden)
- Where are Notepad++ macros stored?
- Multiple line editing in Notepad++
- Alternatives for Notepad++ on Mac in 2021
- [Nopepad++] How to add text at end of each line
More Posts:
- Fix: error: mismatched closing delimiter } [Rust] - Rust
- Terminal Command to get the list of available shells in macOS - MacOS
- Check Wifi Connection static Android Programming - Android
- PowerShell SubString with Examples - Powershell
- Python: NumPy Concatenate Arrays Example - Python
- Force Gradle to use specific Java JDK Version - Gradle
- Fix: UnsupportedClassVersionError: Unsupported major.minor version 63.0 - Java
- Rename git branch on Local and GitHub Remove using Command - Git