JSON ↔ YAML Converter

Convert between JSON and YAML in both directions. Paste JSON to get clean YAML, or paste YAML to get valid JSON, with numbers, booleans and nulls kept intact.

JSON and YAML conversion tips


JSON is strict and explicit, while YAML favours readability. Converting between them lets you move configuration from one ecosystem to another without rewriting it by hand.

  • Validate the JSON first: a single missing comma turns into a cascade of parse errors.
  • Check the indentation after converting to YAML, because in YAML indentation is the structure.
  • Confirm that booleans, nulls and numbers survived the round trip and did not become text.

JSON YAML converter FAQ


Why is the YAML shorter than the JSON?
YAML drops most quotes, braces and commas, so the same data usually takes less room.

Do comments survive when converting YAML to JSON?
No. JSON has no syntax for comments, so any comment line is dropped in the conversion.

How do I avoid type mistakes after converting?
Read the result and check the booleans, nulls and numbers. A value in quotes is text, even when it looks like a number.

Wikipedia — JSON
Wikipedia — YAML