YAML ↔ JSON Converter

Convert between YAML and JSON instantly in your browser — bidirectional, no upload.

100% in your browser No watermark No sign-up

How it works

  1. Choose a direction: YAML → JSON or JSON → YAML.
  2. Paste or type your input — the result appears instantly as you type.
  3. Copy the output to your clipboard or download it as a file.

Frequently asked questions

What YAML features are supported?
The converter uses js-yaml, which supports the full YAML 1.2 spec including multi-line strings, anchors, aliases, and nested structures.
Are my files uploaded anywhere?
No. All conversion happens locally in your browser using js-yaml. Nothing is sent to any server.
What happens if my YAML or JSON is invalid?
The parser error message is shown in red below the input so you can quickly spot and fix the problem.
Does the YAML output preserve key order?
Yes — js-yaml.dump() outputs keys in the same order they appeared in the source JSON object.

More Converters & Dev tools