Developer Tools
JSON Formatter
Pretty-print and minify JSON in the browser.
Your information is processed in your browser and is not uploaded to our servers.
JSON
JSON is valid.
Formatted output
About this tool
The formatter parses JSON in the browser, then reprints it with 2-space indentation or as a single minified line.
How to use
- Paste JSON.
- Beautify or minify.
- Copy the output.
Formula and methodology
JSON.parse followed by JSON.stringify(value, null, 2) or JSON.stringify(value).
Worked example
Minifying { "a": 1 } yields {"a":1}.
Frequently asked questions
Does this send my JSON to a server?+
No. Parsing stays in the tab.
Are comments allowed?+
Standard JSON.parse does not allow comments or trailing commas.
Guides
Related tools
JSON Validator
Validate JSON and show parse errors clearly.
Open tool →
JWT Decoder
Decode a JSON Web Token header and payload in your browser. Signatures are displayed, not verified.
Open tool →
HTML Formatter
Beautify or minify HTML markup locally in the browser.
Open tool →
Base64 Encoder
Encode text to Base64.
Open tool →
Base64 Decoder
Decode Base64 back to text.
Open tool →
UUID Generator
Generate UUID v4 identifiers instantly.
Open tool →