Skip to content

JSON Formatter & Validator

Beautify, minify and validate JSON with clear error messages.

AvailableRuns in your browserFree · No sign-up

JSON Formatter & Validator

Your data is processed locally in your browser and is not uploaded to OZVILO servers.

How to use the JSON Formatter & Validator

  1. 1Paste your JSON, or load the sample.
  2. 2Press Format to beautify it, Minify to compress it, or Validate to check it.
  3. 3If there's a syntax error, use the line and column shown to find it.
  4. 4Copy the output or download it as a .json file.

Examples

  • Minified to formatted

    Input
    {"name":"OZVILO","free":true}
    Result
    { "name": "OZVILO", "free": true }
  • Common mistake

    Input
    {"a": 1,}
    Result
    Invalid — standard JSON doesn't allow a comma before }

Frequently asked questions

Is my JSON executed or sent anywhere?

No. The tool uses the browser's built-in JSON parser, which only reads data and never runs code. Your JSON stays in your browser.

Why is my JSON invalid?

Common causes are trailing commas, single quotes instead of double quotes, unquoted keys, comments, and values like undefined or NaN. Standard JSON allows none of these.

Why did a very large number change?

JavaScript stores numbers with about 15–17 significant digits, so very large integers (such as some IDs) may lose precision when parsed. Store such values as strings if exact digits matter.

What does “Sort keys” do?

It orders object keys alphabetically at every level, which makes two JSON files easier to compare. Array order is never changed.