Skip to content
MyDailyTool

YAML to JSON Converter

Convert YAML to JSON for APIs, config files, and pipelines. Supports indented mappings, sequences, scalars, and nested objects.

How to use the yaml to json converter

Paste YAML on the left. JSON appears live on the right. Supports indented mappings, sequences, strings, numbers, booleans, and null.

Formula & explanation

We parse a safe subset of YAML — no anchors/aliases, no flow style, no multiline scalars. Suitable for Compose files, Kubernetes manifests, GitHub Actions, and most config files.

Examples

name: example\ncount: 3 becomes {"name":"example","count":3}

Frequently asked questions

Why not full YAML?
Full YAML supports features (anchors, type tags, flow style) that are rarely used and famously footgun-prone. We handle the parts every config file actually uses.
Are my type annotations preserved?
Standard scalar types (numbers, booleans, null, strings) are detected automatically. Explicit !!str / !!int tags aren't supported — quote the value if you need it preserved as a string.

Related developer tools tools

Related reading