JSON to YAML Converter
Open or paste JSON and its YAML appears at once, ready to copy or download as .yaml; nothing is uploaded.
Processed on your device. Nothing is uploadedHow to check
Paste text instead
Pasted text stays in this tab and is never sent anywhere.
Turn a JSON file into YAML for a Kubernetes manifest, a Docker Compose file, a GitHub Actions workflow or an OpenAPI spec. Open, drop or paste the JSON and the YAML version opens in a dialog straight away, with keys in the order you wrote them (keys that are whole numbers, such as "2024", included) and long lines left unwrapped, so strings come out whole. Copy it or download it as a .yaml file. The JSON stays open in the viewer behind it, so you can fix a value and convert again. The conversion runs in your browser.
Why use JSON to YAML
Private
Your JSON is converted by your own browser and never sent to a server, so configs with secrets stay on your device.
Not sorted A to Z
Keys come out in the order they appear in the JSON, not sorted A to Z, and keys that are whole numbers, such as "2024", stay where they were.
Works offline
After you have used it once, it keeps working without an internet connection.
How it works: convert JSON to YAML
Open or paste your JSON
Choose a .json file, drop it on the page, paste it into the box, or try a sample.
Read the YAML
The YAML version is shown at once in a dialog: objects become indented mappings, arrays become lists with a dash per item.
Copy or download
Copy the YAML to your clipboard or download it as a .yaml file with the JSON file's name.
What the JSON to YAML converter handles
- Nested objects and arrays, written as indented block YAML.
- Key order as in the JSON file, keys that are whole numbers such as "2024" included.
- Long strings kept on one line, never folded at 80 characters.
- Strings that would read as something else in YAML (yes, no, on, 0123, dates) are quoted so they stay strings.
- Arabic and other non-Latin text written as it is, not as escape codes.
- Input from a .json file, a drop, the paste box or a sample, up to 10 MB.
JSON to YAML: what it can't do
- The JSON must be valid; the page shows the error and the JSON validator repairs common mistakes.
- JSON has no comments, so the YAML has none either.
- Files up to 10 MB.
JSON to YAML: questions and answers
- Is my file uploaded?
- No. The JSON is read and turned into YAML by your browser, on your device. Pasted text stays in this tab and is never sent anywhere.
- Will the keys be sorted alphabetically?
- No. Keys keep the order they have in your JSON, which matters for files people read, such as a Compose file or a workflow. That includes keys that are whole numbers, such as "2024", which stay where you wrote them.
- Why are some values in quotes in the YAML?
- In YAML, bare words such as yes, no, on, off or 2026-11-19 can be read as booleans or dates. Strings like these are quoted so that reading the YAML back gives the same strings your JSON had.
- Can I use the result for Kubernetes or Docker Compose?
- Yes. The output is plain block-style YAML that kubectl, Docker Compose and GitHub Actions read. The converter changes the format only, not the meaning, so the content still has to be a valid manifest.
- Is there a size limit?
- Files up to 10 MB. Larger files are refused before they are read.
- Can I convert YAML back to JSON?
- Yes, on the YAML to JSON page, which opens a .yaml or .yml file as JSON.
- How do I convert JSON to YAML?
- Open or paste the JSON in OpenAnyDoc's JSON to YAML converter and the YAML appears at once, with keys not sorted A to Z. Copy it or download it as a .yaml file; the JSON is converted in your browser without being uploaded.
Why it's private: your files never leave your browser
Most online viewers upload your file to a server, so a copy of it leaves your device. OpenAnyDoc works the other way round: your browser reads the file and draws it on your screen. Nothing is uploaded, there is no account, and the file is gone from memory when you close the tab, so there is nothing for us to store, see or lose.
How we tell you about new features
Announcements are based on the release date shown to everyone, and nothing is stored on your device or sent anywhere.