All code tools

JSON Formatter

Format, check or minify JSON. Nothing is uploaded.

Tidy and check JSON

JSON is the format most APIs and config files use. Formatting adds indentation so it's easy to read. Minifying removes spaces to make it smaller. Checking reports the exact line of any mistake, such as a missing comma.

Questions

Why does my JSON show an error?

Common causes are a trailing comma, single quotes instead of double quotes, or a comment, which JSON doesn't allow.

Is my JSON uploaded?

No. Formatting happens in your browser. Be careful with real API keys or private data anyway, and avoid pasting them into any online tool.