util2dev —

JSON Formatter, Validator & Beautifier Online

Format, beautify, minify and validate JSON with the exact error line. Escape JSON for Java, C#, Python, PHP, Go and more, and convert JSON ⇄ YAML. Free and private.

How to use

  1. Paste or upload your JSON.
  2. Choose Format, Minify, Escape, Unescape or YAML conversion.
  3. Copy or download the highlighted result.

Frequently asked questions

How do I find the error in invalid JSON?

Click Process: the tool shows the line and column of the first error with a caret under it.

Can I escape JSON to paste into Java or C# code?

Yes. Choose Escape and the target language to get a ready-to-paste string literal.

Is my JSON uploaded?

No. Parsing and formatting happen entirely in your browser.