YAMLClean YAML Linter
YAML Cleaner 100% CLIENT-SIDE
Raw YAML Input
Cleaned Output

More from YAMLClean

Guides

All tools →All 2 guides →

Frequently Asked Questions

Does YAMLClean send my config files to a server?

No. Cleaning and linting run in your browser, so Kubernetes manifests and CI configs with secrets in them never leave your machine.

Why does 027 parse as a number I did not expect?

YAML 1.1 treats a leading zero as octal, so 027 becomes 23. Quote values you mean as strings, and remember the same trap applies to version-like strings such as 1.10.

Does YAMLClean validate my YAML?

It lints rather than parses. The linter flags tabs in indentation, duplicate keys, a missing space after the colon, and unquoted values that YAML 1.1 turns into booleans, octal numbers or shortened floats. It will not catch every syntax error, so keep yamllint in CI for full coverage.

🧭 Pro Tips & Gotchas

What this does

YAML gotchas that are not cosmetic

For real validation

yamllint (lint rules, line numbers), python -c "import sys,yaml; yaml.safe_load(sys.stdin)" (parse check — and use safe_load, never yaml.load, which can execute arbitrary Python objects), or yq eval to see what the parser actually produced. If a value looks wrong in yq output, it is a quoting problem, not a whitespace one.

Developer Sponsor / Partner
Copied to clipboard!