YAML to JSON Converter
Turn YAML files into clean JSON, right in your browser. Nothing is uploaded.
Other formats? Open the full File Converter for images, audio, video, documents and data.
Runs in your browser. Your files never leave your device.
YAML to JSON questions
How does the YAML to JSON converter work?
The YAML is parsed in your browser with js-yaml (merge keys are supported, dates are kept as text). The result is written as JSON indented with 2 spaces by default (0-8, or compact). Text that isn't valid UTF-8 is read as Windows-1252, with a note. You can convert up to 50 files at once and download them one by one or as a ZIP.
What is the difference between YAML and JSON?
YAML (YAML Ain't Markup Language) is a human-friendly data format common in configuration files such as Docker Compose, Kubernetes and GitHub Actions. JSON (JavaScript Object Notation) is the standard text format for data in web APIs and apps, with nested objects and lists.
What about YAML files with several documents?
A file with several documents separated by --- becomes a JSON array with one item per document, and you get a note saying so. A single document becomes a single JSON value.
Are my files uploaded to a server?
No. The conversion runs entirely in your browser and your files never leave your device: there is no upload, no account and no watermark.