YAML and JSON Converter

Convert YAML and JSON in both directions locally in the browser.

The YAML and JSON converter helps organize configuration files and API examples without sending data away from the browser.

Loading...

Examples and limits

Supports JSON-compatible YAML 1.2 values: string-keyed mappings, arrays, strings, finite numbers, booleans, and null, including nested structures and empty collections. Conversion preserves values, but not comments or the original layout.

Duplicate keys, anchors, aliases, explicit tags, multiple documents, non-string keys, and non-finite numbers are rejected. Numbers outside JavaScript’s safe integer range are also rejected; quote large integers as strings when exact preservation is required.

Usage

  • YAML to JSON produces indented JSON.
  • JSON to YAML preserves objects, arrays, null, and empty collections.
  • Parsing is performed locally in the browser.
Licensed under CC BY-NC-SA 4.0

Report a problem

The links prefill this page's title and address. Add what happened and how to reproduce it.