YAML to JSON Converter
Paste any YAML manifest or config file and convert it to clean, indented JSON locally — secrets and infrastructure configs never leave your browser.
Input
Output
Convert YAML Configs to JSON Without Exposing Secrets
DevOps engineers routinely convert docker-compose.yml, Helm values, OpenAPI specs, and GitHub Actions workflows into JSON for CLI tools like jq or REST API payloads. Pasting production YAML into server-backed converters risks leaking API tokens or internal hostnames — here `js-yaml` runs 100% locally in your browser.
Example Input & Output
# Input YAML
service: payments-api
retries: 3
features:
- idempotency
- webhooks// Output JSON
{
"service": "payments-api",
"retries": 3,
"features": ["idempotency", "webhooks"]
}
Specs
- Supported formats
- Input & Output: JSON (.json) ↔ YAML 1.2 (.yaml / .yml)
- File & batch limits
- Configs and OpenAPI/Kubernetes manifests up to several MB convert instantaneously in RAM
- AI model download
- None (0 MB — powered by static js-yaml)
- Browsers & devices
- Chrome, Edge, Safari & Firefox on desktop and mobile
- Offline support
- Yes — works offline once page and js-yaml load
FAQ
Does YAML to JSON catch indentation errors?
Yes. Tabs or misaligned spaces in YAML are flagged immediately with the offending line location.
What happens to YAML comments (#) when converting to JSON?
Standard JSON does not support comments, so YAML comments are cleanly stripped during conversion.