← All Tools

YAML Converter🔒 100% local

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

Related Tools

Base ConverterByte Storage ConverterCamel Snake Converter

YAML Converter picks its direction from the first character of the input: text starting with { or [ is parsed as JSON and printed as YAML, and anything else is parsed as YAML and printed as pretty JSON. Its YAML reader is a small subset parser covering nested maps, block lists, "- key: value" list items, inline arrays and quoted scalars, and it strips a trailing # comment from each line.

How to use it

  1. Paste either YAML or JSON into the Input box - there is no source selector to set.
  2. Press Process.
  3. Read the direction it detected, then the converted block under the --- YAML --- or --- JSON --- heading.

Worked example

name: John age: 30becomesDetected: YAML to JSON Parsed OK — 4 line(s) of JSON. --- JSON --- { "name": "John", "age": 30 } Type notes: YAML scalars are coerced — an unquoted 007 becomes the number 7, and unquoted yes/no/on/off become booleans in YAML 1.1 tools. Quote anything that must stay a string, e.g. a ZIP code or a version like "1.10". Paste the JSON above back in to confirm a lossless round trip.

The first two lines report the detected direction and the size of the result.

When to use it

What it does not do