JSON Formatter
Make JSON data easy to read and check it for mistakes. Your files stay on your device and are never uploaded.
How to use JSON Formatter
- Paste your JSON into the left box.
- Click "Prettify" to spread it out so it's easy to read, or "Minify" to squeeze it onto one line.
- If there's a mistake, a message tells you where to look. Otherwise, copy or download the result.
Recommended Presets & Use Cases
API Payload Debugging
Format raw, minified single-line REST and GraphQL API responses into readable, collapsible data trees.
Configuration File Minification
Strip whitespace, indentation, and newlines from configuration files to reduce network transfer bytes.
Syntax Error Diagnosis
Detect missing commas, trailing commas, single-quote mistakes, and unquoted object keys with clear line error indicators.
RFC 8259 Compliance & In-Browser Memory Privacy
JSON (JavaScript Object Notation) requires strict RFC 8259 conformance: keys must be double-quoted strings, trailing commas are prohibited, and values must adhere to primitive types (string, number, object, array, boolean, null). All parsing and serialization runs locally via browser `JSON.parse()` and `JSON.stringify()`. Proprietary database records, secret API tokens, and confidential client configurations never leave your machine.
How it works
Privacy & Local Execution
Your JSON is formatted inside your browser. Passwords, keys, and settings you paste stay private.
Troubleshooting & Common Issues
Unexpected token error.
Solution: Replace all single quotes with double quotes and remove trailing commas before closing braces `}` or brackets `]`.
Frequently Asked Questions
Does it check for mistakes?
Yes. If your JSON has an error, a message shows what went wrong and roughly where.
Is it safe to paste private data?
Yes. Everything happens in your browser — your data is never sent over the internet.