JSON Formatter & Validator

Check whether JSON is valid, then format or minify it.

JSON formatter and validator

JSON OUTPUT

Your formatted JSON will appear here.

How it works

Paste JSON or upload a JSON file, then press Format JSON to validate it and pretty-print with 2-space indentation. Minify produces compact JSON from the same input.

Example
INPUT
{"name":"IngoHub","active":true}
FORMATTED JSON
{ "name": "IngoHub", "active": true }

Questions

What is JSON?

JSON is a text format for objects, arrays, strings, numbers, booleans, and null. It is commonly used to store and exchange structured data.

What does this JSON formatter do?

It checks whether the input is valid JSON, then pretty-prints it with 2-space indentation or minifies it into compact JSON.

How does JSON validation work?

The tool parses the input with a standard JSON parser. Valid JSON is formatted. Invalid JSON is reported instead of being changed.

Does formatting change my JSON data?

No. Formatting and minifying change whitespace only. Object values, array order, numbers, booleans, null, and strings stay the same. Object keys are not sorted.

Does this tool sort object keys?

No. Object keys stay in the order produced by standard JSON parsing.

What does Minify do?

Minify parses the current input and returns compact valid JSON with unnecessary whitespace removed. It uses the input, not a previous formatted result.

Why is my JSON invalid?

Common causes include trailing commas, single quotes, comments, and missing brackets or quotes. JSON requires double-quoted names and strings.

Does IngoHub store my JSON?

No. Pasted JSON and local files are processed in your browser for this page session and are not stored or sent to an IngoHub account or API.

Can I upload a JSON file?

Yes. Choose a .json file on your device. It is read in your browser, placed in the input, and formatted or minified only when you press Format JSON or Minify. The file is not uploaded or stored.

Can this tool repair invalid JSON automatically?

No. This v1 reports invalid JSON rather than guessing how to repair it.