JSON Formatter
Beautify, minify, sort, query and repair JSON with a tree view and copy-as code export.
Runs locally in your browser
JSON input
0 chars · 1 line
⌘ Enter re-run · ⌘ S download
Pretty
Output will appear here…
Related tools
How to use JSON Formatter
- 1Paste or upload JSON, or load the sample. Your last input is remembered in this browser.
- 2Pick an output mode: Pretty, Minified, Sorted (A→Z or Z→A), Escaped, Unescaped, Tree or Query.
- 3If the input is invalid, press Fix JSON to repair trailing commas, comments, quotes and missing brackets, then review the change list.
- 4Use Copy as to export the document as a JS object, Python dict, TypeScript interface, Go struct or JSON.parse string.
- 5Press ⌘ Enter to re-run, ⌘ S to download, or Copy link to share the exact state.
About JSON Formatter
Format and beautify JSON instantly in your browser. Switch between pretty, minified, sorted, escaped and unescaped output, explore a collapsible tree, run JSONPath or jq-style queries, and repair almost-JSON (trailing commas, comments, single quotes, unquoted keys) with one click. Copy the result as a JavaScript object, Python dict, TypeScript interface or Go struct. Errors show the exact line and column. Runs entirely client-side.
JSON Formatter is part of FizzKit — a collection of focused developer and ad-tech tools. Because everything runs locally, it works offline once loaded and never exposes your data to a remote server.
Frequently asked questions
No. FizzKit formats JSON entirely in your browser using the native JSON parser. Nothing is uploaded or logged. The last input is stored only in your browser's local storage.