All 127 tools

YAML to JSON Converter

Convert YAML to JSON and validate YAML syntax. Works with Kubernetes manifests, GitHub Actions and Docker Compose files.

Runs in your browser. Nothing you paste is sent anywhere.

Working…

About this tool

Errors show the line and column so you can fix indentation problems, the most common YAML mistake. Files with several documents separated by --- become a JSON array.

Converting YAML configuration safely

YAML is popular for configuration because it is easy to read and supports comments. Docker Compose files, Kubernetes manifests, CI pipelines and many application settings use it. Sometimes, though, you need the same data as JSON, for an API, a script, or a tool that does not read YAML. This converter handles that in one step and shows the result as formatted JSON.

Indentation is the most common source of YAML errors, because YAML uses spaces to show structure. A single extra or missing space can move a key to the wrong level or break the file entirely. Tabs are not allowed for indentation. When there is a problem, this tool reports the line and column so you can find it quickly. Files containing several documents separated by three dashes are converted into a JSON array, one item per document.

Watch for values that YAML interprets in surprising ways. Unquoted words such as yes, no, on and off may be read as true or false by some parsers, which is a well-known source of bugs in country codes and settings. Numbers with leading zeros or values that look like dates can also be converted unexpectedly. If a value must stay as text, wrap it in quotes in the YAML. Comments are dropped during conversion, since JSON has no place for them, so keep your YAML file as the source of truth. Everything runs locally in your browser, which matters when configuration files contain hostnames, keys or internal settings. Converting both ways is also a quick check that a hand-edited file still means what you think it means.

How to use it

  1. Paste your text into the input box, or open a file from your device.
  2. Adjust the options. The result updates instantly.
  3. Copy the result, or download it as a file where offered.

Questions

Does it support multiple YAML documents?

Yes. Documents separated by --- are returned as a JSON array.

Why does 'no' turn into false?

This converter follows YAML 1.2, where only true/false are booleans, so 'no' stays a string. Quote values if another tool reads them differently.

Last reviewed 16 October 2026.