Text & code / LING.TOOLS
JSON formatter
Validate, pretty-print or minify JSON, optionally sort object keys and locate syntax errors in pasted data.
Result
Ready when you are
Set up your input and run the tool. Your result will appear right here.
Private · Instant · LocalGUIDE & CONTEXT
About this tool
Turn compact API responses into readable JSON or remove unnecessary whitespace before sharing. Key sorting makes object-heavy data easier to compare, while array order stays meaningful and is preserved. Standard JSON does not support comments, trailing commas, undefined or non-finite numbers.
How to use it
- Paste a complete JSON object, array or scalar value.
- Choose formatted or compact output, indentation and optional key sorting.
- Run the formatter. If parsing fails, use the reported error location to repair the input.
Example
Input {"b":2,"a":1} becomes {"a":1,"b":2} when compact output and key sorting are selected.