JSON to YAML Converter
Turn JSON into clean YAML with configurable indentation, ready for config files and Kubernetes manifests.
Free, with no sign-up and no watermark. The file is processed in your browser and never uploaded.
Turn JSON into clean, readable YAML — ideal for Kubernetes, Ansible, GitHub Actions or any config that prefers YAML. Strings that YAML would misread (like yes or 012) are quoted automatically, and long lines are never folded.
Step by step
- Paste JSON: Or open a file, or try Load sample.
- Choose indentation: 2 spaces is the usual YAML style; 4 is also available.
- Optional: sort keys: Alphabetical keys make large configs easier to scan.
- Download: Save as
data.yaml.
Handy for
Kubernetes manifests
Convert JSON from kubectl -o json back to YAML.
CI configs
Write pipeline steps as data and convert.
Readable docs
Show JSON examples in a more readable form.
Config migration
Move settings from JSON files to YAML.
Good to know
Invalid JSON is pointed out with a line and column before conversion.
Repeated objects are written out in full rather than as YAML anchors, for maximum compatibility.
Questions
Will comments be added?
No — JSON has no comments to carry over, and the converter doesn't invent any.
Is my data sent anywhere?
No. Everything is processed by JavaScript in your browser tab — nothing you paste or open is uploaded, logged or stored on a server. You can even use the tool offline once the page has loaded.
More Developer Tools tools
- XML Formatter & Validator — Indent, minify and validate XML, with the exact line and column of any well-formedness error.
- SQL Formatter — Format SQL for MySQL, PostgreSQL, SQL Server, SQLite, BigQuery and more, with keyword case control.
- HTML, CSS & JavaScript Formatter — Beautify HTML, CSS, JavaScript, TypeScript and JSON with Prettier, running entirely in your browser.
- JavaScript, CSS & HTML Minifier — Minify JavaScript with Terser, CSS and HTML safely, and see exactly how many bytes you saved.
- Base64 Encoder & Decoder — Encode and decode Base64 for UTF-8 text and any file, including the URL-safe variant.
- Image to Base64 Converter — Convert images into Base64 data URIs with ready-to-paste HTML and CSS snippets.