JSON VALIDATOR AND FORMATTER

Validate, format,
and minify JSON.

Check syntax, add indentation, create a one-line version, and inspect the root type, keys, array items, depth, and UTF-8 size.

Enter any standard JSON value, including an object, array, string, number, boolean, or null.

Formatted result
Root type
Total keys
Array items
Maximum depth
UTF-8 size

HOW TO USE

Format in three steps

  1. Paste a JSON value into the input.
  2. Choose two or four spaces for indentation.
  3. Format, minify, or copy the result.

EXAMPLES

Common uses

Inspect an API response

Indent a compact response so nested keys are easier to scan.

Minify configuration

Turn formatted JSON into a single line before copying it into a setting.

Summarize structure

Review the root type, total keys, array items, depth, and UTF-8 byte size.

Local processing

No external API is needed to parse or format the input.

Standard browser JavaScript performs all operations on this device.

How validation works

The tool parses standard JSON in browser memory and serializes the same data structure again.

Only standard JSON is accepted

Keys and strings require double quotes. Comments, single quotes, trailing commas, JSON5, and JavaScript object syntax are not supported.

Formatting does not change values

Prettifying and minifying only change whitespace around a successfully parsed structure.

Protect sensitive and large data

Input is not sent by this page, but screen sharing and extensions are separate risks. Very large JSON can be slow on limited devices.