Your files stay with you.
YAML→JSON

YAML to JSON

Paste YAML from a config file, Kubernetes manifest or CI pipeline to get clean JSON. Errors point to the exact line and column.

Your files stay with you. Nothing uploaded. Nothing saved.

Loading the converter…

How to use the YAML to JSON tool

  1. Paste your YAML into the input box.
  2. The JSON appears instantly. Choose 2 or 4 spaces of indentation.
  3. Copy or download the JSON, or use Swap to convert back.

Where YAML to JSON helps

YAML is popular for configuration because it’s easy to read and allows comments: Kubernetes manifests, Docker Compose files, GitHub Actions and many app settings use it. Many APIs and programs, though, expect JSON. Converting also exposes exactly how a YAML parser reads your file, which is the fastest way to debug indentation mistakes.

YAML surprises to watch for

  • Indentation matters. Use spaces, never tabs, and keep items in a list lined up.
  • Unquoted values change type. yes, on and true become booleans and 010 may become a number. Quote anything that must stay text.
  • Anchors and aliases (&base and *base) are expanded into full copies in the JSON.

Check or tidy the result with the JSON Formatter & Validator, or go the other way with JSON to YAML.

Frequently asked questions

Are comments kept?

No. JSON has no comments, so YAML comments are dropped during conversion.

What happens with several YAML documents?

Documents separated by --- become an array of JSON values, one for each document.

Why did a value become true or a number?

YAML guesses types, so yes, no, on and numbers without quotes become booleans and numbers. Put quotes around values you want kept as text.

Are my files uploaded to a server?

No. HushConverts converts everything with code that runs in your browser, so your text and files stay on your device. You can even use most tools offline once the page has loaded.

More encoding & developer