JSON from APIs, config files and logs often arrives minified into a single unreadable line. Paste it here and click Beautify JSON: the tool parses it with the browser’s native JSON.parse and re-indents it with 2 spaces, 4 spaces or tabs, whichever you choose. Minify JSON does the opposite, stripping every unnecessary space and line break so the payload fits in an environment variable, a query string or a smaller request body.
If the input is not valid JSON, you get the parser’s error message and a Go to Error button that jumps to the problem. The usual suspects are single-quoted keys or strings (JSON only allows double quotes), a trailing comma after the last item, // comments, values like undefined or NaN, and curly “smart quotes” picked up when copying from a web page or document. All of these may be fine in a JavaScript object literal, but they break strict JSON as defined in RFC 8259.
Switch the output format to YAML or XML when another tool expects a different shape — for example turning an API sample into YAML for a Kubernetes manifest or GitHub Actions workflow, or into XML for a legacy integration. The conversion maps plain objects, arrays and primitive values; advanced features such as XML attributes or YAML anchors are not generated, so review the result before using it in production.
Everything is parsed locally in your browser, so tokens, API keys or customer data you paste never leave your machine. Very large files (tens of megabytes) can make the tab sluggish; for those, a command-line tool like jq is a better fit.