YAML Pretty Print

Turn messy or minified YAML into readable, consistently indented output. Set indent size, line width, and optional key sorting. All processing runs in your browser.

Format options
Source YAML
Formatted output

What this tool does

Paste unformatted or minified YAML into the source panel. Click Format to apply consistent indentation, optional key sorting, and line wrapping. The result appears in the output panel. You can copy the result, download it as a file, or run Validate to confirm the YAML is valid. Minify reduces the formatted YAML to a compact form.

Use this for config files, CI/CD pipelines, or API responses where readable YAML matters. Indent and line width options help match your project style.

Related YAML tools