Paste JSON to format it with clean indentation, minify it to one line, or validate it. Errors show the exact line and column, and nothing you paste leaves your browser.
How to use it
- Paste your JSON into the top box.
- Press Format to beautify it or Minify to compress it; tick Sort keys if needed.
- If it is invalid, read the error with the line and column, fix it and try again.
Common JSON mistakes
JSON requires double quotes around keys and strings, does not allow trailing commas after the last item, and does not support comments. Values can only be strings, numbers, true, false, null, objects or arrays. Copying JavaScript objects often brings in single quotes or unquoted keys, which are not valid JSON. Everything runs in your browser, so it is safe to use with API responses.
Frequently asked questions
Is my data sent anywhere?
No. Formatting and validation happen in your browser.
Why would I minify JSON?
To make files and API payloads smaller by removing spaces and line breaks.
Comments
Post a Comment