Built-in parser · browser-only processing

YAML to JSON Converter

Convert YAML configs to JSON instantly — maps, lists, block scalars and flow collections supported, with precise error messages when indentation goes wrong.

Indentation is the syntax

YAML has no braces — nesting lives entirely in leading spaces. Keep one consistent width (2 spaces is standard) and never mix tabs.

Know the subset

Anchors (&a), aliases (*a), custom tags and multi-document streams are not parsed here. For exotic YAML, use a full library locally.

JSON is valid YAML

Every JSON document is technically valid YAML 1.2. So if you're stuck, converting the other direction is always trivially possible.

How to use the YAML to JSON converter

  1. Paste your YAML

    Config files, CI definitions, compose files — up to 200 KB / 2,000 lines.

  2. Convert

    The built-in parser handles maps, lists, block scalars and flow collections.

  3. Fix errors by line

    Failures name the exact line — usually an indentation slip or a missing colon.

  4. Copy the JSON

    Pretty-printed with 2-space indentation, ready for APIs, code or storage.

Your input is processed in your browser and is not stored by us.

Frequently asked questions

Related tools

Need a custom tool?

We build calculators and internal tools for businesses — get in touch.

Directory last updated 2 December 2026.

Disclaimer: this parses the common YAML subset — anchors, aliases, tags and multi-document streams are not supported. Verify critical configs with a full YAML library.