Kitloft

All tools / Data & text

JSON formatter and validator

Paste JSON to pretty-print it, find syntax errors, or convert it to YAML.

Output

Runs entirely in your browser. Nothing you type or upload is sent to a server.

Found it useful? Share it:WhatsAppTelegram

How to use JSON formatter and validator

  1. Paste your JSON into the input box.
  2. Pick Pretty, Minify or YAML, and the indent you want.
  3. Fix any error at the line and column shown, then copy the result.

Common questions

How do I find where my JSON is broken?

The error shows the line and column where parsing stopped, with a pointer under the problem. Common causes are trailing commas, single quotes instead of double quotes, and comments, none of which JSON allows.

Is the YAML output safe for Kubernetes and Docker Compose?

Yes. Strings that YAML would read as another type, like "true", "8080", "no" or dates, are quoted so they stay strings.

Are large numbers kept exactly?

Numbers bigger than 253 (about 9 quadrillion) lose precision in JavaScript. If your JSON has large IDs, keep them as strings.

Is my JSON sent anywhere?

No. Everything runs in your browser, so it is safe for configs and API responses.

Was this page useful?