Direction
Indent
Input
Output

Conversion runs in your browser. Nothing is uploaded.

A two-way converter between YAML and JSON for when you need to turn a Kubernetes manifest, GitHub Actions workflow, Docker Compose file, or `config.yml` into JSON for an API, or reshape JSON config into readable YAML. Paste YAML or JSON into the top box, pick the direction (YAML→JSON or JSON→YAML), and the result appears instantly in the box below. Conversion is powered by the well-known js-yaml engine, so it parses both block and flow style, multi-line strings (`|` and `>`), booleans, numbers, null, and deeply nested maps and arrays correctly. For YAML→JSON you can choose an output indent of 2, 4, or tab; for JSON→YAML you can set the indentation width as well. If the input has a syntax error, it shows a message with the line number so you can fix it quickly. Importantly, the data you enter is never uploaded, stored, or sent to a server — all processing happens with JavaScript entirely inside your browser, so internal config values, connection strings, and YAML from private repositories you can't share stay on your device. Note that this tool is optimized for converting a single YAML document to and from a JSON value; multi-document streams separated by `---`, custom tags (such as `!!python/...`), and schema validation are out of scope.

How to use

  1. Paste YAML or JSON into the top box.
  2. Choose the direction (YAML→JSON or JSON→YAML) and the indent width.
  3. The converted result appears in the box below. Use "Copy" to grab it. Your input is never sent anywhere.

FAQ

Is the data I enter uploaded anywhere?

No. All conversion happens with JavaScript (js-yaml) inside your browser, and the data is never uploaded, stored, or sent to a server. Internal config values and YAML from private repositories you can't share stay entirely on your device.

Can it convert YAML with multi-line strings or comments?

Yes. It correctly parses multi-line strings (`|` and `>`), nested maps and arrays, and booleans, numbers, and null. YAML comments are not values, so they do not appear in the JSON output.

Can I change the indent width?

Yes. For YAML→JSON you can choose a JSON indent of 2, 4, or tab. For JSON→YAML you can set the leading indentation to 2 or 4 spaces.

Does it support multi-document YAML separated by `---`?

This tool is optimized for converting a single YAML document to and from a JSON value. Multi-document streams separated by `---`, custom tags, and schema validation are out of scope.

What happens if there is a syntax error?

If the input can't be parsed, the output is left empty and a message with the line number explains the cause. Fix the indicated line and it re-converts immediately.