Convert JSON to YAML

Convert JSON to YAML for config files that humans read and review in diffs. Free, in your browser, no upload.

Overview

Why convert JSON to YAML

YAML is the more practical choice here. CI pipeline and deployment configuration

Comparison

JSON vs YAML: what actually differs

JSON compared with YAML across encoding, fidelity, file size and support.
AttributeJSONYAML
Full nameJavaScript Object NotationYAML Ain't Markup Language
EncodingText — editor-readableText — editor-readable
What it preservesPreserves nesting and value types exactlySame data model as JSON, plus comments and anchors
Typical sizeVerbose — keys repeat on every recordCompact — no braces, no quotes on most scalars
SupportNative in every programming language and every browser.Ubiquitous in DevOps tooling; libraries exist for every language.

How to

How to convert JSON to YAML

  1. 01

    Drop your JSON file

    Drag one or more JSON files onto the drop zone above, or click to browse. Files stay on your device — there is no upload step. data formats can't be reliably identified from their bytes alone, so the extension is used to work out the source format.

  2. 02

    Convert to YAML

    convert.now parses the JSON and writes it out as YAML in a Web Worker, so the page stays responsive even on large files. Nothing is sent anywhere.

  3. 03

    Download the result

    Download the YAML file, or a zip of all of them for a batch. Filenames are preserved, with the extension changed to .yaml.

Why here

Why convert.now

  • Private

    Files stay in your browser. No upload step. Nothing for anyone to see.

  • Fast

    No queue, no upload wait. Conversion starts the moment you drop a file.

  • Free

    No ads. No file-count limit. No sign-up wall. Just the converter.

FAQ

JSON to YAML: common questions

No. The JSON to YAML conversion runs entirely in your browser. Files never leave your device, and there is no server involved in the conversion at all. Open DevTools' Network tab and run a conversion if you want to confirm it — you will see the page and its code load, and no request carrying your file.

More

Related JSON converters

Last updated