115 · Developer Tools

YAML to JSON Converter

Paste YAML to get JSON, or switch direction to turn JSON into YAML.

YAML to JSON Converter

Convert

How to use the yaml to json converter

  1. Choose YAML → JSON or JSON → YAML.
  2. Paste your data.
  3. Copy the converted result.

Good to know

Values are read with the YAML core schema, so yes and no stay strings rather than turning into true and false. A file with several documents separated by --- becomes a JSON array. Comments can’t be represented in JSON, so they are dropped.

Examples

tags: - a - b

{"tags": ["a", "b"]}

{"port": 8080}

port: 8080

Questions

Which YAML parser is used?

js-yaml, a widely used open-source parser, running in your browser.

Is my data uploaded?

No. Everything runs in your browser, so what you paste never leaves your device.