Free online JSON tool with six features: format/prettify (2 or 4-space indent), minify to one line, escape and unescape strings, sort keys alphabetically, extract fields by checkbox (supports nested objects and arrays), and fix unquoted keys or trailing commas. Real-time syntax validation, one-click copy, all processing done locally — no data uploaded.
Indent
Input
0 lines / 0 chars
Output
Result will appear here...
Format: Pretty-print JSON with indentation
Minify: Strip whitespace for minimal JSON
Escape: Convert JSON to an embeddable escaped string
Unescape: Restore an escaped JSON string
Sort Keys: Recursively sort all object keys alphabetically
Extract Fields: Check fields to keep; unchecked fields are removed from the output
Fix Keys: Quote unquoted keys (e.g. {name: 1} → {"name": 1}) to produce valid JSON