JSON Editor

Clean up and re-indent JSON as you edit it.

Everything is processed in your browser. Nothing you paste is uploaded or stored.

Advertisement

About these formats

This is a working surface for JSON: paste something messy, edit it, and get consistently indented output back. Invalid JSON is reported as you type, so mistakes surface immediately rather than when you paste the result somewhere else.

How to use this tool

  1. Paste or type JSON on the left.
  2. The formatted version updates on the right as you edit.
  3. Copy the cleaned-up result when you are done.

Frequently asked questions

Is my JSON sent to a server?

No. Everything happens in your browser. Nothing you paste is uploaded, logged or stored, which matters when the document contains keys, tokens or personal data.

Why is my JSON reported as invalid?

The most common causes are trailing commas, single quotes instead of double quotes around keys and strings, and unescaped line breaks inside a string. The error message gives the line and column of the first problem.

Does it change my data?

No. The document is parsed and re-serialised, so only whitespace changes. Key order is preserved and values are untouched.

Can it handle large documents?

Yes, within your browser's memory. Documents of a few megabytes are fine; extremely large files may make the page pause briefly while it parses.

Related tools

Advertisement