Ulvixor

Search tools

Search all of Ulvixor's tools by name or keyword.

YAML Validator

Paste a YAML document and instantly validate its syntax with js-yaml, the same library many developer tools rely on. If it's valid, you'll see the parsed structure as JSON to confirm it reads the way you expect.

How it works

  1. Paste or type your YAML into the input panel.
  2. The validator tries to parse the document with js-yaml.
  3. If it's valid, the resulting structure is shown as readable JSON, so you can confirm the types and hierarchy are what you expected.
  4. If there's an error, js-yaml's message is shown, including line and column when available.
  5. Copy the resulting JSON or download it as a .json file.

Use cases

  • Validate CI/CD config files (GitHub Actions, GitLab CI, Docker Compose) before committing.
  • Debug indentation errors, the most common cause of invalid YAML.
  • Confirm how data types (numbers, booleans, null) are interpreted in a YAML file.
  • Mentally translate YAML into its JSON equivalent to understand its structure.

Common mistakes

  • Mezclar espacios y tabulaciones para la indentación.
    YAML solo permite espacios. Un tabulador causa un error de sintaxis que a veces es difícil de ver a simple vista; el validador te muestra la línea exacta.
  • Escribir valores como yes, no, on, off esperando que se interpreten como texto.
    En YAML estos valores suelen interpretarse como booleanos. Si necesitás el texto literal, envolvelo entre comillas: "yes".
  • Usar indentación inconsistente entre elementos del mismo nivel.
    Todos los elementos de un mismo nivel deben tener exactamente la misma cantidad de espacios de indentación.

Frequently asked questions

Alternatives

Herramientas de línea de comandos como yamllint son útiles para validar archivos completos dentro de un pipeline de CI. Esta herramienta es más rápida para revisar un fragmento puntual y ver de inmediato cómo se interpreta como JSON.