fmtly
JSON Formatter
Tree

Paste JSON to see tree view

Empty

JSON Formatter

Parse and display JSON with configurable indentation — 2 spaces, 4 spaces, or tabs. Real-time parsing with precise error location shown in the editor gutter. Tree view alongside the formatted output.

Use Cases

  • Beautify minified API responses for debugging
  • Format JSON config files before committing to version control
  • Pretty-print JSON logs for readability
  • Prepare JSON data for documentation or code reviews
  • Quickly inspect the structure of an unfamiliar JSON payload

Frequently Asked Questions

What is JSON formatting?

JSON formatting (also called beautifying or pretty-printing) adds consistent indentation and line breaks to compressed or unformatted JSON, making it easier to read and debug.

Is my data sent to a server?

No. All processing happens entirely in your browser. Your JSON never leaves your device.

What indentation options are available?

You can choose between 2 spaces, 4 spaces, or tab indentation. The default is 2 spaces.

Can this tool fix invalid JSON?

This tool reports syntax errors with exact line and column numbers. For automatic repair of common issues like trailing commas and unquoted keys, use the JSON Repair tool.