DevConvertor

YAML to JSON

Convert YAML to JSON with js-yaml, preserving objects, arrays, strings, numbers, booleans, and null exactly as parsed from the source YAML.

ReadyData ConvertersFree · No account required

Features

  • Preserves objects, arrays, strings, numbers, booleans, and null exactly
  • Real YAML parsing via js-yaml, with a clear error if the YAML is invalid

How to use

  1. Paste YAML into the input.
  2. Click Convert.
  3. Copy or download the JSON result.

Example

Input

a: 1
b:
  - 1
  - 2
c: null

Output

{
  "a": 1,
  "b": [1, 2],
  "c": null
}