Esta página ainda não foi traduzida para o português, por isso aparece em inglês.

YAML Validator & Linter

Paste a Docker Compose file, Kubernetes manifest, GitHub Actions workflow or any YAML to pinpoint errors, catch common pitfalls and get a cleanly formatted version.

Atualizado em
Open file

Seus dados nunca saem do seu computador. Todo o processamento acontece localmente no navegador.

Como usar: YAML Validator

  1. Paste YAML or open a .yml / .yaml file.
  2. Errors show the line, column and a pointer to the exact spot.
  3. Review the lint warnings for tabs, trailing spaces and YAML 1.1 pitfalls.
  4. Copy the formatted YAML or the JSON equivalent.

Why YAML breaks so easily

YAML uses indentation for structure, so a single misplaced space changes the meaning or makes the file invalid. The most common errors:

ErrorCause
bad indentation of a mapping entryA key is indented differently from its siblings
found a tab characterYAML forbids tabs for indentation — use spaces
duplicated mapping keyThe same key appears twice in one object; most parsers silently keep the last one
incomplete explicit mapping pair / unexpected endAn unclosed quote, bracket or a colon inside an unquoted string
end of the stream or a document separator is expectedContent at the wrong indentation after a list or block

YAML 1.1 vs 1.2 gotchas

Many tools (PyYAML, older Ruby and Go libraries) still follow YAML 1.1, where yes, no, on, off are booleans and 012 is octal — the famous “Norway problem” where the country code NO becomes false. YAML 1.2 treats these as strings. The linter flags such values so you can quote them and get the same result everywhere.

Multi-document files

Kubernetes manifests often combine several resources separated by ---. Each document is validated and shown in the JSON output as an array.

Validating meaning, not just syntax

Valid YAML can still be a wrong configuration. For structure checks against a schema, convert to JSON and use the JSON Schema validator; for API specs, the OpenAPI validator. Build new files with the Docker Compose generator or GitHub Actions generator, and convert formats with YAML to JSON.

Também pesquisado como: yaml lint, yaml checker, validate yaml, yaml syntax check, yamllint online, yaml formatter, kubernetes yaml validator.

Ferramentas que combinam com: YAML Validator

  • JSON to YAML — Paste JSON and get clean YAML for Kubernetes manifests, Docker Compose, GitHub Actions or any config file.
  • Kubernetes YAML Generator — Fill in your app’s name, image and port and get production-ready Kubernetes YAML: a Deployment with probes, resource limits and a hardened security context, plus the Service, Ingress with TLS, ConfigMap, Secret and HorizontalPodAutoscaler you tick — in one file ready for kubectl apply.
  • systemd Service Generator — Run your app as a proper Linux service that starts on boot and restarts when it crashes.
  • GitLab CI Generator — Pick your stack and get a working .gitlab-ci.yml: install with caching, lint and test jobs, a build with artifacts, a Docker image pushed to the GitLab registry, or a GitLab Pages deploy — with rules that run pipelines for merge requests and your default branch without duplicates.

Perguntas frequentes

Why does my YAML say “bad indentation”?
A key or list item is indented with a different number of spaces than its siblings. Align it with the other entries at the same level; the pointer shows the column.
Can YAML use tabs?
No. The YAML specification forbids tabs for indentation. Replace them with spaces (2 is the common convention).
Does it validate Kubernetes or Docker Compose rules?
It checks YAML syntax and common pitfalls, not the meaning of each field. Use the tool’s JSON output with a JSON Schema for structural validation.
Is my YAML uploaded?
No. Everything runs in your browser.
Posso instalar o YAML Validator como um aplicativo da web e usá-lo offline?
Sim. O YAML Validator é um aplicativo da web instalável (PWA) — instalado a partir do seu navegador, não baixado de uma loja de aplicativos. Clique em “Instalar aplicativo” na parte superior desta página no Chrome ou no Edge (Windows, macOS, Linux, ChromeOS) ou, no Android, use “Compartilhar” → “Adicionar à tela inicial” no iPhone e no iPad, ou “Arquivo” → “Adicionar ao Dock” no Safari 17+ em um Mac. Em seguida, ela se abre em uma janela própria com seu próprio ícone e, como é executada inteiramente no seu navegador, continua funcionando offline. O Firefox no desktop não permite a instalação de aplicativos da web. Como funciona a instalação.

Ferramentas relacionadas