To format a JSON file in Notepad++, install a JSON plugin, open the file, and use that plugin's formatting command. Syntax highlighting alone does not pretty-print or validate the document. JSON Viewer provides a tree view and formatting tools; JsonTools adds linting, querying, and schema-related tools. If you already use JSTool, its JSFormat command can format JavaScript or JSON. Choose the workflow that fits your task rather than copying data between applications unnecessarily.

Install a JSON plugin in Notepad++
- Save a copy of the original JSON file before changing it.
- Open Plugins > Plugins Admin. In the Available tab, locate JSON Viewer or JSON Tools, select its checkbox, and choose Install.
- Allow Notepad++ to restart, then open the Plugins menu and confirm the installed plugin appears.
- Open your .json file. If the plugin is unavailable, consult its official installation instructions and check compatibility with your Notepad++ architecture and version.
The official Plugins Admin documentation describes installation and updates. An organization-managed installation may restrict adding plugins; use an approved workflow rather than an arbitrary DLL download.
Format the file with JSON Viewer
In the installed JSON Viewer menu, use Format JSON to pretty-print the document. Use Show JSON Viewer when you want to browse nested objects as a tree. The formatting and tree-view commands serve different purposes: a tree is useful for navigating data, while formatting changes the document's layout. Menu availability and shortcuts can vary with the installed version, so read the command labels rather than relying on a shortcut copied from a different plugin.
According to the JSON Viewer project, parsing errors can be highlighted at their position. It is therefore inaccurate to describe Notepad++ JSON plugins collectively as providing no useful error location. After formatting, inspect the result and save the copy when it is correct.
Compare plugins by the job you need
| Option | Useful for | What to check |
|---|---|---|
| JSON Viewer | Formatting JSON and navigating a tree of nested values | Installed version, parsing feedback, and available formatting settings |
| JsonTools / JSON Tools | Pretty-printing, compression, linting, querying, and JSON Schema validation | Parser settings: acceptance of JSON5 or comments is different from strict JSON validity |
| Existing JSTool installation | JSFormat, JSMin, sorting, and a JSON tree viewer | The author has deprecated the Notepad++ edition after version 25.11.16 |
| Lizely JSON Formatter | A pasted document with 2-space, 4-space, or tab indentation, minification, and parse-error feedback | Browser memory, JavaScript number precision, and error-location availability |
The Notepad++ plugin directory credits JSTool to Sun Junwen, JSON Viewer to Kapil Ratnani and Rajendra Singh, and JSON Tools to Mark Johnston Olson. These are separate projects with different capabilities. The JsonTools documentation explains linting, error navigation, and permissive parser settings; do not assume that a successful parse under permissive settings proves the input is strict JSON.
If JSTool is already installed
Use Plugins > JSTool > JSFormat to format the document or selected code. JSMin minimizes code, and JSON Viewer opens the tree view. These commands are documented on the author's Notepad++ page, which also states that the Notepad++ edition is deprecated after 25.11.16 and will receive no further updates. This makes it useful to describe an existing installation, but not a basis for calling it the universal best choice for a new setup.
Fix invalid JSON before treating formatting as complete
Strict JSON follows RFC 8259. Common problems include trailing commas, single-quoted strings, unquoted property names, and comments. A formatter is not necessarily a repair tool: read the reported error and correct the input.
Invalid JSON: {"name":"Lizely",}
Valid JSON: {"name":"Lizely"}
Formatting makes a document readable; it does not prove that the values meet your application's schema or business rules. Keep identifiers with significant leading zeros or very large integers as strings when that is their intended representation.
Use a browser alternative when a plugin is not suitable
If you cannot install a plugin or only need to inspect a pasted document, the JSON Formatter provides a local browser workflow:
- Paste the JSON into the input.
- Choose 2 spaces, 4 spaces, or Tab and select Format, or select Minify for compact output.
- If parsing fails, read the error. A line and column are shown when the browser error supplies a location the tool can extract.
- Inspect the result, copy it, and paste into a separate Notepad++ tab before replacing your saved file.
The tool uses JSON.parse and JSON.stringify locally. This is parsing and serialization, not a byte-preserving whitespace edit: duplicate object keys can be collapsed, number notation can change, and integers beyond JavaScript's safe integer range can lose precision. For example, 12345678901234567890 may become 12345678901234567000. Do not send exact numeric identifiers through this workflow as JSON numbers when preservation is required. Work on a copy and compare important values before saving.
Minification removes optional whitespace for compact storage or transfer; formatting adds indentation for reading. Neither operation replaces a schema check. This guide is based on the official sources above and the site's current formatter implementation; it does not claim a fresh test of every plugin on Windows.
Related reading: Is an HTML Table to JSON Converter Safe to Use Online?.
Related reading: Camel Case to Snake Case Converter Alternative.