Navigation

YAML to JSON

Convert a supported subset of YAML to JSON.

Supports mappings and scalar lists with two-space indentation. Anchors, aliases, tags, flow collections, block strings and object lists are unsupported.

Share

Last reviewed: · Testing methodology

How to use

Supports mappings, scalar lists, strings, finite numbers, booleans and null with two-space indentation. Unsupported YAML constructs return an error.

1

Choose input

Paste supported YAML or load an example.

2

Set options

Convert and resolve any unsupported syntax.

3

Use the result

Copy or download JSON.

Examples and checks

Worked example

Use the settings below and inspect the saved result.

Input
name: Example active: true items: - one - two
Output
{"name":"Example","active":true,"items":["one","two"]}

Limits and questions

Inputs are processed in your browser. Analytics and advertising can make separate network requests.

Supported behavior

Supports mappings, scalar lists, strings, finite numbers, booleans and null with two-space indentation. Unsupported YAML constructs return an error.

Limits and review

100,000 characters, 1,000 lines and 32 nesting levels. Anchors, aliases, tags, flow collections, block strings and object items in lists are unsupported.

Verification

Implementation checked on 2026-09-27. The displayed example and documented limits were checked with synthetic inputs. Unsupported input and the distinction between an estimate and a verified result were reviewed.

Testing methodology

When to use another workflow

Use a mature YAML parser in your target runtime for full YAML documents, schemas or production automation.

Frequently asked questions

What are the limits?
100,000 characters, 1,000 lines and 32 nesting levels.
What should I check before using the output?
Anchors, aliases, tags, flow collections, block strings and object items in lists are unsupported.