Format

YAML Formatter

Paste YAML to validate it and re-emit it with consistent 2-space indentation. Mappings, sequences, nested structures, and quoted scalars are supported. Runs locally.

YAML input

Local

Formatted YAML

FAQ

Common questions

Common YAML: mappings, sequences, nested blocks, scalars, quoted strings, flow collections like [a, b] and {k: v}, block scalars, and comments.
Yes. If the structure or indentation is invalid, it reports the line and reason instead of producing broken output.
Very advanced YAML (anchors, aliases, custom tags, complex multi-document merges) is beyond this browser formatter; it will report what it cannot parse rather than guess.
No. Parsing and formatting happen entirely in your browser.
Private by design

This runs entirely in your browser

No file or text you enter here is uploaded. Encoding and decoding happen on your device using native browser APIs — close the tab and nothing remains on a server.

Install Toolisco Add it to your device for offline, one-tap access.