YAML ⇄ JSON ⇄ TOML Converter

Convert between YAML, JSON and TOML in either direction — lossless and instant, entirely in your browser.

This converter changes YAML to JSON, JSON to YAML, and TOML in either direction, losslessly. Paste a config to convert YAML to JSON for an API, turn JSON into readable YAML, or move between TOML and the others without hand-editing. It validates the input and flags a clear error if the config cannot be parsed. It runs in your browser.

YAML
JSON

How it works

  1. 1

    Choose formats

    Set the input and output formats (for example YAML → JSON).

  2. 2

    Paste your config

    Drop your configuration into the input pane; it converts as you type.

  3. 3

    Copy the output

    Copy or download the converted config, ready to paste into your project.

Instant & 100% private — nothing is uploaded

Everything runs locally in your browser. Your code, text and files are processed on your own device and are never sent to a server — so there are no upload waits, no size limits from us, and nothing is ever stored or logged.

Frequently asked questions

Which conversions are supported?
Any pairing of YAML, JSON and TOML, in both directions — YAML↔JSON, JSON↔TOML and YAML↔TOML.
Will comments be preserved?
Data is preserved exactly, but comments are not part of the data model in JSON or TOML, so they are dropped during conversion. Keys, values, types and structure are kept intact.
Does it validate the input?
Yes. If the input cannot be parsed, you get a clear error explaining what went wrong, rather than a broken output.