Muhawwil

Free text and developer tools that run in your browser.

JSON formatter and validator: format, minify and check JSON

Paste JSON to format it so it is easy to read, minify it to one line, or check that it is valid. If there is a mistake, you see the message and where it is.

Your text stays on your device. Nothing is uploaded.

How to use it

  1. Paste your JSON in the box.
  2. Press Format or Minify, and choose the indent if you like.
  3. Copy the result, or fix the error shown under the box.

Questions

What does "Invalid JSON" mean?

The text breaks a JSON rule. Common causes are a missing or extra comma, single quotes instead of double quotes, or keys without quotes. The message shows the line and column when the browser reports them.

What is the difference between Format and Minify?

Format adds line breaks and indentation so people can read it. Minify removes all optional spaces so the file is as small as possible.

Is my JSON sent to a server?

No. It is parsed by your own browser, so API responses and config files stay on your device.

About this tool: JSON formatter

Use it to read an API response, tidy a configuration file before committing it, or shrink JSON before sending it. "Sort keys" orders every object alphabetically, which makes two JSON files easier to compare.

More tools

Base64 encode / decodeTurn text into Base64 or decode Base64 back into text.URL encode / decodeEncode text so it is safe inside a link, or decode a long percent-encoded link back into readable words.Regex testerWrite a regular expression and test it against your text.Password generatorCreate a strong random password in one click.