JSON formatter

See examples

API debugging

Make compact JSON responses easier to read while testing an API.

Config cleanup

Validate a JSON config before copying it into a project.

About this helper

The JSON formatter parses your input using the browser's native JSON parser. Valid JSON can be pretty-printed with indentation or minified into a compact string. Invalid JSON shows a syntax message so you can fix it quickly.

Is my JSON sent to a server?

No. Formatting and validation happen locally in your browser.

Can it fix invalid JSON automatically?

No. It reports syntax errors, but it does not guess or rewrite malformed data.