Free · No account · Nothing uploaded
JSON formatter
Make JSON readable, check its syntax, or minify it. Paste below to get started.
Paste replaces this box. You can also touch and hold to paste.
Up to 50,000 characters. Formatting changes whitespace only.
Copy the result to use it in another app.
How to use json formatter
- Paste your JSON into the input box.
- Tap Format & validate for readable indentation, or Minify to remove whitespace outside strings.
- If validation passes, tap Copy result. If it fails, correct the input and try again.
A quick example
{"items":[1,2]}{
"items": [
1,
2
]
}Does formatting change my data?
Only whitespace outside strings is changed. Original number spellings, large integers, key order, and duplicate keys are preserved. Duplicate keys remain ambiguous to other programs, so preserving them does not guarantee consistent interpretation.
What does validation check?
JSON syntax, including quotes, commas, and matching brackets. It does not check an application schema or whether values are correct. Comments and trailing commas are invalid JSON. Use up to 50,000 characters; formatted output supports up to 100 nesting levels.
Does this tool save my text?
No. Your input is processed in this browser tab, with no uploads, saved history, or analytics events on Tools pages. Clear an input to remove it and its result. Normal network requests load the page and its code. Copying a result puts it on your device’s clipboard, which is managed by your operating system.