JSON formatter
About this tool
Paste raw or minified JSON here to pretty-print it with consistent indentation, check its syntax, or minify it back down to a single line. Syntax errors are reported with their position, so a malformed file is quick to fix.
Formatting happens entirely in your browser. Your data never leaves your machine, which makes this safe for API responses, config files, and payloads that contain secrets. A formatter that round-trips your JSON through a server can’t make that promise.
A typical workflow: copy a compact response from an API, a log line, or a browser network tab, paste it here to make it readable, edit it, then minify it again before sending. The formatter accepts anything valid under the JSON spec, RFC 8259, including deeply nested structures and Unicode. See MDN’s JSON reference for how JavaScript itself parses and serializes it.