Skip to content
Converters/

Data Format Converter

Reading as JSON, writing YAML.

JSON in

14 lines · 327 chars

YAML out

The converted document appears here.

Everything runs in this tab — nothing is uploaded. These five formats are not equivalent, so the report above names every difference this specific document runs into, before you copy the result.

About Data Format Converter

Convert between JSON, YAML, CSV, XML and TOML in your browser — and see exactly what each conversion will lose before you commit to it.

What it does

Paste a document in any of the five formats and get it back as any other. Parsing and serialising both happen locally, so configuration files with real credentials in them never leave your machine.

Every loss is named first

These formats are not equivalent, and a converter that pretends otherwise quietly corrupts your data. CSV has no nesting and no types — everything is a string in a flat table. XML distinguishes attributes from child elements, and JSON has no way to express that difference. YAML comments and anchors have no JSON equivalent. TOML has first-class dates that JSON must degrade to strings. Rather than silently dropping any of it, the tool tells you what will not survive before you convert.

Common questions

Why does converting to CSV flatten my nested data?
CSV is a flat table of strings with no concept of nesting or types. Nested structures have to be flattened or dropped, and the tool names what it did rather than doing it silently.
Are YAML comments preserved when converting to JSON?
They cannot be — JSON has no comment syntax. This is reported before the conversion runs.
Is it safe to paste a config file with secrets?
Yes. Everything happens in your browser — nothing you enter is uploaded, and the tool keeps working with no network connection.
Which YAML version is supported?
YAML 1.2, the version that is a superset of JSON.

Related tools