Input
Output
Ready

How to use the JSON Formatter

Paste a JSON object, array, string, number, boolean, or null into the input panel. Click Format to pretty-print it with two spaces, four spaces, or tabs. Click Minify to remove indentation and produce compact JSON for transport or storage.

The validator uses the browser JSON parser and reports readable syntax hints. This is useful when debugging API responses, webhook payloads, configuration files, package metadata, and copied JSON from logs.

Common JSON problems

JSON requires double-quoted property names, no trailing commas, no comments, and valid escape sequences. If you paste JavaScript object syntax, JSONC, or log output with extra text around it, clean that up before validating.

FAQ

Does this require an upload?

No. Formatting and validation are handled by JavaScript in the page.

Can I format JSON with comments?

No. Standard JSON does not support comments. Remove JSONC comments before validating.

Why did my JSON change order?

The formatter preserves the key order returned by the browser parser. It does not sort keys alphabetically.