JSON to YAML Converter
Convert between JSON and YAML, handy for configuration files like Docker Compose, so you can quickly adjust your settings. Runs in your browser, GDPR-compliant.
Your inputs are processed in your browser and are not transmitted to our servers. Note: third-party resources (e.g. advertising and analytics from Google/Cloudflare) and an optional PayPal donation link may transfer data when loading or when clicked. Browser extensions or plugins may be able to read content that is visible in the input fields.
The result will appear here …
How to use this tool (video)
This video is hosted on YouTube. When you play it, data may be sent to Google.
JSON to YAML Converter
The JSON to YAML converter transforms your data in both directions. JSON becomes readable YAML for configuration files such as Docker Compose, CI/CD pipelines or Ansible. Conversely, the tool reads common YAML and produces structured JSON from it.
Supported YAML structure
- Nested objects via indentation
- Lists with dashes, including inline objects
- Strings in single and double quotes
- Numbers, booleans and null
- Inline arrays and inline objects
Note: the YAML import covers the most common cases, but not exotic constructs such as anchors or block scalars with special flags. For typical configuration files the scope is more than enough.
Frequently asked questions
How do I convert JSON to YAML?
Paste your JSON and choose convert. The tool formats the data as readable YAML with indentation, lists and inline objects, ideal for configuration files such as Docker Compose, CI/CD pipelines or Ansible.
How do I convert YAML to JSON?
Paste your YAML and choose the reverse direction. The tool reads common YAML with nested objects, lists and strings and produces structured JSON from it.
Which YAML structures are supported?
Supported are nested objects via indentation, lists with dashes, strings in single and double quotes, numbers, booleans, null, as well as inline arrays and inline objects.
Which YAML features are not supported?
Exotic constructs such as anchors or block scalars with special flags are not read. For typical configuration files the supported scope is more than enough.
Are my data uploaded?
No. The conversion runs entirely in your browser. Your data is not transmitted to our server and is not stored.