Format, validate, and convert YAML - 100% in your browser
Format, YAML→JSON, JSON→YAML, or Compare
Paste your YAML or JSON input
Indent, quotes, sort keys
Copy formatted output
Standardize indentation (2, 4, or 8 spaces), quote style, and key ordering across your YAML configs.
Real-time validation with clear error messages and line numbers to help you debug YAML issues.
Losslessly convert between YAML and JSON. Useful for APIs or debugging complex structures.
Side-by-side diff with added (green), removed (red), and changed (yellow) values highlighted.
"bad indentation" or "expected <block end>"
Solution: Use consistent spaces (not tabs). All items at the same level must have the same indentation. Child items must be indented more than parents.
"mapping values are not allowed here"
Solution: YAML requires a space after colons. Use key: value not key:value.
"could not find expected ':'" or unexpected characters
Solution: Quote strings containing special characters like :, @, #, *, &. Use 'single quotes' or "double quotes".
| Option | Description | When to Use |
|---|---|---|
| Indent (2/4/8) | Number of spaces for each nesting level | 2 is standard for K8s; 4 for readability |
| Quote Style | Single (') or double (") quotes for strings | Single is common; double for special chars |
| Sort Keys | Alphabetically order all keys | For consistent, diff-friendly output |
| Force Quotes | Quote all string values | When values might be misinterpreted |
This formatter runs entirely in your browser. Your YAML configs—including Kubernetes secrets, database credentials, and API keys—are never sent to any server. Verify by checking your browser's Network tab, or use the tool offline after loading.