Skip to content
QuicklyTools

YAML to JSON Converter

Convert YAML (including multi-document files, anchors and aliases) to JSON with clear error messages.

Runs in your browser
Loading tool…

About the YAML to JSON Converter

Convert configuration files to JSON for APIs, validators and code. Multi-document YAML (separated by ---) becomes a JSON array; anchors and aliases are resolved. Syntax errors such as bad indentation are reported with a description.

How to use it

  1. Paste YAML or open a .yml file.
  2. Choose formatting.
  3. Copy or download the JSON.

Good to know

  • Alias expansion is limited to prevent “billion laughs” memory attacks.
  • YAML-specific types such as timestamps become strings or dates per the YAML 1.2 core schema.

Frequently asked questions

Why is “no” converted to a string, not false?

YAML 1.2 (used here) only treats true/false as booleans, unlike YAML 1.1.

Can tabs be used for indentation?

No, YAML forbids tabs for indentation.

More developer tools →