YAML Formatter

Catch indentation mistakes before they break a deploy, and keep YAML files tidy and consistent.

How to use the YAML Formatter

  1. Add your text, file or details in the tool above.
  2. Adjust the settings to get the result you want.
  3. Copy or download your result. Nothing is uploaded.

What you can use it for

  • Check Kubernetes and Compose files
  • Fix CI pipeline YAML
  • Standardise Ansible playbooks

Private by design

The YAML Formatter runs entirely in your browser. Your text and files are never uploaded or stored on a server, so it is safe for work documents and personal information. It is free, with no sign-up and no limits on how often you use it.

Frequently asked questions

Are comments kept?

Yes. Formatting keeps your comments.

Why does my YAML fail?

The most common causes are tabs instead of spaces and inconsistent indentation.