JSON formatter
Paste JSON, pick an action, and copy the formatted or minified result.
JSON formatter runs entirely in your browser: the text you paste is never sent to a server. It is free and needs no sign-up.
How to use it
- Paste your JSON Paste JSON into the box. It is checked as you type, and a syntax error shows the message from the parser, with its line and column when the browser gives them.
- Pick Format, Minify, or Validate Format prints the JSON with 2 spaces, 4 spaces, or a tab. Minify removes the whitespace. Validate only confirms that the JSON is valid.
- Copy or download Press Copy to put the result on the clipboard, or Download .json to save formatted.json. After Minify, the file is named minified.json.
Questions
Why does the tool warn about large integers?
JavaScript cannot store whole numbers above 9007199254740991 exactly. The tool lists up to five such numbers from your JSON, because the output may change them. Keep those values as text in your JSON.
What is the size limit for JSON?
The input can be up to 2 MB measured in UTF-8 bytes. Larger input is refused with a message, so split it into smaller pieces first.