Kharabeesh
On-device ع

JSON Formatter & Validator

Pretty-print JSON or minify it to one line, sort keys alphabetically, validate it with the exact line, column and cause of any error, or escape and unescape JSON strings.

Free, no sign-up Your data stays on your device Works offline after first open

The tool

Loading the tool…

How to use

  1. Paste JSON or drop a .json file.
  2. Choose: format, minify, validate, escape text or unescape.
  3. If there is an error we show its line, column and likely cause.
  4. Copy or download the result.

Privacy & how it works

Processes your data in the browser and stores nothing.

  • Engine: lightweight in-page code, no external libraries.
  • Works offline after you open it once.

Frequently asked questions

What are the most common JSON errors?

A trailing comma before } or ], single quotes instead of double, unquoted keys, and comments. We catch all of them and tell you where.

Does sorting keys change the data?

No. Key order does not change an object’s meaning. Arrays keep their order.

What does escaping text mean?

Turning plain text into something that fits inside "…" in JSON: quotes become \" and new lines \n. Unescape does the reverse.

Do very large numbers change?

Integers larger than 9007199254740991 lose precision in JavaScript when formatted. Keep numbers that big as strings.

Related tools