YAML formatter

Paste YAML to create a clean, readable block layout.

Format one safe YAML document with consistent spacing.

Input

Result

About this tool

The YAML formatter parses one YAML document and writes it back with consistent indentation and block-style lists and maps. Use it to tidy a configuration file, make a deployment example easier to read, or catch a syntax problem before saving changes. Duplicate keys, aliases, custom object tags, recursive data, and excessive nesting are rejected. Those limits keep the formatter predictable and prevent unsafe YAML features from being loaded.