Skip to content
Toolwright

JSON Formatter & Validator

Pretty-print, minify, sort and validate JSON. Errors point to the exact line and column, and the repair mode fixes comments, trailing commas, single quotes and unquoted keys. Your JSON never leaves your browser.

Developer Runs in your browser Works offline once loaded

Private by design: your input is processed on this device and never uploaded. Verify it yourself.

How to use JSON Formatter & Validator

  1. 1Paste your JSON into the input.
  2. 2Pick Format, Minify or Repair and choose the indentation.
  3. 3Copy or download the result. Errors show the line and column.

Frequently asked questions

Is my JSON uploaded anywhere?

No. Parsing and formatting use your browser's built-in JSON engine, and the page makes no network requests with your data.

What does Repair fix?

It removes comments and trailing commas, converts single quotes to double quotes and quotes bare keys, so JSON5-style or hand-edited data becomes strict JSON.