How do I use the JSON to YAML converter?
- Paste valid JSON.
- Press Convert to YAML.
- Copy or download the YAML file.
JSON to YAML converter: frequently asked questions
Is YAML a superset of JSON?
YAML 1.2 is designed so that valid JSON is also valid YAML, but YAML’s indented style is easier to read and edit.
Are strings quoted?
Only when needed — for example strings that would otherwise be read as numbers, booleans or contain special characters.
Is my JSON uploaded?
No. Everything runs in your browser.
Can I add comments?
Yes, after converting. YAML supports comments starting with #; JSON does not.
What indentation is used?
Two spaces, the most common convention for YAML.
Why is my JSON invalid?
Common causes are trailing commas, single quotes and comments. Fix them with our JSON formatter first.
Can it convert large files?
Yes, within your browser’s memory.
Can I convert YAML back to JSON?
Yes, use our YAML to JSON converter.
Is there an API for this tool?
Selected tools are available through a rate-limited public API. Contact us if you need higher volumes.
Is the json to yaml converter free?
Yes. It is free with no sign-up and no usage limits for normal use.
