JSON Formatter

Make API responses readable, or squeeze JSON down for production. Choose your indent size, format, and copy the result.

How to Use the JSON Formatter

  1. 1

    Paste your JSON on the left.

  2. 2

    Choose an indent size.

  3. 3

    Press Format to beautify, or Minify to compress.

  4. 4

    Copy the result.

JSON Formatter Features

Beautify and minify

Both directions in one tool.

Indent choice

Two, four or eight spaces.

Error messages

See exactly what is wrong when parsing fails.

Runs in your browser

Nothing is uploaded to a server, so your content stays on your device.

Free and unlimited

No account, no watermark and no daily limit.

Works on mobile

Large tap targets and layouts that fit a phone screen.

Frequently Asked Questions

Related Tools

JSON Validator

Check whether JSON is valid and see the exact error.

Base64 Encoder

Encode text to Base64 with full Unicode support.

URL Encoder

Percent-encode text for safe use inside links.

Text Cleaner

Remove extra spaces, blank lines and broken line breaks.