JSON Formatter and Validator Online

Paste your JSON to validate it, format it with indentation or minify it, and explore it in a collapsible tree view. Syntax errors show the exact position of the problem.

Dev Tool

JSON Formatter & Validator

Validate, beautify and minify your JSON instantly.

Waiting for input…

What you can do

  • Format: indent the JSON so you can read it.
  • Minify: remove spaces and line breaks to make it as small as possible.
  • Tree view: expand and collapse objects and arrays to find your way around large responses.
  • Full screen: more room for long documents.

Common JSON errors

  • Trailing commas after the last element of an object or array.
  • Single quotes instead of double quotes around keys and strings.
  • Keys without quotes, comments, or values like undefined or NaN, which are not valid JSON.

Frequently asked questions

Is it safe to paste production data?

Yes: the JSON is processed in your browser and is not sent to any server.

Can I turn the JSON into Swift models?

Yes, use the JSON to Swift Codable converter.

¿Prefieres español? Esta herramienta en español.