← The Code Deck
/ deck / lab / json

JSON formatter & validator.

Pretty-print, minify, validate, or convert JSON to YAML or XML. Errors are pinpointed by line and column.

Paste or type JSON above

  
Try an example: simple object array of objects nested has an error

How it works

Validation uses native JSON.parse; pretty-printing and minification use native JSON.stringify. YAML conversion uses js-yaml, loaded once from a CDN. XML conversion is a small built-in serializer. The four output tabs share one parser pass — flipping between them doesn't re-parse, so output is instant even on large payloads.

Pure browser, no server. The pasted JSON never leaves the page.

Common gotchas

Planned

v0.1 · 2026