TR

Home / Convert / YAML to JSON Converter

📘 YAML to JSON Converter

YAML to JSON Converter – get instant, free results right on your device.

WhatsAppTelegramX

Supports the common subset of YAML: indented mappings, lists, inline [ ] and { } shorthand, quoted strings, and | and > blocks. Anchors (&, *), tags (!) and multiple documents are not supported. Not an official institution.

Last updated: November 2026 · Parameter year: 2026 · Methods and sources: Methodology · Editorial policy

What is YAML to JSON Converter?

YAML is an indentation-based, readable data format used especially in Docker Compose, Kubernetes, CI/CD, and application settings files. JSON is the common language of APIs. To see what data structure a YAML file actually produces, or to give it to a tool that expects JSON, you need to convert YAML to JSON.

The tool supports indented mappings, lists starting with “-”, short-form flow syntax with brackets and braces, quoted strings, and | and > block scalars. For example, the line “port: 8080” becomes {"port": 8080}; true, false, and null values are converted to their JSON equivalents, and numbers to numbers. In case of an error, it reports the line number; tabs cannot be used for indentation.

A common subset of YAML is supported; anchors (&), aliases (*), tags (!), and multiple documents are not supported. Blank lines in block scalars may not be preserved. The input is not sent to a server; it is processed in the browser. For the reverse conversion, see the JSON to YAML Converter tool.

How to use

Fill in these fields: YAML. Then press the button; the result appears on the same page and your data never leaves your device.

Formula

a: 1 → {"a": 1}

Example

a: 1 → {"a": 1}

Worked examples and tips

Example 1: A configuration file has ad: AracMerkezi, surum: 2, aktif: true, then a list araclar (json, base64), and under sunucu, port: 8080 and host: localhost. The tool converts this into a single JSON object; surum is written as the number 2, aktif as the boolean true, araclar becomes the array ["json", "base64"], and sunucu becomes an inner object with port 8080 and host "localhost".

Example 2: If you enter a YAML list consisting only of the lines - elma, - armut, - kiraz, the result is the array ["elma", "armut", "kiraz"]. An array at the root level is also accepted.

Example 3: If you write hizmet: web, port: "8080", bos: null, surum: 1.5, the output keeps hizmet as "web", port in quotes as "8080" (that is, text), bos as null, and surum as the number 1.5. Adding quotes changes the type of the value; this difference matters when debugging code.

Tips and common mistakes: In YAML, indentation carries meaning and you should not use tab characters; two spaces is the standard choice. Words such as true, false, null, and yes can take on special meaning when written without quotes; put values like the country code NO in quotes. Write text containing a colon in quotes. After conversion, numbers stay numbers if unquoted and text if quoted; check the type you expect.

When is it used? Before giving a structure from a Docker or CI configuration to a tool that expects JSON.

Frequently asked questions

YAML to JSON Converter – how to use it?

Fill in the fields and press the button; the result appears instantly. Example: a: 1 → {"a": 1}

YAML to JSON Converter – is it free, and is my data stored?

Yes, it is free and requires no sign-up. Because processing happens in your browser, the information you enter is not sent to a server.

Related guide

Related tools

📏Kilometers ↔ Miles ConverterConvert kilometers to miles and miles to kilometers.🌡️Celsius ↔ Fahrenheit ConverterConvert temperature between Celsius and Fahrenheit.🐎kW ↔ HP ConverterConvert engine power between kW and horsepower (PS).🎨HEX ↔ RGB ConverterConvert a color code between HEX and RGB.⚖️Weight ConverterWeight Converter – get instant, free results right on your device.📏Length ConverterLength Converter – get instant, free results right on your device.