# YAML to JSON

Convert YAML documents to JSON.

## URL

https://ilham.dev/tools/yaml-to-json/

## What It Does

Convert YAML to JSON, preserving nesting, arrays and types. Anchors and aliases are resolved, so the output is the effective document rather than the shorthand used to write it.

## Features

- Runs in the browser
- No login required

## Input

text input.

## Output

text output.

## Privacy

Processing happens locally in the browser.

No input data is uploaded to ilham.dev.

- Requires login: false
- Requires API key: false
- Stores user data: false


## Examples

- What happens to a non-string key?
- Are duplicate keys allowed?




## Questions

### What happens to a non-string key?

JSON requires string keys, so numeric and boolean keys are converted to their string form. That is a real difference between the two formats, not a bug.

### Are duplicate keys allowed?

No. YAML permits them but almost every parser takes the last one silently, which hides mistakes. This tool reports them instead.

