Output will appear here...
JSON (JavaScript Object Notation) is a lightweight, text-based format used by applications and servers to exchange structured data. This tool instantly validates, formats, and minifies your JSON — entirely inside your browser, with no data ever sent to a server.
Paste your JSON data into the Input JSON box on the left. The tool validates it live as you type — a green banner confirms valid JSON, while an error banner shows the exact Line and Column of any mistake.
Click Format to convert compressed JSON into a clean, indented, color-highlighted structure. Use the Indent dropdown to choose 2 spaces, 4 spaces, or Tab.
Click Minify to strip all whitespace and compress your JSON to a single line — ideal for APIs, config files, and reducing payload size.
The stats bar below the output shows exactly how many bytes were saved.
Enable Sort keys A→Z in the options bar to reorder all object keys alphabetically at every nesting level. This makes comparing two large JSON config files significantly easier.
Use the Copy button in the toolbar — or the small copy icon in the top-right corner of the output box — to copy the result to your clipboard instantly.
Click Download to save the formatted or minified JSON as a formatted.json file on your device.
Invalid JSON shows a red banner with the exact error, line, and column. The three most common mistakes are:
• Keys without double quotes: {name:"x"} ❌
• Trailing comma: [1,2,3,] ❌
• Single quotes: {'a':1} ❌ — JSON requires "