Format JSON
Validate and indent JSON code.
How to use it
Paste your JSON and format it. If there is an error, fix the text and try again.
Result
The indented JSON appears in a read-only box for copying. Your original text stays in the input box.
Formats and limits
Text up to 200,000 characters and 64 levels of nesting.
If something goes wrong
Errors usually come from trailing commas, single quotes or unquoted keys, which JSON does not allow. The browser message helps locate the problem.
Does it keep the digits in long numbers?
Yes. The formatter preserves the original representation of numbers.
What happens to what you type
What you type is processed on this page and is not sent to any server. It is cleared when you reload or close the page.