Skip to content
UniKit

YAML / JSON to JSON, YAML, CSV, XML

Convert YAML (or JSON) into JSON, YAML, CSV or XML: YAML is parsed with the 1.2 core schema, CSV uses object keys as the header and XML is a simplified tag mapping. TOML is not supported.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

YAML / JSON input

The input is parsed as YAML (JSON is valid YAML too) and then emitted in the selected mode: JSON, YAML, CSV or XML.

Converted output

JSON mode supports indentation; CSV mode builds the header from object keys; XML mode writes arrays as <item> and only escapes & < >.

Paste YAML or JSON to see the converted output

What this tool does

  • Export one YAML config as both JSON (for programs) and XML (for a legacy system)
  • Turn a YAML list into CSV for a colleague who wants to filter it in Excel

Example

Input

name: Ada
age: 37

Output

{
  "name": "Ada",
  "age": 37
}

JSON is the default mode, indented with two spaces.

Frequently asked questions

Is TOML supported?

No. The multi-format claim covers YAML/JSON input and JSON/YAML/CSV/XML output only; there is no TOML parser, so TOML text is parsed as YAML and either errors or yields an unexpected structure.

Is YAML the only accepted input?

The input is parsed with the YAML 1.2 core schema, and JSON is a subset of YAML, so pasting JSON works too. Parse failures are reported as YAML syntax errors.

What are the XML limitations?

It is a simplified mapping: object keys become tag names (characters outside letters, digits, underscore, dot and hyphen become _), arrays become <item> elements and only & < > are escaped. No XML declaration, attributes, CDATA or namespaces.

What does CSV mode require?

A mapping or an array of mappings (array elements must be objects). The header is the union of keys and cells containing the delimiter, quotes or newlines are quoted per CSV rules.

Keywords:yaml csv xml converter

Related tools