Skip to content

Formatadores e Código

Formatador YAML

Formatador YAML gratuito. Normalize a indentação, resolva as aspas ambíguas e alinhe as chaves em manifestos Kubernetes, configurações de CI e qualquer outra coisa YAML. Com suporte Prettier, no navegador.

Runs in your browser
YAML formatter & validator
lines: 0chars: 0size: 0 B
YAML · UTF-8 · 2-space indent

Nota do editor

Understanding · YAML's two minds.

Este capítulo aprofundado está disponível apenas em inglês no momento. A ferramenta de conversão acima funciona no seu idioma; o artigo explicativo longo ainda não foi traduzido.

Perguntas frequentes

Quick answers.

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.

As pessoas também pesquisam por

Ferramentas relacionadas

More in this room.

Ver tudo em Formatadores e Código