{ }JSON Workbench
A little order for your data

Make sense of your JSON.

Format, validate, and minify JSON. Find the error, then get back to building.

● Files stay in your browser
No sign-up. No upload.
Paste JSON to start. Tip: press Ctrl / ⌘ + Enter to format.

01 / Read it clearly

Expand a dense response into consistent indentation. Optionally sort object keys recursively; array order stays intact.

02 / Find what broke

Validate strict JSON and locate syntax errors when your browser provides a position. No silent repairs.

03 / Keep it local

The tool processes input in this browser tab. It does not save your JSON or send it to a server.

How to use this JSON formatter

  1. Paste a JSON document, open a UTF-8 file, or load the sample.
  2. Choose indentation, then select Format JSON. Use Minify to remove unnecessary whitespace.
  3. If validation fails, read the error and correct your input. The tool never guesses which data you intended.
  4. Copy or download the result. Your original input stays editable.

A quick example

This compact object:

{"name":"Ada","roles":["developer","reviewer"],"active":true}

Becomes easier to scan with indentation:

{
  "name": "Ada",
  "roles": [
    "developer",
    "reviewer"
  ],
  "active": true
}

Know the limits

This tool uses JavaScript’s JSON parser. Integers outside ±9,007,199,254,740,991 may lose precision, duplicate object keys keep only the last value, and number notation may change. Warnings appear for unsafe integers and duplicate keys. Keep the original file when exact numeric text matters. Files and pasted input are limited to 2 MB.

Common questions

Why does my JavaScript object fail?

JSON requires double-quoted property names and strings. Comments, trailing commas, single quotes, undefined, and functions are not valid JSON. Read the error guide for examples.

Is minified JSON a different format?

No. Minifying removes optional whitespace outside strings. It does not shorten property names or compress the file like gzip. See formatting versus minifying.

Does sorting keys reorder arrays?

No. Object properties are sorted recursively, but array element order is preserved. JavaScript enumerates integer-like property names numerically, even when sorting is selected.

Will my data still be here after a refresh?

No. Input is kept only in the current page memory. Download important results before closing or refreshing the tab.