OnliKit

JSON ↔ YAML / TOML

Convert between JSON, YAML, and TOML in one workspace

Use JSON ↔ YAML / TOML free in your browser. Free online converter for JSON, YAML, and TOML. Convert either direction, handle multi-document YAML, keep YAML comments when possible, and optionally validate with JSON Schema before converting — runs in your browser, no signup.

Loading tool…

What you can do with JSON ↔ YAML / TOML

JSON ↔ YAML / TOML on OnliKit is a free browser tool for everyday work — convert between json, yaml, and toml in one workspace. Use it when you need a quick result without installing software or creating an account.

  • Convert between JSON, YAML, and TOML with from/to selectors and one-click swap.
  • Support multi-document YAML streams separated by ---.
  • Preserve YAML comments when working in the YAML document model where possible.
  • Choose indentation and pretty or minified JSON output.
  • Optionally validate against a JSON Schema before converting away from JSON.
  • Copy or download the result; sample inputs included for each format.

Why use JSON ↔ YAML / TOML?

Switch config formats for apps, CI, and infrastructure without pasting into several sites. Conversion stays in the browser for privacy and speed.

Comments survive best on YAML-centric paths. Converting through JSON or TOML drops comments because those formats do not store them.

How to use JSON ↔ YAML / TOML

  1. 01Choose source and target formats (JSON, YAML, or TOML).
  2. 02Paste your document, or load a sample for that format.
  3. 03Optionally open the schema pane and validate JSON before converting.
  4. 04Click Convert, then copy or download the result.

Frequently asked questions

Can I convert JSON to YAML online for free?

Yes. Pick JSON as the source and YAML as the target, paste your JSON, and convert. No account is required.

Does this keep YAML comments?

When you stay within YAML’s document model, comments can be preserved. Paths that go through JSON or TOML drop comments.

What about multi-document YAML?

Enable multi-document mode to load and dump YAML streams separated by ---, converting each document in the stream.

Is CSV supported?

Not in this tool. Use JSON, YAML, or TOML only.

Related tools

After you finish with JSON ↔ YAML / TOML, try these related OnliKit tools — or browse all tools.

Also see more data tools.