Data tools

We never see your dataFree, no sign-up

YAML to JSON converter

Paste YAML for JSON, or switch direction for YAML. Config files, Kubernetes manifests and API specs convert as you type.

Guide

How to convert YAML to JSON

  1. Paste or open

    Paste YAML, or open a .yaml, .yml or .json file of any size.

  2. Pick the direction

    YAML to JSON, or JSON to YAML. Swap turns the result into the new input.

  3. Copy or download

    Copy the result, or download it as a .json or .yaml file.

Know-how

Good to know

Updated

What carries over, and what can't

Keys, strings, numbers, true/false, null, lists and nested maps convert both ways. Several YAML documents separated by --- become a JSON array. Anchors and aliases are expanded into their values.

YAML comments have no place in JSON, so they're dropped. Dates written as YAML timestamps become ISO strings.

Numbers stay exact

Many converters read numbers into JavaScript and round integers past 9,007,199,254,740,991, which breaks IDs. This one keeps every digit of whole numbers in both directions.

Questions

Not here? Email us.

Shortcuts

Set up for a specific job