Skip to content
Toolwright

JSON Formatter & Validator

JSON Formatter & Validator pretty-prints, minifies, sorts and validates JSON in your browser. Errors point to the exact line and column, and repair mode fixes comments, trailing commas, single quotes and unquoted keys. Your JSON is never uploaded.

Tool 056 · Developer
Outside requests …How to checkRuns on this deviceWorks offline once opened

How to use JSON Formatter & Validator

  1. Paste your JSON into the input.
  2. Pick Format, Minify or Repair and choose the indentation.
  3. Copy 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.

Next step

Next, generate TypeScript interfaces from your JSON. Open JSON to TypeScript.

  1. 060

    JSON to TypeScript

  2. 061

    JSON to YAML Converter

  3. 054

    JSON to CSV Converter

  4. 118

    Text Diff Checker