Guide · Developer Tools / Developer Tools
About JSON Formatter
Validate JSON syntax with line-and-column error reporting, format with 2 spaces, 4 spaces, or tabs, minify whitespace, and optionally sort object keys alphabetically.
When to use this tool
Use when debugging malformed API payloads, comparing JSON configs cleanly, or minifying payloads before transmission.
How to use JSON Formatter
- Paste raw JSON text into the editor.
- Pick indentation (2 spaces, 4 spaces, tabs, or Minify) and toggle recursive key sorting if needed.
- Inspect byte size, copy formatted output, or review exact syntax error line/column numbers.
Supported inputs, options, and outputs
- Input: Standard strict JSON (RFC 8259).
- Output: Pretty-printed or minified JSON string with UTF-8 byte count.
Accuracy notes and limitations
- Requires strict JSON syntax; trailing commas, single quotes, and JavaScript comments (JSON5/JSONC) are flagged as syntax errors.
Privacy and browser processing
Inputs and calculations run inside your browser tab without uploading documents or financial figures to IJM servers. Hosted deployments load cookie-free page-view analytics and Google Fonts.
Read the full IJM Privacy Policy or browse all Developer Tools.