Skip to main content

YAML to JSON converter

Convert YAML to formatted JSON in your browser, with parser errors shown by line and column. Anchors are resolved; comments are dropped. No uploads.

Parsed entirely in your browser with the YAML library bundled into this page.

Convert YAML (config files, Kubernetes manifests, OpenAPI specs, front matter) into formatted JSON. The YAML is parsed in your browser with the open-source yaml library bundled into this page; nothing is uploaded.

How to use

  1. Paste YAML into the input box.
  2. Click Convert.
  3. Copy the pretty-printed JSON (2-space indent) from the output box.

Good to know

  • Syntax errors are shown with the parser’s message, which usually includes the line and column.
  • Files with several documents separated by --- show an error. Convert them one document at a time.
  • Comments are dropped, because JSON has no comments.
  • YAML anchors and aliases are resolved into plain values.

JSON formatter · JSON Schema generator · JSON to CSV

How we check

Checked against the tool’s unit tests and a manual run in a desktop browser on 2026-11-13 (Asia/Colombo). Corrections: [email protected].

More free tools