Skip to content
N NotAtAll

YAML to JSON Converter

Convert configuration files between YAML 1.2 and JSON without sending secrets or settings to a server. Switch direction, open a local file and export a readable result with two- or four-space indentation.

🔒 100% private — files never leave your browser

Conversion direction

Result

How to use the YAML to JSON

  1. 1 Choose YAML to JSON or JSON to YAML and paste a document or open a local file.
  2. 2 Select indentation and convert. Correct any reported syntax or unsupported-value errors.
  3. 3 Copy the converted document or download the JSON or YAML file.

Frequently asked questions

Are YAML comments and anchors preserved?

JSON has no comments or anchors. Comments are removed and supported YAML aliases are expanded into values. Converting back creates fresh YAML rather than restoring original formatting.

Which YAML values are supported?

One YAML 1.2 document with string mapping keys and JSON-compatible values is supported. Duplicate keys, custom tags, cyclic aliases, excessive alias expansion, non-finite numbers and unsafe integers are rejected instead of silently changing data.

Can I convert configuration files containing secrets?

The document stays in browser memory and is processed by a local Worker. There are no remote conversion calls. Each input is limited to 500 KB; complex work stops after 10 seconds.