JSON Formatter
Pretty-print or minify JSON with useful line and column errors. Runs entirely in your browser. Nothing is uploaded, and pastes are capped at 200,000 characters.
How it works
- Paste JSON or drop a JSON file onto the box, up to 200,000 characters
- Choose pretty print for two-space indentation, or minify to remove all spacing between values
- Run it and copy the result. Invalid JSON shows the parser's message, with a line and column in most browsers
When people use this
- Turn a one-line API response like {"id":7,"tags":["a","b"]} into indented JSON you can read
- Minify a config file before pasting it into a single-line field or an environment variable
- Comments and trailing commas are reported as errors, not fixed, and numbers longer than about 15 digits may be rounded