Format and indent a YAML file online
Indent and normalize a YAML file (beautify), right in your browser.
🔒 100% client-side — no data sent
Paste your messy YAML and get a cleanly formatted, readable version in one click. Formatting happens 100% in your browser, so your configuration files stay completely private. Ideal for tidying up a docker-compose, a Kubernetes manifest or a CI pipeline.
What is it for?
- ▸ Re-indent a docker-compose.yml that has become unreadable
- ▸ Clean up a Kubernetes manifest before committing it
- ▸ Standardize indentation in a GitLab CI or GitHub Actions pipeline
- ▸ Visually check the structure of a YAML configuration file
FAQ
How do I properly indent a YAML file?
Paste your content into the tool: it automatically realigns the indentation with consistent spaces and formats the structure. YAML forbids tabs, so the tool guarantees valid space-based indentation.
Does the tool detect YAML syntax errors?
To be formatted, the YAML must be parseable; if the syntax is invalid, formatting fails and points out the problem. This helps you quickly spot an indentation or structure error.
What is the difference between 2 and 4 spaces of indentation?
Both are valid in YAML, but two spaces is the most widespread convention, notably for Docker and Kubernetes. What matters is staying consistent throughout the file, which the tool applies automatically.