JSON Formatter
Paste JSON to validate and format it. Errors point to the exact line, and your numbers and key order stay as written.
Formatted
The formatted JSON appears here as you type.
Ctrl+F search · Ctrl+↵ copy result · Ctrl+Shift+F result to input · Esc then Tab leaves the editor
How to format JSON
- Paste JSON, drop a .json file or open one. It is checked as you type.
- If there is an error, read the message, press Go to error to jump to it, or Repair to fix common mistakes.
- Choose the indent or Minified, sort keys if you like, then copy or download the result. Switch to Tree to fold and explore large JSON.
Frequently asked questionsUseful details
4 answers +
Is my JSON sent anywhere?
No. Checking, formatting and repair run in your browser. Nothing is uploaded, stored or turned into a share link.
Why keep the key order?
Key order has no meaning in JSON, but people read files top to bottom and tools compare them line by line. Formatting keeps the order you had unless you tick Sort keys.
What does Minified do?
It removes every space and line break that JSON does not need, which makes files smaller for APIs and storage. The data is unchanged.
Can I convert JSON to CSV or Excel?
Yes. Use Send to under the result, or open JSON to CSV, which flattens nested fields into columns.
More help
Guides, common conversions and useful next steps.
Continue with your result
Use the action beside a finished result to send it directly, or open another tool: