DataToolMage

Format

YAML to JSON

Paste YAML maps and sequences and get JSON. Only JSON-compatible types are accepted so implicit YAML 1.1 typing cannot rewrite values.

Input is processed in your browser. DataToolMage does not upload it, store it, or send it to analytics.

Paste structured data. Work stays in this browser.

How it works

A local YAML loader restricted to JSON types parses the document, then JSON.stringify pretty-prints it.

Input and output

Input is YAML text. Output is JSON.

Common uses

Map

name: Ada\nage: 37 becomes {"name":"Ada","age":37}.

List

A dash list becomes a JSON array.

How to use this tool

  1. Paste YAML.
  2. Fix any rejected tags.
  3. Copy the JSON.

Limitations

  • Not a YAML linter or syntax formatter.
  • Duplicate keys follow last-key-wins loader behavior.
  • Anchors and aliases that require non-JSON types fail.

Questions

Is this full YAML 1.1?
No. The parser uses a JSON schema: null, booleans, numbers, strings, maps, and sequences. Custom tags, merge keys, and binary are rejected.
Will NO become false?
No. Country codes and unquoted words stay strings under the JSON-compatible schema.

Related tools

YAML to JSON Converter — Browser Local