JSON Formatter

Beautify · validate · query · tree · types · convert

About this tool

What does the JSON formatter do?
Pretty-prints minified or compact JSON with configurable indentation (2 spaces, 4 spaces, or tab), validates syntax and reports errors with line numbers, and can sort keys alphabetically.
Is my JSON sent anywhere?
No. Formatting runs entirely in your browser. Paste sensitive API responses, tokens, or configuration without concern.
Can it convert JSON to other formats?
Yes. Convert JSON to YAML, CSV (for flat arrays of objects), or TypeScript interface definitions.
Can it minify JSON?
Yes. Use the Minify tab to compress formatted JSON into a single line — useful before embedding in environment variables or HTTP requests.
Does it validate JSON Schema?
No — it validates that the input is syntactically valid JSON, not that it conforms to a specific schema.