JSON Formatter

Paste JSON to pretty-print it with 2/4 spaces or tabs, minify it for transport, or sort keys alphabetically for stable diffs.

How to use the JSON Formatter

  1. Paste JSON.
  2. Choose indent and action.
  3. Copy or download.

How it works

Invalid JSON shows the parser error with line and column when available. Nothing leaves your browser, so it is safe for private payloads.

Good to know

Remember JSON requires double-quoted keys and no trailing commas.

Frequently asked questions

Common causes: trailing commas, single quotes, unquoted keys.

Not for objects; arrays keep order.

BillGen provides general-purpose tools; verify important outputs before relying on them.