Skip to main content
Tools JSON
JSON

JSON Formatter & Validator

284,129 runs · v2.4 · Everything below stays in your browser

Format, minify, sort, and validate JSON with path-aware error messages. Browser-only — your input never leaves this page.

Runs entirely in your browser · Your input is never transmitted

Valid JSON
INPUT
0 lines · 0 B Ready
OUTPUT · FORMAT
 
OK
Input size
0 bytes
Output size
0 bytes
Nodes
Max depth

How to use

  1. Paste your JSON into the left pane.
  2. Pick Format, Minify, or Sort keys from the options.
  3. Copy the output or download as .json.

Frequently asked

Is it safe to paste sensitive JSON here?

Yes. The tool runs entirely in your browser. There are no server calls and no analytics on input — paste internal payloads with confidence.

Why does my JSON fail to parse?

Most often: trailing commas, single quotes instead of double, unescaped control characters, or wrapped variable assignments. The error message shows the exact line and column.

How big an input can I paste?

Browser memory is the practical ceiling. Tested to 10MB without stalls. Larger files — consider splitting or using a local CLI.

What's 'Sort keys' for?

Alphabetizes object keys recursively — useful for diffing two JSON documents, canonical hashing, or normalizing API responses.