Developer

JSON formatter

Pretty-print and minify JSON. Optionally sort keys for stable, comparable output.

Enter JSON, Indentation, and Sort object keys to calculate Pretty and Minified. Results update instantly as you type. Try an example preset to sanity-check the tool.

Inputs

Paste valid JSON (object, array, string, number, true/false, or null).
Sort keys recursively to get stable diffs (useful for reviews and debugging).
Examples
About this tool
  • Inputs: JSON, Indentation, Sort object keys
  • Outputs: Pretty, Minified
References
  • RFC 8259 (The JavaScript Object Notation (JSON) Data Interchange Format)
Share & embed
Share link
Embed
Need help or found an issue?
Report an issue Suggest a tool