YAML Formatter

Re-indent YAML and make quotes and lists consistent.

YAML Formatter

.yml · .yaml

Paste text or open a file to see the result.

What it does

Re-indents YAML with the same number of spaces on every level and makes quotes and list markers consistent. Useful for Docker Compose, Kubernetes and CI files, where a wrong indent changes the meaning. You get clean YAML with the same data.

About the .yml format

.YML file extension

.yml YAML Document

Developer Files

File Type
YAML Document
Developer
Clark Evans, Ingy döt Net, Oren Ben-Kiki
MIME
application/yaml

YML file extension is a text-based data serialization format for representing hierarchical, structured data based on a set of rules. It is typically used as a configuration or settings file for software applications or as a data exchange format between different programs, such as a spreadsheet and an operating system.

Also works with

YAML Formatter questions

How do I use the YAML Formatter?

Paste the text into the Input box or open a file, set the options, then copy or download the result.

Does renaming a file to .yml change its format?

No. The extension only tells programs what to expect, and the content of the file stays the same. To change the format, convert the file. The .yml page lists programs and converters for it.