Sign up free

JSON to YAML Converter

Paste JSON and get tidy block-style YAML for configs, Helm values or docs.

or drop files here

Accepts JSON

Encrypted upload. Files are deleted automatically after 1 hour.

About JSON to YAML

JSON to YAML turns braces and quotes into the indented style most config files use, from Kubernetes and Helm values to GitHub Actions and Ansible. Paste JSON or open a .json file and the YAML appears as you type, ready to copy into your repository. Values kept in a spreadsheet can be turned into JSON first with Excel to JSON.

Keys stay in the order you wrote them instead of being sorted. Chinese, accented and other non-English text is written as is rather than as escape codes, and long strings stay on one line. If the input isn't valid JSON, the message points to the line where parsing stopped, and a file with one JSON object per line is read as a list. It runs instantly on our server and doesn't count as a task.

How to use JSON to YAML

  1. 1
    Paste or open JSON

    Paste your JSON into Input or load it with Open file. Example fills in a small config.

  2. 2
    Watch the YAML appear

    JSON to YAML runs as you type; a syntax error shows the line to check.

  3. 3
    Copy or save it

    Copy the YAML into your editor, or Save it as a .yaml file.

Why use Cubfile for this

  • Key order kept

    The YAML reads in the same order as your JSON, which keeps reviews simple.

  • Readable characters

    Chinese, Japanese and accented text appear as written, not as escape codes.

  • Block style throughout

    Nested objects and lists use indentation and dashes, never inline braces.

  • Nothing saved

    The text is converted in memory and not stored.

FAQ

JSON to YAML: questions and answers

Does JSON to YAML keep my key order?
Yes. Keys appear in the same order as in your JSON; nothing is sorted alphabetically.
Why use YAML instead of JSON?
YAML is easier to read and edit by hand and allows comments, which is why most config tools use it. JSON is stricter and better for data exchanged between programs. When a program needs the JSON back, the reverse tool is in Spreadsheet & Data Converter.
How do I convert JSON to YAML for Kubernetes?
Paste the JSON manifest, copy the YAML and save it as a .yaml file, which kubectl apply -f accepts. Check the indentation if you paste it into an existing file.
Is this JSON to YAML converter free to use?
Yes, with no account needed and no task counted. Each conversion can take up to 1,000,000 characters.
Is it safe to paste configuration here?
The text travels over HTTPS and is converted in memory, then discarded. Still, remove passwords and tokens before pasting a config into any online tool.
Share JSON to YAML with a friendIt runs in any browser, and they can try it without signing up.

Related tools

XLSSQL Excel to SQLGenerate CREATE TABLE and INSERT statements from Excel or CSV.
XMLXLS XML to ExcelTurn repeating XML records into spreadsheet rows.
CSVXLS CSV to ExcelOpen CSV and TSV data in Excel with the right columns and encoding.
CSVJSON CSV to JSONConvert CSV to JSON in your browser. Nothing is uploaded.
CSVXML CSV to XMLConvert CSV or Excel rows into XML records.
XLSCSV Excel to CSVSave each sheet as CSV, line breaks in cells handled.
XLSHTML Excel to HTMLTurn a sheet into an HTML table you can paste into a page.
XLSJPG Excel to ImageSnapshot sheets and charts as images.