Karu Tools

Developer and data

JSON Formatter / Minifier

Format and minify JSON in your browser, with parse errors shown when the input is invalid.

Formatted JSON

{
  "name": "Karu Tools",
  "features": [
    "local processing",
    "private by default",
    "mobile friendly"
  ],
  "private": true
}

Minified JSON

{"name":"Karu Tools","features":["local processing","private by default","mobile friendly"],"private":true}

Features of the JSON Formatter

Paste JSON to produce a readable indented version and a compact minified version. It is useful for checking API responses, configuration files, and copied JSON snippets without sending the content to a server.

Open detailed notes

What JSON formatting does

JSON formatting adds line breaks and indentation so nested objects and arrays are easier to read. It helps when you inspect API responses, application settings, logs, and copied JSON snippets.

What JSON minifying does

JSON minifying removes whitespace and line breaks that do not change the data. It is useful when you need a compact value for an environment variable, configuration field, test fixture, or request payload.

When to use it

  • Use it to inspect API responses and confirm the structure of objects and arrays.
  • Use standard JSON only. JavaScript object literals and commented JSON are not supported.
  • Keys and strings must be wrapped in double quotes.
  • Your JSON is formatted, minified, and validated in the browser without being sent to a server.

Frequently asked questions

Is my JSON sent to a server?

No. Formatting, minifying, and validation all run in your browser.

What happens when the JSON has a syntax error?

The tool shows an error message instead of formatted output. Check for missing quotes, trailing commas, and unclosed brackets.

Does it support JavaScript object literals?

No. Please enter standard JSON, such as keys wrapped in double quotes.