Format JSON
Format and indent JSON to make it readable, with syntax error detection.
Processed on your device. Nothing is sent to any server.
Format a compact or poorly indented JSON into a readable document, with 2-space indentation, directly in your browser.
Parses the JSON with the browser's native parser and re-serializes it with indentation, showing a clear message with the exact line and column if the JSON isn't valid.
Use cases
- Formatting an API response to read it comfortably.
- Debugging a JSON configuration file.
- Preparing a readable JSON for documentation.
How it works
- 1
Paste your JSON
Type or paste the JSON into the input box.
- 2
Format it
Click Format and copy or download the result.
Frequently asked questions
- What happens if the JSON isn't valid?
- An error message is shown indicating the approximate line and column where the problem is, instead of failing with no explanation.