Skip to content
Kordu Tools

YAML to JSON Converter

Convert YAML to JSON and JSON to YAML instantly in your browser.

Indent:

 

Loading...

How to use

  1. 1

    Paste your input

    Paste your YAML or JSON into the left input panel.

  2. 2

    Choose conversion direction

    Click YAML → JSON to convert YAML to formatted JSON, or JSON → YAML to go the other way.

  3. 3

    Copy the output

    Click Copy to copy the converted result to your clipboard.

Frequently asked questions

What YAML features are supported?
The converter supports YAML 1.2 including nested objects, arrays, multi-line strings, anchors, aliases, and all standard scalar types (strings, numbers, booleans, nulls). It uses the js-yaml library under the hood.
Will my JSON comments be preserved?
Standard JSON does not support comments, so they are ignored. YAML comments are also not preserved when converting to JSON since JSON has no comment syntax.
Is there a file size limit?
There is no enforced size limit. Very large files may be slow to convert, but all processing is done locally in your browser.
Can I convert JSON to YAML?
Yes. Both directions are supported — paste JSON in the input panel and click JSON → YAML to convert.

Bidirectionally convert between YAML and JSON with a single click.

Paste YAML on the left and convert to formatted JSON, or paste JSON

and convert to clean YAML output. Supports configurable indentation

and handles nested objects, arrays, and all standard YAML data types.

All conversion runs entirely in your browser with no data sent to any

server.

Related tools