YAML to JSON

🔒 Runs in your browser — nothing is sent to a server

Paste any YAML document below and convert it to formatted JSON in one click. Supports all standard YAML features including nested objects, arrays, and multi-line strings.

Two-pane view: input and output side by side
Copied!

Examples

Input
name: John
age: 30
city: New York
Output
{
  "name": "John",
  "age": 30,
  "city": "New York"
}
Input
items:
  - apple
  - banana
enabled: true
Output
{
  "items": [
    "apple",
    "banana"
  ],
  "enabled": true
}

FAQ

What is YAML?

YAML (YAML Ain’t Markup Language) is a human-readable data format used for configuration files and data exchange. It uses indentation (spaces) instead of brackets and commas, making it clean and easy to read. YAML is commonly used in DevOps tools, configuration files, and applications where clarity matters.

What is JSON?

JSON (JavaScript Object Notation) is a lightweight, text-based data format used to store and exchange data. It represents data as key–value pairs and arrays, making it easy for both humans to read and machines to parse. JSON is language-independent but is most commonly used in web applications to send data between a client and a server.

Why convert YAML to JSON?

JSON is supported by virtually every programming language and API, while YAML is primarily used for configuration. Converting YAML to JSON lets you use config data in any JSON-based system.

Is my data safe?

Yes. All processing for this tool happens 100% in your browser — nothing is uploaded, sent, or logged on any server.

Related tools