JSON Formatter
Format & validate
Loading interactive tool…
Open the full tool for saved settings, clipboard access, or more space.
How to use this tool
Paste a JSON document and select Format. The browser parses it and prints valid JSON using two spaces per indentation level.
Worked example
The input {"count":2,"active":true} is expanded into an indented object. JSON property names and string values require double quotes.
What to keep in mind
Comments and trailing commas are not valid JSON. Parsing can round numbers beyond JavaScript’s safe precision and collapses duplicate object keys.