How to Use
What is YAML and JSON conversion?
YAML is a human-friendly data format that is common in configuration files. JSON is a machine-friendly data format used by APIs. This tool converts between them in both directions.
How to use it
1. Choose the direction with the tabs.
2. Paste YAML or JSON into the input area.
3. Click Convert.
4. Copy the result.
YAML to JSON
- Powered by the mature js-yaml library.
- Handles indentation, lists, maps, multi-line strings, comments, quoted scalars, numbers, booleans and null.
- Output is pretty-printed JSON with two-space indentation.
JSON to YAML
- Produces clean YAML with two-space indentation.
- Standard array and object layout with proper string quoting.
Tips
- Invalid input shows a readable error with line and column information.
- Useful for converting Docker Compose, CI config or Helm values into JSON.
Privacy
Conversion runs entirely in your browser.