YAML to JSON
Convert YAML config files to JSON, with syntax errors reported with line numbers.
Runs in your browser. Nothing is uploaded Free, no sign-up Works on mobile
Indent
How to convert YAML to JSON
- Paste your YAML or open a file.
- Adjust the options if needed.
- Copy the JSON or download it as a file.
Frequently asked questions
Why does my YAML fail to convert?
The usual causes are tabs (YAML requires spaces) and inconsistent indentation. The error message shows the line to fix.
Is my data sent to a server?
No. Everything runs in your browser, so API keys, tokens, configs and customer data never leave your machine.
Related tools
All Developer Tools →- JSON to YAML Convert JSON to clean, readable YAML for Kubernetes manifests, Docker Compose, GitHub Actions and config files.
- JSON Formatter Pretty-print messy JSON, find syntax errors fast, or minify it for production.
- JSON to XML Convert JSON objects to well-formed XML.
- XML to JSON Convert XML documents, feeds and SOAP responses to JSON.
- TOML to JSON Convert TOML files such as Cargo.toml, pyproject.toml and Hugo configs to JSON.
- JSON to TOML Convert a JSON object to TOML for Rust, Python and static-site generator configs.