Home / Tools / JSON formatter

JSON Formatter and Validator: Beautify and Minify JSON Online

Paste JSON to validate it, pretty print it with the indent you choose, or minify it. Errors show what is wrong. Runs in your browser.

Paste your JSON and press Beautify to indent it, or Minify to remove the extra spaces. If the JSON is not valid, the message tells you what is wrong. Nothing leaves your browser.

What it does

Example

Before

{"name":"localconfig","tags":["config","tools"],"nested":{"a":1,"b":[1,2,3]}}

After

{
  "name": "localconfig",
  "tags": ["config", "tools"],
  "nested": { "a": 1, "b": [1, 2, 3] }
}

Frequently asked questions

Why does my JSON fail?
The usual causes are a trailing comma, single quotes instead of double quotes, a missing quote around a key, or a comment. JSON allows none of these.
What is the difference between Format and Minify?
Format adds line breaks and indentation so people can read it. Minify removes the extra spaces so the file is smaller.
Is my data uploaded?
No. The check runs in your browser and nothing is sent to this site.

Runs in your browser. Nothing you type is sent to this site. Updated 2026-10-11.

More tools

Code formatters

CSS beautifier CSS minifier HTML beautifier HTML minifier JavaScript beautifier JavaScript minifier YAML formatter XML formatter SQL formatter Markdown preview

Converters

Base64 encoder and decoder URL encoder and decoder Unix timestamp converter CSV to JSON JSON to CSV HTML entity encoder and decoder Number base converter Time zone converter JSON to TypeScript XML to JSON HTML to Markdown Date difference calculator

Text tools

Regex tester Remove duplicate lines Lorem ipsum generator Word counter Case converter Text diff checker

Color and images

Color converter Contrast checker Image to Base64 Image resizer

Network

Subnet calculator Download time calculator Common ports list CIDR to IP range IPv6 address expander and compressor MAC address formatter curl command builder

Server and files

Cron expression explainer chmod calculator HTTP status codes

Encoding and security

Password generator UUID generator Hash generator JWT decoder QR code generator Password strength checker Wi-Fi QR code generator