---
title: "YAML to JSON Converter - Convert YAML data to JSON format"
description: "Convert YAML data to JSON format while preserving its structure. It is useful for configuration review, data conversion, and preparing JSON for API tests."
canonical_url: "https://web-toolbox.dev/en/tools/yaml-to-json"
meta:
  author: K
  "og:description": "Convert YAML data to JSON format while preserving its structure. It is useful for configuration review, data conversion, and preparing JSON for API tests."
  "og:image": "https://web-toolbox.dev/og/en/tools/yaml-to-json-73b57a70.png"
  "og:image:alt": "YAML to JSON Converter"
  "og:image:height": "630"
  "og:image:width": "1200"
  "og:title": "YAML to JSON Converter - Convert YAML data to JSON format"
---

> Index of every page on this site: [llms.txt](https://web-toolbox.dev/llms.txt)

# **YAML to JSON Converter**

Convert YAML data to JSON

**YAML data**

**JSON data**

Read-only

## What is YAML to JSON Converter?

YAML to JSON Converter turns YAML data into JSON. Use it to inspect configuration files or API data in JSON form.

## How to Use

1. Paste YAML data into the input.
2. Review the JSON result.
3. Change the JSON indentation as needed.

## Main Settings

### JSON Indentation

Choose the indentation width for the JSON output. Use 2 or 4 for review, or Minify for JSON on a single line.

## Input and Output Example

```yaml
name: Taro
age: 30
skills:
  - JavaScript
  - Python
```

This YAML becomes the following JSON.

```json
{
  "name": "Taro",
  "age": 30,
  "skills": [
    "JavaScript",
    "Python"
  ]
}
```

## Use Cases

- Reviewing YAML settings as JSON
- Converting data for API tests
- Looking at Kubernetes or CI/CD settings in another format
- Switching data formats while keeping the structure

## Things to Keep in Mind

- `**yes**`, `**no**`, `**on**`, and `**off**` are treated as strings, not booleans
- Dates are treated as strings
- Comments are not preserved in JSON
- YAML with multiple documents cannot be converted
- YAML with circular references cannot be converted to JSON

**How was your experience?**

Last updated: October 27, 2026

### **Related Tools**

- [<h4>**ASCII to HEX Converter**</h4>](https://web-toolbox.dev/en/tools/ascii-to-hex)
- [<h4>**CSV to JSON Converter**</h4>](https://web-toolbox.dev/en/tools/csv-to-json)
- [<h4>**HEX to ASCII Converter**</h4>](https://web-toolbox.dev/en/tools/hex-to-ascii)
- [<h4>**JSON to CSV Converter**</h4>](https://web-toolbox.dev/en/tools/json-to-csv)
- [<h4>**JSON to TOON Converter**</h4>](https://web-toolbox.dev/en/tools/json-to-toon)
- [<h4>**JSON to YAML Converter**</h4>](https://web-toolbox.dev/en/tools/json-to-yaml)
- [<h4>**Number Base Converter**</h4>](https://web-toolbox.dev/en/tools/number-base-converter)
- [<h4>**TOON to JSON Converter**</h4>](https://web-toolbox.dev/en/tools/toon-to-json)

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://web-toolbox.dev/en#website","@type":"WebSite","description":"アカウント登録不要で使える無料Web開発ツール80種類以上。JSON整形、Base64変換、カラーコード変換、QRコード生成などをブラウザ上で瞬時に実行。開発者の作業効率を大幅に向上させます。","inLanguage":"en-US","name":"Web ToolBox","url":"https://web-toolbox.dev/en","translationOfWork":{"@id":"https://web-toolbox.dev/#website"}},{"@id":"https://web-toolbox.dev/en/tools/yaml-to-json#webpage","@type":"WebPage","description":"Convert YAML data to JSON format while preserving its structure. It is useful for configuration review, data conversion, and preparing JSON for API tests.","name":"YAML to JSON Converter - Convert YAML data to JSON format","url":"https://web-toolbox.dev/en/tools/yaml-to-json","isPartOf":{"@id":"https://web-toolbox.dev/en#website"},"potentialAction":[{"@type":"ReadAction","target":["https://web-toolbox.dev/en/tools/yaml-to-json"]}]},{"@id":"https://web-toolbox.dev/en/tools/yaml-to-json#/schema/web-application/1","@type":"WebApplication","applicationCategory":"UtilityApplication","description":"Convert YAML data to JSON format while preserving its structure. It is useful for configuration review, data conversion, and preparing JSON for API tests.","name":"YAML to JSON Converter - Convert YAML data to JSON format","operatingSystem":"Windows, macOS, Linux, Android, iOS"}]}
```

## Sitemap

See the full [sitemap](https://web-toolbox.dev/sitemap.md) for all pages.
