BOXUNBAOTools
Simplify everyday tasks.Back to website
ToolboxYAML ↔ JSON

YAML ↔ JSON

Runs in your browser

Convert between YAML and JSON and locate syntax errors.

How to use

Steps

  1. Choose YAML to JSON or JSON to YAML, then paste one complete document.
  2. Select Convert and check the arrays, objects, booleans, and strings. If YAML parsing fails, use the reported line and column to check indentation, duplicate keys, or quotes.
  3. Copy or download the output. When debugging app settings, you can paste converted JSON into JSON Formatter or JSON Diff.

Example

Converting the YAML below to JSON,id keeps its leading zeros, andenabled remains a boolean.

id: "0012"
enabled: true
tags:
  - demo

Tips

  • Supports one YAML 1.2 document, string keys, and a limited number of anchor references. Quote numeric-looking keys, for example "123": demo.
  • Conversion reformats the document and drops YAML comments. Large integers and decimals retain their precision.