Tools

JSON & YAML

Input — JSON or YAML
Output

About JSON & YAML Formatter

Paste JSON or YAML and it's validated, pretty-printed, and rendered as a collapsible tree instantly. Switch the output format between JSON and YAML to convert between them, minify JSON down to one line, or sort keys alphabetically. Parsing happens entirely in your browser — nothing is uploaded anywhere.

Frequently asked questions

Does it detect JSON vs YAML automatically?

Yes. It tries JSON first, then YAML — whichever parses successfully is used, and the status pill shows which one it detected. If neither parses, both error messages are shown so you can see what's wrong.

Can I convert JSON to YAML or back?

Yes — the JSON/YAML toggle above the output re-serializes whatever you pasted into the other format, regardless of which one you typed in.

Is there a size limit?

No hard limit on formatting, but the tree view switches itself off above a few thousand nodes to keep the page responsive — use the Formatted view for very large documents.

Does anything get sent to a server?

No. Parsing, formatting, and conversion all happen entirely in your browser.

Feedback Support