Skip to content

Formateadores y código

Formateador YAML

Formateador YAML gratuito. Normaliza la indentación, resuelve comillas ambiguas y alinea claves en manifiestos de Kubernetes, configuraciones de CI y cualquier otro YAML. Con el respaldo de Prettier, en el navegador.

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

Nota del editor

Understanding · YAML's two minds.

Este capítulo en profundidad está disponible solo en inglés por el momento. La herramienta de conversión de arriba funciona en tu idioma; el artículo explicativo extenso aún no se ha traducido.

Preguntas frecuentes

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.

La gente también busca

Herramientas relacionadas

More in this room.

Ver todo en Formateadores y código