← All Tools

YAML JSON Converter🔒 100% local

YAML to JSON and back. Privacy-first, no server uploads, no tracking.

Related Tools

Base ConverterByte Storage ConverterCamel Snake Converter

YAML JSON Converter also works in both directions, deciding from whether the trimmed input opens with { or [. JSON is parsed and re-emitted as YAML; YAML goes through its own minimal indentation reader and comes back as pretty JSON. Its scalar rules are broader than the other YAML page's: yes and no join true and false as booleans.

How to use it

  1. Paste YAML or JSON into the Input box.
  2. Press Process.
  3. Read the detected direction on the first line, then the converted document under the output heading.

Worked example

name: John age: 30becomesDetected input: YAML === JSON output === { "name": "John", "age": 30 }

The heading names the direction it detected, here YAML in, JSON out.

items: - id: 1 - id: 2becomesDetected input: YAML === JSON output === { "items": [ { "id": 1 }, { "id": 2 } ] }

Block sequences now parse: a list of maps becomes a JSON array of objects.

When to use it

What it does not do