Skip to content

YAML to JSON Converter

Convert YAML to JSON with your choice of indentation. Multi-document YAML becomes a JSON array.

Runs in your browserYAML → JSON
Loading tool…

Example

Input
name: app
ports:
  - 80
  - 443
debug: false
Output
{
  "name": "app",
  "ports": [
    80,
    443
  ],
  "debug": false
}

How to use the YAML to JSON Converter

  1. Paste or type your YAML into the input area, or open a file from your device.
  2. Adjust the options above the editor if the tool offers any.
  3. Review the JSON result, then copy it or download it as a file.

Privacy and limitations

  • Your data is processed on your device and is not uploaded to any server.

Frequently asked questions

What happens to YAML anchors, aliases and dates?

Aliases are expanded into copies of the anchored value, and dates such as 2024-01-31 are kept as strings exactly as written, because JSON has no date type.

Browse all yaml converters →