JSON Formatter & Viewer
Paste raw or minified JSON to validate it and pretty-print it with 2-space indentation. Browse the result as an interactive tree with collapsible objects and arrays, or switch to plain text, then copy it or share it with a link. If the JSON is invalid, you see the parser's error message.
How to use
- Paste your JSON into the text box.
- Click Format JSON or press ⌘/Ctrl + Enter.
- Explore the Output as an Interactive tree, collapsing and expanding objects and arrays, or switch Interactive off to see the formatted text.
- Click Copy to copy the formatted JSON, or Share to copy a link to the input and the result.
Example
Input
{"name":"John","age":30,"address":{"city":"New York","zip":"10001"},"hobbies":["reading","sports"]}Output
{
"name": "John",
"age": 30,
"address": {
"city": "New York",
"zip": "10001"
},
"hobbies": [
"reading",
"sports"
]
}Frequently asked questions
What happens if my JSON is invalid?
No Output is shown, and an error notification starts with Invalid JSON: followed by the parser's message, which usually names the unexpected character and its position. Common causes are trailing commas, single quotes, unquoted keys and comments, none of which are allowed in JSON.
Is my JSON sent to a server?
Yes. Format JSON sends the text to Quto's server, which parses it and returns it re-indented without storing it. Share saves the input and the formatted result so that the link can show them. Avoid pasting secrets such as API keys or tokens.
Does formatting change my data?
The values stay the same, but the JSON is parsed and written out again: indentation becomes 2 spaces, escapes such as \u00e9 become the characters themselves, and numbers are normalized, so 1.0 becomes 1 and integers larger than 2^53 can lose precision. If a key appears twice in an object, only its last value is kept.
What does the Interactive switch do?
When it is on, the Output is a tree in which you can collapse and expand each object and array, which helps with large payloads. When it is off, you see the formatted JSON as plain text with 2-space indentation, exactly what Copy puts on the clipboard.