JSON formatter
Paste JSON to format, minify, and validate it instantly.
Input
Result
Inputs are processed in your browser and are not sent to the server. Privacy by design
How to use
- Format, minify, and inspect JSON from API responses, config files, logs, webhooks, and copied debugging snippets.
- Paste or type only sample data that is safe to inspect.
- Review the result before copying it into code, docs, or tickets.
How it works
The parser checks whether the input is valid JSON, then prints a readable indented version or compact output for copying.
Examples
- Pretty-print an API response before reading nested fields.
- Minify a small config sample for documentation.
- Find a missing comma or quote in a webhook payload.
FAQ
Does it fix invalid JSON automatically?
No, it reports parsing problems so you can correct the source.
Can it parse JavaScript objects?
Only strict JSON is expected.
Should I paste production secrets?
Avoid secrets and private customer data.
Why does trailing comma fail?
JSON does not allow trailing commas.
Debugging workflow
Use the formatter before reading nested API responses, webhook payloads, copied logs, or configuration examples. A readable indentation level makes missing arrays, unexpected null values, and deeply nested keys easier to spot. Minified output is useful when you need a compact value for a test fixture or documentation example. If parsing fails, check the first reported position, then look for trailing commas, single quotes, comments, or copied text around the JSON. Strict JSON is intentionally narrower than JavaScript object syntax.
Security and limits
Large payloads may be easier to inspect in a dedicated editor or debugger.