JSON Formatter & Validator

Paste API responses, config files or logs and get readable, indented JSON. If the JSON is invalid, the error message points to the line and column so you can fix it quickly.

Open a .json file (optional)

Runs entirely in your browser. Your input and files are not uploaded to any server.

How to use

  1. Paste JSON into the input box, or open a .json file.
  2. Choose the indentation and whether to sort keys alphabetically.
  3. Press Format. Valid JSON is pretty-printed; invalid JSON shows where the problem is.
  4. Copy or download the result.

Examples

Minified API response

{"id":1,"tags":["a","b"]} becomes an indented, multi-line document.

Common error

A trailing comma such as {"a":1,} is reported with its line and column.

Privacy

Your files and text stay in your browser while you use this tool, and ads or anonymous visit statistics do not receive them. Only your favorites and recent tools are saved on your device. Privacy policy

Want proof? Check it with your browser’s Network tab: How to check that a tool does not upload your files

Frequently asked questions

Is my JSON sent anywhere?

No. Parsing uses the browser’s built-in JSON.parse on this page. Nothing is uploaded, which makes it safe for tokens and internal data.

Does it accept comments or single quotes?

No. Those are not valid JSON. The validator follows the JSON standard strictly, which is what APIs and parsers expect.

Are big numbers preserved?

Numbers larger than 2^53 lose precision in JavaScript. If your data has 64-bit IDs, keep them as strings.

JSON MinifierMinify JSON by removing whitespace and line breaks, validate it at the same time and see how many bytes you saved.
JWT DecoderDecode a JSON Web Token to read its header and payload, with expiry and issued-at times in readable form.
SVG Preview & OptimizerPreview SVG files safely and shrink them by removing comments, editor metadata and whitespace, with optional number rounding.
Color Picker & ConverterPick a colour, convert between HEX, RGB and HSL, sample colours from an image or your screen, and check contrast against white and black text.
Search tools