Valid YAML
name: webapp
replicas: 3
ports:
- 80
- 443The YAML Validator checks whether a document is valid YAML and reports parse errors with line information so you can pinpoint and fix them. Because YAML relies on indentation, it is easy to introduce subtle errors like a stray tab, inconsistent spacing, an unclosed quote, or a misaligned list item, and the validator surfaces exactly where parsing failed. YAML (YAML Ain't Markup Language) is a human-readable serialization format widely used for CI configuration, Kubernetes manifests, and application settings.
Validation runs entirely in your browser, so your YAML is never uploaded or stored on a server, keeping configuration with sensitive values safe. Paste a document to instantly confirm it is well-formed or get a clear message about the offending line. This helps catch indentation mistakes and quoting issues before a pipeline or deployment tool rejects them, saving a round-trip through CI just to discover a formatting typo.
The main file is the entry point for each run.
Use the Input panel to pipe standard input to your program when it needs data.
Run sends your code to a fresh hosted runtime and streams the result into the output panel.
Your draft stays in this browser, and Share creates a separate snapshot link.
name: webapp
replicas: 3
ports:
- 80
- 443name: webapp
ports:
- 80
# Error: tab characters are not allowed for indentationserver:
host: localhost
port: 5432
# Error: inconsistent indentation in mappingtitle: "Hello world
# Error: unexpected end of stream, missing closing quoteservice:
name: api
env: [dev, prod]
limits: { cpu: 2, mem: 512Mi }
# Valid: nested mapping plus flow-style sequence and mappingname:webapp
port: 8080
# Error: a mapping needs a space after the colon, e.g. 'name: webapp'---
description: |
line one
line two
---
count: 2
# Valid: '---' separates documents; '|' keeps newlines in the block scalardefaults: &defaults
retries: 3
timeout: 30
prod:
<<: *defaults
timeout: 60
# Valid: '&' defines an anchor, '*' references it, '<<' merges the mapname: a
name: b
# Error: duplicate key 'name' in the same mapping is not allowedThe editor uses Monaco, the engine behind VS Code, with language-aware editing tools and familiar keyboard controls.
Paste a YAML document into the validator
It parses the YAML and reports the offending line on failure
Fix the flagged line and re-check until it is well-formed
Stray tabs and inconsistent indentation
Misaligned list items and mapping keys
Unclosed quotes and quoting mistakes
Validation runs entirely in your browser
Config with sensitive values is never uploaded or stored on a server
Checking CI configs, Kubernetes manifests, and app settings
Avoiding a round-trip through CI just to find a formatting typo
No input to validate