OpenReplay Logo
12k
12k

JSON formatter

Format, validate, repair and minify JSON for debugging, reading and sharing. Processed locally in your browser.

JSON Waiting for JSON

Paste JSON, drop a file, or

Format Processed locally Local

About this tool

A JSON formatter beautifies JSON data by structuring it in a readable format. It also validates, repairs and minifies JSON for developers, analysts, and anyone working with APIs or data.

Use it to debug API responses, clean configuration files, or share readable JSON with your team. Large files are handled in milliseconds.

All data is processed locally on your device. Nothing is uploaded.

Frequently asked questions

Does it validate my JSON?

Yes. If it can't be parsed, an error appears above the box and your text is left untouched so you can fix it in place. For exact line-and-column error positions plus structure stats, use the dedicated JSON validator.

What's the difference between format and minify?

Format adds indentation and line breaks for reading; minify strips all whitespace for the smallest payload.

Is there a size limit?

No hard limit. Files of several megabytes format in milliseconds since everything runs in your browser.

Can it fix broken JSON?

Yes. The Repair button rewrites malformed input into strict JSON: single quotes, unquoted keys, trailing commas, comments, Python-style constants and truncated documents are all fixed in place. Review the result and use Undo to restore your original text.