Toolyard

JSON Formatter

How to format JSON

  1. Paste your JSON into the Input box.
  2. Choose an indent, or Minify to remove all whitespace. Tick Sort keys to order object keys alphabetically.
  3. If the JSON is invalid, the line and column of the error are shown. Otherwise, Copy output.

Frequently asked questions

Is my JSON uploaded?

No. The text is processed inside your browser and is never sent anywhere.

Why is my JSON invalid?

The most common causes are a trailing comma after the last item, single quotes instead of double quotes, and keys without quotes.

More developer tools

Guides