YAML to JSON
Convert YAML configuration into JSON you can inspect, diff, or feed to other tools. Anchors and aliases are resolved into plain values. If the file holds several documents, the first is converted and the rest are called out in a warning.
YAML
JSON
Result will appear hereReady. Press Convert or Ctrl+Enter.
How to use the YAML to JSON
- Paste YAML into the input pane.
- Press Convert.
- Copy the formatted JSON.
Example
A small YAML config converted to JSON.
name: json-utils version: 1.0.0 tags: - json - tools
Frequently asked questions
What happens to YAML comments?
They are dropped, because JSON has no comments. The data itself converts exactly.
Which YAML version?
YAML 1.2 core schema, so strings like on, off, and y stay strings instead of becoming booleans.