JSON Formatter
Paste and beautify instantly. Errors like duplicate keys, trailing commas, Chinese punctuation, and unquoted keys are reported with exact line and column positions. Everything runs in your browser; nothing is uploaded.
JSON Input
Supports arrays, objects, deep nesting, and all valid escapes
Indent
Text ⇄ String Field
Pack multi-line text into a string field, or unpack a field back to plain text
Escaping uses JSON's own sequences (
, etc.). Multi-line text carries newlines when pasted; they must be escaped when packed into a field.
—
0Output chars
0Input chars
0Nodes
0Objects
—Max depth
0Duplicate keys
Where the error is
Parse errors appear here only; your input is untouched
Valid JSON is beautified and output here. On parse failure, the error line, column, and source excerpt are shown here.