Convert YAML to JSON and back. Runs entirely in your browser — nothing you paste is sent anywhere.
6 answers to what people ask most about the YAML ⇄ JSON.
Set Direction to YAML to JSON and paste the YAML. The JSON appears on the right, indented with the spaces you chose, and you can save it as data.json.
The most common cause is inconsistent indentation or a tab character, because YAML only allows spaces. The message shows the first line of the parser's error to help you locate it.
Yes. Values such as 42, true and null become real JSON numbers, booleans and null. Quote a value in the YAML, for example "42", to keep it as a string.
Yes, for single-document YAML. Paste the file, convert it to JSON to inspect it, or go the other way to generate YAML from a JSON config.
YAML treats some plain words as booleans. Put quotes around the value if you want it kept as text.
Yes. It's free with no sign-up or limits, and it runs entirely in your browser, so what you type or paste never leaves your device. It works on phones and computers alike.
Something not working? Tell us and we'll fix it.
Report an issue