YAML to JSON

Transform YAML content into JSON objects and arrays.

Tool Panel

Processed locally
Loading tool...
About YAML to JSON

Parses YAML — nested maps, scalar lists and lists of objects — and emits JSON.

  • 1

    A hand-written parser covering the subset configuration files actually use: nested maps, scalar lists, lists of maps (`- name: a`), inline `[]` and `{}`, and `#` comments (including `#` inside quotes, which is not treated as a comment).

  • 2

    Typing is literal-only: lowercase `true` / `false`, `null` and `~`, plus anything `Number()` accepts (`42`, `1.5`, `010` → 10, `0x10` → 16, `1e3` → 1000). `yes`, `no`, `True` and `on` stay strings — so it does not fall into the YAML 1.1 trap of reading `no` as a boolean.

  • 3

    Quotes protect strings: `"123"` comes out as the string `123` (the quotes are stripped), which is how you keep a value like `010` intact.

Related tools

View all
Data Conversion

CSV to JSON

Convert CSV table data into JSON arrays and objects.

Data Conversion
Data Conversion

CSV to YAML

Transform CSV rows into YAML for configuration and data exchange.

Data Conversion
Data Conversion

CSV to TSV

Convert comma-separated CSV into tab-separated TSV format.

Data Conversion
Data Conversion

JSON to CSV

Export JSON arrays into CSV format for spreadsheets and BI tools.

Data Conversion
Data Conversion

JSON to YAML

Convert JSON documents to YAML with clean, readable output.

Data Conversion
Data Conversion

JSON to XML

Transform JSON structures into XML format for system integration.

Data Conversion
Data Conversion

JSON to TSV

Convert JSON arrays into TSV for tab-based data workflows.

Data Conversion
Data Conversion

JSON to Markdown Table

Generate Markdown tables directly from JSON array data.

Data Conversion