format validator

JSON Prettifier

Format JSON with indentation for quick readability and debugging.

Results

Processing…
Status
Processing...
Details
Processing...
Prettified JSON
Processing...

Rules & checks

Parses JSON5 for lenient input (trailing commas, single quotes).

Outputs standard JSON with two-space indentation.

Runs entirely in your browser.

When to use it

  • Make error messages clearer before debugging an API response
  • Prepare JSON for code review or documentation
  • Normalize formatting before checking into source control

Tips

  • Prettify then validate to pinpoint errors quickly
  • Remove credentials or secrets before sharing prettified payloads

Examples

Minified to pretty

  • {"a":1,"b":2} -> expands to multi-line

Invalid JSON

  • {name:"Ada"} -> Flags missing quotes

FAQs

Do you send data anywhere?
No. Formatting happens in your browser only.
Can I change indentation?
Current version uses two spaces for consistency.

Related validators

Formatting only; does not validate against schemas.