JSON Formatter

Paste any JSON below to instantly format, validate or minify it. Everything happens locally in your browser — your data never leaves your device.

Read the guide: How to format and validate JSON

Input

0 chars · 0 lines
Drop a .json file to load itUp to 10.0 MB per file

Output

Formatted JSON will appear here.

Processed locally in your browser — nothing is uploaded.

How the JSON Formatter works

  • Your text is parsed using the browser's built-in JSON parser.
  • For formatting, the parsed object is re-serialised with 2-space indentation.
  • For minifying, it is re-serialised with no extra whitespace.
  • If parsing fails, the error position is converted to a line and column so you can find the problem fast.

Examples

Nested object

{"user":{"name":"Ada","age":36,"active":true}}

Array

[1, 2, 3, {"four": 4}]

Useful tips

  • Use Validate first on broken JSON to find the error before formatting.
  • Copy the result with one click, or download it as a .json file.

Frequently asked questions

Is my JSON sent to a server?+

No. All formatting, validation and minifying happens entirely in your browser. Nothing is uploaded or stored.

What does the validator check?+

It parses your input with the standard JSON parser and reports the exact location of any syntax error, including the line and column where parsing failed.

Can I format very large JSON files?+

Yes. Because processing is local, the limit is your device's memory. Very large files may take a moment but will not be uploaded anywhere.

Does it preserve my data?+

No data is saved. When you leave or refresh the page, everything is gone. Use the Download button if you want to keep a copy.

Related guides

Related tools

    base44
    Edit with Base44