JSON Formatter & Validator

Paste an API response or config and it is formatted instantly; mistakes are pointed out by line and column.

Reading the error

Broken JSON is reported as 'line 3, column 14' with the surrounding lines shown. The usual causes are a trailing comma, single quotes, unquoted keys and comments; JSON allows none of them.

Format vs. minify

Formatting is for people, minifying is for transport and storage. Values are unchanged either way; order changes only with 'Sort keys'. Numbers follow JavaScript's range, so integers above 2^53 may lose precision.

Large files

Several megabytes are fine. The last input is kept only in this browser (up to 200,000 characters) and never transmitted.

Frequently asked

Is my JSON uploaded?

No. Validation and formatting run in your browser, so a response containing API keys never leaves your machine.

JSON5 or files with comments?

Standard JSON only. Comments and trailing commas are reported as errors.

Non-Latin text comes out as \uXXXX?

No, this tool keeps Unicode characters as they are.