Home / Tools / Data and formats
YAML to JSON Converter
Convert YAML to JSON and JSON to YAML.
Runs in your browserFree, no sign-upOpens .yaml, .yml, .json
Loading tool…
How to use it
- Choose YAML → JSON or JSON → YAML.
- Paste or open a .yaml/.yml or .json file.
- Copy or download the output.
About this tool
Handy for Kubernetes manifests, GitHub Actions, Docker Compose files and OpenAPI specs. Invalid YAML shows the line where parsing stopped.
Your input is processed on your device. Nothing is sent to a server or stored.
Questions
Are comments kept?
JSON has no comments, so comments are dropped when converting YAML to JSON.
Does it support multiple documents?
Files with several documents separated by --- become a JSON array.
Data and formats
All data and formatsMore tools like this
Data and formatsJSON Formatter & ValidatorFormat, validate, minify, stringify and parse JSON.Opens filesOpen →Data and formatsXML to JSON ConverterConvert XML to JSON and JSON back to XML.Opens filesOpen →Data and formatsCSV to JSON ConverterTurn CSV or TSV into JSON and JSON arrays into CSV.Opens filesOpen →Data and formatsJSON to TypeScriptGenerate TypeScript interfaces from a JSON sample.Opens filesOpen →Data and formatsSQL FormatterFormat messy SQL into readable, indented queries.Opens filesOpen →Data and formatsHTML Beautifier & MinifierIndent minified HTML or minify it for production.Opens filesOpen →Data and formatsMarkdown Table GeneratorTurn CSV or spreadsheet cells into a Markdown table.Opens filesOpen →Data and formatsQuery String to JSONTurn URL parameters into JSON and JSON into a query string.Open →