JSON formatter and validator

Pretty-print JSON with indentation, validate it with the exact line and column of any error, sort keys or minify it to one line.

How to use

Paste JSON and it’s formatted with indentation right away. If there’s an error, you’ll see the exact line and column. Modes:

“Repair” fixes “almost JSON” — config files, JavaScript objects, Python output: it removes comments and trailing commas, turns single quotes into double quotes, quotes bare keys and converts True/False/None to true/false/null. You get strict, formatted JSON.

Your data is processed in the browser and never sent anywhere, so it’s safe to check JSON with tokens or personal data.

Common JSON errors

FAQ

Why isn’t é written as \u00e9? JSON allows this character to be written directly; the Unicode escape is optional.

Is there a size limit? Processing depends on your device’s available memory and performance. Large documents can take longer.

Can numbers change? Very large integers and decimals with many digits can: the browser stores JSON numbers with about 15–17 significant digits. For example, 9007199254740993 becomes 9007199254740992. If your data has IDs or amounts like that, keep them as strings.

To encode JSON for a URL or as Base64, use the URL encoder or Base64.