Pigmenta Tools

JSON Formatter

Beautify, validate or minify your JSON without changing a single value.

How to use it

  1. Paste your JSON into the box.
  2. Choose the style: 2 or 4 spaces, tabs or minified.
  3. Tap “Format JSON” and copy or download the result.

What it accepts

  • Type or paste the text
  • It runs in your browser.
  • Free with your 5 daily PigmentaLab credits; after that, 1 credit per file.

FAQ

Does it change any of my data?

No. Only spaces and line breaks change. Numbers stay exactly as they are, even very long ones, and so do strings, keys and their order.

How do I find the error?

If the JSON is invalid, we tell you what's wrong (an extra comma, an unclosed quote) and the line and column where it is, with the snippet of text around it.

Does it accept comments or trailing commas?

No, because standard JSON doesn't allow them: we show you where they are so you can remove them.

Does it work for XML or YAML?

Not yet: for now it formats and validates JSON only.

Similar tools

All tools

Pigmenta Tools is part of PigmentaLab: print-ready designs, videos with Clips and everything else.