Category: Developer tools
YAML to JSON
Convert YAML configuration to formatted JSON locally
Paste YAML and get formatted JSON, with clear parser errors and multi-document support. The conversion runs in your browser, so configs stay private.
Paste YAML to convert it to JSON.
The result will appear here.
Everything on this page is processed in your browser. Nothing is uploaded.
What this tool does
YAML is easier to write by hand, but most APIs and tools expect JSON. This converter parses YAML in the page — anchors, nested maps, lists, multi-line strings and several documents separated by --- are all supported — and prints the result as JSON with the indentation you choose. Because CI files, Kubernetes manifests and deployment configs often carry sensitive values, nothing is uploaded.
How to use it
- Paste your YAML into the input box, or load the example.
- Choose 2 or 4 space indentation, or minify to a single line.
- Copy the JSON or download it as a file.
Privacy
This tool runs entirely in your browser. Your input is never uploaded, stored or shared — closing the tab removes it.
Frequently asked questions
- Are my configuration files uploaded?
- No. The YAML is parsed by JavaScript running in the page, so secrets in your config never leave your device.
- What happens with several documents in one file?
- Documents separated by --- are converted into a JSON array, in file order. A single document stays a plain object.
- Why does my YAML fail to parse?
- The message shows the parser's line and column. Tabs used for indentation, misaligned list items and unquoted strings containing a colon are the usual causes.