Skip to content

YAML 格式化工具

免费的 YAML 格式化工具。规范缩进、解决模糊引用,并对齐 Kubernetes 清单、CI 配置以及其他 YAML 文件中的键。由 Prettier 提供支持,在浏览器中运行。

Runs in your browserUpdated Apr 26, 2026

YAML Input

Output

常见问题

Does it handle anchors and aliases?

Yes — Prettier's YAML parser understands *anchors, &aliases, block scalars, flow-style sequences and maps, all of it. The output round-trips cleanly.

Will it change my values?

Only whitespace and quoting. If a value was ambiguous (like unquoted `yes` being coerced to boolean), it stays as-written — Prettier won't silently re-parse scalars.

Is this a linter?

No — it's a formatter. For lint rules (required keys, schema validation) use yamllint or a Kubernetes-specific linter.

Safe for Kubernetes manifests?

Yes — tested on Deployments, Services, ConfigMaps, Helm templates. Multi-document files (--- separators) round-trip cleanly.

大家也在搜索