JSON-prettify

    JSON to YAML Converter

    Turn JSON into clean, readable YAML, right in your browser.

    JSON

    YAML

    Your YAML will appear here

    How to convert JSON to YAML

    1. Paste JSON into the input box, or upload or drop a .json file.
    2. The YAML appears as you type. Invalid JSON is repaired where possible.
    3. Copy the YAML or download it as a .yaml file. Use Swap to convert it back.

    Frequently asked questions

    Is my data uploaded?

    No. The conversion runs entirely in your browser; nothing is sent to a server.

    Which YAML version is produced?

    YAML 1.2. Strings that YAML could misread, such as "no", "on" or "1.0", are quoted so they keep their meaning.

    Are large numbers kept exactly?

    Integers of any size stay exact. Decimals with more than about 17 significant digits are rounded, the same limit most programming languages have.

    Is key order preserved?

    Yes. Keys appear in the same order as in your JSON.

    Can I convert YAML back to JSON?

    Yes. Use Swap, or open the YAML to JSON converter.