Skip to main content

JSON Formatter

How to use this tool

  1. Paste your JSON into the input box.
  2. Pick an indentation (2 spaces, 4 spaces or tab).
  3. Press Format to beautify, or Minify to remove whitespace. Invalid JSON shows where the problem is.

Examples

Input
{"name":"Ladumor","tags":["web","api"]}
Common error
A trailing comma after the last item is not valid JSON.

Frequently asked questions

Does this tool store my JSON?

No. Parsing happens in your browser and nothing is sent anywhere.

Is there a size limit?

Input is limited to 1,000,000 characters to keep the page responsive.

Does it accept comments or single quotes?

No. It validates strict JSON, so comments, single quotes and trailing commas are reported as errors.

All tools