Great Idea Foundry JSON Toolkit

JSON Formatter and Beautifier

Paste minified or messy JSON and get it neatly indented as you type. Choose 2 spaces, 4 spaces or tabs, sort the keys if you like, then copy or download the result.

How to use the JSON formatter

  1. Paste your JSON, drop a .json file on the editor, or press Sample to try it.
  2. The formatted JSON appears on the right straight away. Pick 2 spaces, 4 spaces or tabs.
  3. Turn on Sort keys to order every object's keys alphabetically.
  4. Copy the result or download it as a .json file.

What you get

  • Every number exactly as written, including long IDs and 1.50
  • Key order, unless you choose to sort keys
  • Unicode text, emoji and escaped characters
  • Duplicate keys, which most formatters silently drop

About the JSON formatter

Formats as you type

There is no Format button to press. Every change to the input is formatted within a moment, and colour highlighting makes keys, strings and numbers easy to tell apart.

Errors you can act on

If the JSON is not valid, you see the line and column, the line is marked in the editor and a hint explains the likely cause. Repair can usually fix it in one click.

Precise with numbers

Most online formatters run your data through JavaScript numbers, which rounds IDs above 9007199254740991 and turns 1.50 into 1.5. This formatter keeps the original text of every number.

Private by design

Formatting runs in your browser, so API responses, tokens and customer data never leave your device.

Frequently asked questions

What is the difference between formatting and validating?
Formatting re-indents valid JSON so it is easy to read. Validating checks that it follows the JSON rules. This page does both at once: invalid JSON shows an error instead of output.
Can I use tabs instead of spaces?
Yes. Choose 2 spaces, 4 spaces or Tab in the options above the output.
Does sorting keys change my data?
Only the order of keys inside objects. Values and the order of array items stay the same, so the data means exactly the same thing.

Related