YAML to JSON
Convert YAML into JSON, including multi-document files and key sorting.
100% private — everything runs in your browser
How to Use
- 1
Paste YAML — Kubernetes manifests and CI configs work well.
- 2
Choose the indent and whether keys should be sorted.
- 3
Convert, then copy or download the JSON.
Examples
Simple mapping
Input
name: app
ports:
- 3000Output
{
"name": "app",
"ports": [
3000
]
}Multi-document file
Input
a: 1
---
b: 2Output
An array with two objects, one per document.FAQ
Are multi-document YAML files supported?
Yes. Documents separated by --- become an array, one entry per document.
What happens to anchors and aliases?
They are resolved into plain values, so the JSON contains no YAML-specific syntax.
Why does my YAML fail?
Tabs are not allowed for indentation in YAML and a colon must be followed by a space. The error message points to the line.
Related Tools
JSON to YAMLConvert JSON into clean, readable YAML with configurable indent and key sorting.JSON FormatterFormat, beautify, minify and validate JSON instantly — right in your browser.JSON ValidatorValidate JSON instantly and find syntax errors with the exact line, column and position — right in your browser.Base64 Encoder/DecoderEncode text to Base64 and decode Base64 back to text with full Unicode and emoji support — 100% in your browser.URL Encoder / DecoderEncode text for URLs with encodeURIComponent or encodeURI, and decode percent-encoded strings.Unix Timestamp ConverterConvert Unix timestamps to readable dates and back, with seconds and milliseconds support.