Home›Developer Tools›JSON Formatter & Validator Online

JSON Formatter

Beautify, minify or validate JSON — with the exact error position when it breaks.

Also searched as: json beautifier · json validator · json viewer

Format, validate and minify JSON

Paste any JSON — an API response, config file or a line from a log — and tap Beautify for indented, readable output, Minify to strip whitespace, or Validate to find the exact position of a syntax error (a missing comma, a trailing comma, single quotes, or an unquoted key). The parser is your browser's native JSON.parse, so what passes here passes everywhere.

Common JSON mistakes

Related: XML formatter, Base64, URL encoder.

Frequently asked questions

Is my JSON sent to a server?

No. Formatting and validation run entirely in your browser.

Why does it say 'Unexpected token'?

The parser hit something not allowed at that position — usually a trailing comma, single quotes or a missing bracket. The message shows the line and column.

Can it handle large files?

Yes, several megabytes are fine; very large files may take a second or two.

More free tools

XML FormatterPretty-print and validate XMLDeveloper ToolsBase64 Encode / DecodeText ↔ Base64, UTF-8 safeDeveloper ToolsURL Encode / DecodePercent-encode or decode any URL or query stringDeveloper ToolsHEX to RGB ConverterHEX ↔ RGB ↔ HSL with a live colour previewDeveloper ToolsRegex TesterTest JavaScript regular expressions with live matchesDeveloper ToolsWord to HTML ConverterPaste from Word or Docs, get clean HTMLDeveloper Tools