All tools Developer Tools

JSON Formatter

Pretty-print or minify JSON without changing a single value.

Your details

Paste your JSON here.

100 of 100 free uses left today

Your result will appear here

Fill in the details on the left and press the button. You will see the answer right here, without the page reloading.

About this tool

Paste JSON to get it indented and readable, or squeezed onto one line. Unlike tools that decode and re-encode, this one only changes spacing: numbers such as 1.10 or 12345678901234567890, \u escapes and the order of keys stay exactly as written. A mistake is reported with its line and column. Your text is processed for this request only and is never stored.

Frequently asked questions

What does formatting JSON do?

It adds indentation and line breaks so that the data is easy to read. The data itself does not change.

Why do I get an error?

The JSON is probably invalid: a missing comma, single quotes, a trailing comma or an unquoted key are the usual causes. See our guide to common JSON errors.

Is it safe to paste my JSON here?

Avoid pasting passwords, private keys or personal data into any online tool.

Guides and tutorials

Related tools