JSON Formatter & Validator

Paste an API response or request body to pretty-print it, minify it, sort its keys, or find the exact spot where it is invalid.

๐Ÿ”’ Runs entirely in your browser. Nothing you enter is sent to a server.

How testers use a JSON formatter

JSON rules people often forget

Frequently asked questions

Is my JSON uploaded anywhere?

No. Formatting and validation use the JSON parser built into your browser, so API responses with tokens or customer data never leave your machine.

Why does my JSON fail validation?

The most common causes are a trailing comma after the last item, single quotes instead of double quotes, keys without quotes, and comments. JSON allows none of these. The error message shows the line and column where parsing stopped.

What does "Sort keys" do?

It orders every object key alphabetically, at every level. This makes two API responses much easier to compare in a diff tool, because the same fields line up.