YAML to JSON

Paste YAML and it converts to JSON automatically — nothing leaves your browser.

YAML Input 0 lines
1
JSON Output 0 lines
1
UTF-8 · 0 B YAML → JSON
Waiting for input

How It Maps

  • YAML mappings become JSON objects
  • YAML sequences become JSON arrays
  • Anchors and aliases are resolved automatically
  • Instant conversion as you paste
  • Copy or download the result

Features & Supported Capabilities

  • Full YAML 1.2 support (block and flow styles)
  • Detects and reports invalid YAML with a line and column
  • Handles files up to 10 MB
  • Optional line wrapping for long output
  • Runs entirely in your browser — nothing uploaded

About this YAML to JSON converter

YAML is popular for configuration, from Kubernetes manifests to CI pipelines and OpenAPI files, while many tools and APIs only accept JSON. This free online YAML to JSON converter parses your YAML, including multi-document files and anchors and aliases, and gives you clean JSON.

It runs in your browser with nothing uploaded. Go the other direction with JSON to YAML, and check or explore the result in the JSON formatter or JSON viewer.

Frequently Asked Questions

Everything you might want to know about the online YAML to JSON converter.

The YAML is parsed into its underlying data — mappings, sequences, strings, numbers and booleans — and that data is written back out as standard, indented JSON.
Yes. An anchor (&name) and its alias (*name) are resolved to the same value, so the JSON output contains the fully expanded data.
Yes — indented block style (key: on its own line) and inline flow style ({"{ key: value }"}, [a, b, c]) both parse correctly, and can be mixed.
No. The conversion runs entirely in your browser. Your YAML is never uploaded, stored, or logged.
Yes, use the JSON to YAML tool for the reverse conversion.
YAML comments (starting with #) are dropped, the same way they would be by any YAML-consuming program — JSON has no comment syntax to carry them into.
You can paste text or upload a file up to 10 MB.
Yes. The document is parsed first, so an indentation or syntax error is reported with a line and column instead of silently producing the wrong structure.
Yes. Use the Copy button to copy it to your clipboard, or Download to save it as a .json file.