YAML to JSON Converter — Free, Browser-Only
Overview
YAML is the config format behind Kubernetes manifests, GitHub Actions workflows, and Ansible playbooks. When you need to inspect or share that config as JSON — for an API payload, a jq query, or a package.json diff — this converter handles it instantly. Paste your YAML, get clean, 2-space-indented JSON in the right panel. No file upload, no registration.
How to Use This Tool
Paste your YAML into the left panel or drop a .yaml/.yml file. The tool auto-detects the input format and converts immediately. Copy the JSON output or download it as a .json file. To go the other way, click JSON → YAML or drop a .json file.
Ready to get started? It's free, no registration required, and your files never leave your device.
PDF Tool →Frequently Asked Questions
Does the converter handle multi-document YAML files?
Single-document YAML (one root object) works perfectly. Multi-document YAML (files with --- separators) will parse only the first document, since JSON has no native equivalent for multi-document streams. Split the file at --- boundaries first if you need each section separately.
Why does my YAML parse error show a line number?
The tool uses js-yaml, which reports the exact line and column where parsing failed. Common causes are inconsistent indentation (tabs vs. spaces), missing colons after keys, or unquoted strings containing special characters like : or #.
Is there a file size limit?
No server-side limit — the conversion runs in your browser. In practice, files up to a few megabytes convert in under a second on a modern laptop. Extremely large files (50MB+) may slow the browser tab.