Format JSON

Make valid JSON readable with consistent indentation.

Local processing · Nothing is uploaded · 1 MB input limit

Input & settings

Paste text or drop a UTF-8 text file
Ready. Enter your input to begin.

How to use this tool

Paste JSON, choose two or four spaces, then format it. Download the result as a JSON file.

Limits and behavior

Formatting preserves numeric text and duplicate keys. Comments, trailing commas, numbers outside the safe integer range, and nesting beyond 128 levels are rejected. Input is limited to 1 MB and output to 3 MB. No input content is saved by CraftAI.

JSON formatter and pretty-printer

Paste a JSON object or array to make valid JSON easier to read. This online JSON beautifier and pretty-printer adds consistent indentation without changing the underlying data values. Choose two- or four-space formatting.

Will a JSON formatter repair broken syntax?

No. Formatting requires syntactically valid JSON. If the input contains missing commas, unmatched brackets or invalid quotes, correct the JSON syntax before formatting.

Built on Hatchable