ZYBERMART

Install ZYBERMART

Open every tool from your home screen or dock, in its own window. Tools you've used also work offline.

YAML to JSON Converter

Convert YAML to JSON and JSON to YAML, with errors shown by line and column.

How to convert YAML to JSON (and back)

  1. Paste YAML on the left and choose YAML → JSON, or paste JSON on the right and choose JSON → YAML.
  2. If there’s a mistake, the message shows the line and column.
  3. Copy the result from the other side.

Only need to tidy JSON? Use the JSON formatter. Turning JSON into code types? Try JSON to TypeScript.

Frequently asked questions

What's the difference between YAML and JSON?

They hold the same kind of data: lists, key-value maps, text and numbers. JSON uses braces, brackets and quotes and is common in APIs. YAML uses indentation instead, allows comments, and is common in config files like Docker Compose, Kubernetes and GitHub Actions.

Are YAML comments kept?

Comments can't be stored in JSON, so they're dropped when converting YAML to JSON. Everything else, including anchors and aliases, is turned into plain JSON values.

Why does my YAML give an error?

Most often it's indentation: YAML uses spaces (not tabs), and items at the same level must line up exactly. The error message gives the line and column to look at.

Is my data uploaded?

No. Converting happens in your browser, so it's safe for config files with secrets.

Sign in to ZYBERMART

Keep your CVs, invoices, flashcards, notes and saved tools on all your devices. It's free, and the tools work the same without an account.

or

No password needed. By signing in you agree to the terms; see how we handle your data in the privacy policy.

Your account

Signing out keeps a copy of your work in this browser. On a shared computer, clear your browser data afterwards.

What do you want to create?

Designs

Social media

Documents

Study

Edit

See all 241 tools