Format & Minify
JSON Formatter
Uses the browser's native JSON API to format and minify, with optional key sorting and custom indentation. Everything runs locally.
Format & Minify
Formatting changes whitespace and indentation only, preserving key order; sorting recursively reorders keys at every level (including objects inside arrays) and fixes indentation at two spaces. Use formatting to see structure, sorting to remove "order-only" noise.
| JSON Formatter | JSON Key Sorter | |
|---|---|---|
| Touches indentation | Yes, width and tabs selectable | Yes, fixed at two spaces |
| Changes key order | No, preserved as-is | Yes, recursively through objects and arrays |
| Output already formatted | Yes | Yes — sorting emits indented JSON |
| Typical use | Expand a minified one-liner | Check whether two responses differ only in field order |
Uses the browser's native JSON API to format and minify, with optional key sorting and custom indentation. Everything runs locally.
Recursively sorts every JSON key in ascending order, including nested objects and arrays. Everything runs locally.
After sorting you do not format again — the sorter already emits indented JSON. Formatting, in the other direction, never removes order noise.