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?
Yes. Documents separated by --- are formatted one by one and written back with --- between them, so a multi-resource Kubernetes manifest keeps every resource. YAML to JSON turns several documents into a JSON array with one element per document. Empty documents, such as a trailing ---, are dropped.
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 js-yaml in your browser, so your configuration is not sent to a ByteKiln server. If you press Share, the link itself carries a readable copy of your input, so don't share links that contain secrets.