What is YAML used for?
YAML (YAML Ain't Markup Language) is a human-readable data serialization format used extensively in DevOps and infrastructure tooling. Kubernetes manifests, Docker Compose files, GitHub Actions workflows, Ansible playbooks, and most CI/CD pipelines (GitLab CI, CircleCI, Travis CI) use YAML for configuration.
Does the formatter support multi-document YAML?
The formatter handles single YAML documents. Multi-document YAML (documents separated by ---) processes the first document only. For multi-document files, split them before formatting.
What is the difference between YAML and JSON?
YAML is a superset of JSON — valid JSON is also valid YAML. YAML adds comments, multiline strings, anchors/aliases for repeated values, and a less verbose syntax. JSON is simpler and more portable for APIs. YAML is better for human-edited config files; JSON is better for machine-generated data.
Can I use this to validate a Kubernetes manifest?
Yes. Paste the manifest and switch to Format YAML mode. If the YAML is malformed, you'll see a specific error message with the line and column. Note that the formatter validates YAML syntax, not Kubernetes schema — it won't catch invalid API versions or missing required fields.
Is my YAML config sent to a server?
No. The YAML Formatter uses the js-yaml library running entirely in your browser. Your configuration data never leaves your machine.