JSON Formatter
Format, validate and minify JSON in your browser, with clear error messages when the JSON is invalid.
- 100% Free
- No account required
- Runs in your browser
- No data is uploaded
Not saved automatically
Private to this browser, not a cloud backup. Saves expire 7 days after the last save. Avoid saving sensitive data on shared devices.
Input
Paste or edit your JSON, then click “Run tool”.
Type, paste or drop a file
JSONLn 1, Col 1Spaces: 2UTF-8228 bytes
Output
Formatted JSON (read-only).
Read-only
JSONLn 1, Col 1Spaces: 2UTF-80 bytes
Using the JSON Formatter
Overview
Format, validate and minify JSON in your browser, with clear error messages when the JSON is invalid.
Turn a one-line API response or a hand-edited config into readable JSON. Useful for developers, API testing and data processing.
How to use it
- Paste or type your JSON into Input, drop a file onto it, or press Example to load a sample.
- Choose the settings in the Output options bar under the editors.
- Press Run tool, or ⌘ ↵ from anywhere on the page.
- Read the result in Output, then copy or download it. The Result tab has size, line counts and next steps.
Input
JSON.
Settings
- Output — Pretty print, Minify, Validate only
Output
Formatted JSON.
- Validate JSON syntax
- Pretty print (human readable)
- Minify JSON (smallest size)
- Jump straight to a syntax error
Tips
- Formatting a document also validates it: if it will not format, it will not parse.
- Minify for transport, format again when you need to read it.
- Keep inputs under about 2 MB so the tab stays responsive.
Keyboard shortcuts
- ⌘ ↵
- Run the tool
- ⌘ K
- Search every tool
- /
- Filter the sidebar