JSON formatter
DataPaste JSON or open a UTF-8 file. Press Ctrl+Enter (Command+Enter on Mac) to format.
Ready. Your input stays in this browser.
JSON formatter
Format JSON with spaces or tabs, minify it, or check it for syntax errors with line and column numbers. Paste JSON or open a local file, then copy or download the result. Everything runs in your browser; nothing is uploaded.
Is my JSON uploaded?
No. Formatting, validation, file reading, and downloads run in your browser. The tool does not send or save your JSON to a server. No account is required.
Will formatting change my data?
Formatting changes only whitespace outside strings. Numbers keep their original spelling and precision, including large integers, exponents, and negative zero. String escapes and duplicate object keys are preserved. Sort keys changes object key order only when you select it; array order stays the same.
Which JSON is accepted?
Objects, arrays, strings, numbers, booleans, and null are valid at the top level. Keys and strings need double quotes. Comments, trailing commas, and JavaScript values such as undefined and NaN are not valid JSON.
How do I fix a syntax error?
The tool shows the first error with its line and column. Select Go to error to move the input cursor there, fix the JSON, and validate or format again. Your original input stays in the input editor.