YAML to JSON Converter

Convert YAML data to JSON

Conversion options
JSON indentation
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

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

This YAML becomes the following 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