Input JSON

Formatted Output

🌳 JSON Tree View

JSON Formatter

FAQ

Answers to common questions for this tool.

What does the formatter do?

It beautifies JSON with consistent indentation and spacing.

How do I minify JSON?

Click Minify to remove whitespace and shrink the JSON output.

Can I change indentation size?

Yes, adjust the indent control to 2, 4, or custom spaces.

Why is the output empty?

The input might be invalid JSON. Check the error message for details.

Does the formatter reorder keys?

It keeps the order as parsed by the browser, which usually matches your input.

Can I copy the formatted output?

Yes, use the Copy button to copy the output text.

What is Tree View?

A collapsible view that lets you explore JSON structure.

Why does Tree View not show?

Make sure the checkbox is enabled and the JSON is valid.

Can I format arrays only?

Yes, any valid JSON value is supported, including arrays.

Does it fix invalid JSON?

It can attempt a best-effort auto-fix, but you should verify the result.