JSON ↔ YAML Converter

Choose JSON → YAML or YAML → JSON, paste into Input, and click Convert. Successful runs fill the Output box and enable Copy output. Errors clear Output and show the message in the status line.

Updated 2026-08-04 · developer

Choose direction, enter input, then Convert.

About this tool

JSON → YAML parses with JSON.parse then dumps via js-yaml with unlimited line width and noRefs. YAML → JSON loads with js-yaml then pretty-prints with two-space JSON. Direction is a select above the Input textarea so you never mix the two paths by accident.

How to use

  1. Pick a direction: Select JSON → YAML or YAML → JSON in the Direction control.
  2. Enter input: Paste JSON or YAML into the Input textarea to match the direction you chose.
  3. Convert: Click Convert to fill Output, or read the Error status if parsing fails.
  4. Copy the output: When Output appears, click Copy output to place the result on the clipboard.

Common use cases

Tips

FAQ

Which library builds the YAML?

Conversion uses js-yaml dump and load in the browser with lineWidth disabled and noRefs on dump.

Why is Output empty after Convert?

A parse or dump error cleared Output; the status line shows the Error details.

Does Copy output always show?

No. The copy button appears only after a successful conversion produces Output.

Is my config uploaded?

No. JSON.parse, js-yaml, and clipboard copy all stay in your browser.

Related keywords

Related tools