YAML Validator

Validate YAML syntax and explore the parsed structure. Shows error line numbers, parse tree, and JSON conversion.

YAML input✓ Valid YAML
Parsed tree
name: "Yurlie"
version: "1.0.0"
server:
host: "localhost"
port: 8080
debug: false
database:
driver: "postgres"
host: "db"
port: 5432
name: "yurlie_db"
features: [
- "network-tools"
- "json-tools"
- "developer-tools"
]
config:
timeout: 30
max_connections: 100
cors_origins: [
- "https://yurlie.com"
- "http://localhost:3000"
]
Lines21
Root keys6
JSON size466 chars

What is YAML?

YAML (YAML Ain't Markup Language) is a human-readable data serialization format. It is commonly used for configuration files in DevOps and cloud-native tools: Docker Compose, Kubernetes manifests, Ansible playbooks, GitHub Actions workflows, and CI/CD pipelines (GitLab CI, CircleCI).

Common YAML Pitfalls

  • Tabs vs spaces: YAML only allows spaces for indentation. A single tab character will cause a parse error.
  • Unquoted strings: Values like yes, no, on, off are interpreted as booleans. Quote them if you mean the string literal.
  • Colons in values: A colon followed by a space (: ) starts a mapping. Use quotes for values containing colons, like "http://example.com".
  • Multi-line strings: Use | for literal blocks (preserves newlines) or > for folded blocks (joins lines with spaces).

YAML to JSON Conversion

Since YAML is a superset of JSON, every YAML document can be converted to JSON. This is useful when you need to feed YAML config to tools that only accept JSON, or when debugging complex nested structures in a more explicit format.