JSON Formatter

Report a problem

About JSON Formatter

Format, minify, validate and compare JSON without rounding numeric literals.

Paste JSON, choose 2 spaces, 4 spaces or tabs, then format it. Diff compares two documents; sample generators are separate from formatting.

Copy or download the current formatted document for an API fixture or configuration review.

The calculation or rendering runs in this browser tab. Copy, download and share actions make the chosen output available outside this tab.

Worked example

Input / settings
{"id":9007199254740993,"n":1.2300,"zero":-0}
Action
Format, then minify
Result
{"id":9007199254740993,"n":1.2300,"zero":-0}

Scope and limits

  • JSON syntax is required for formatting; comments and trailing commas fail. Large numbers, decimal spelling, exponents and -0 remain intact.

Frequently asked questions

Does the tool fetch anything?
Formatting and comparison process the text in the browser. Fetching a JSON Schema by URL sends a request to that address; that server sees the URL and ordinary request metadata.

For account, sync, advertising and analytics data flows, see the Privacy Policy.