Skip to main content
KioTools
  • +100 Tools
  • 100% Free
  • 0 Pop-up Ads
  • No Sign-up
  • Runs locally

Related Tools

Code Playground

Live HTML/CSS/JS editor with an instant preview.

Cron Expression Explainer

Translate a cron schedule to plain English and list its next runs.

CSS Minifier & Beautifier

Compress a stylesheet or expand it back to readable form.

YAML ↔ JSON Converter

What is this tool?

A two-way YAML/JSON converter built on the js-yaml library. It parses the input, then serializes it in the other format with consistent indentation, all in your browser.

When to use it

  • Turning a JSON config into the YAML a tool expects (or vice versa)
  • Reading a dense YAML file as JSON to understand its structure
  • Copying a value out of a Kubernetes manifest as JSON
  • Converting an API example between the two formats
  • Checking that a YAML file is syntactically valid

How to use it

  1. 1Pick the direction: YAML → JSON or JSON → YAML
  2. 2Paste your content into the input box
  3. 3Read the converted output
  4. 4Copy it with the Copy button
  5. 5If the input is malformed, the error message points at the problem

Frequently asked questions

Which YAML version is supported?

YAML 1.2 core schema via js-yaml's safe loader — anchors and aliases work, but custom tags are not resolved.

Are comments preserved?

No — YAML comments are dropped, because JSON has no equivalent and the conversion goes through a parsed data structure.

Does it handle multi-document YAML?

It converts the first document. Split multi-document files (--- separators) and convert each part separately.

Is my data uploaded?

No — the conversion runs entirely in your browser.