Convert YAML to JSON

Convert YAML config to JSON for tools that only accept JSON. Comments are not carried across. Free, in your browser, no upload.

Overview

Why convert YAML to JSON

JSON is the more practical choice here. API request and response payloads

Comparison

YAML vs JSON: what actually differs

YAML compared with JSON across encoding, fidelity, file size and support.
AttributeYAMLJSON
Full nameYAML Ain't Markup LanguageJavaScript Object Notation
EncodingText — editor-readableText — editor-readable
What it preservesSame data model as JSON, plus comments and anchorsPreserves nesting and value types exactly
Typical sizeCompact — no braces, no quotes on most scalarsVerbose — keys repeat on every record
SupportUbiquitous in DevOps tooling; libraries exist for every language.Native in every programming language and every browser.

How to

How to convert YAML to JSON

  1. 01

    Drop your YAML file

    Drag one or more YAML 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 JSON

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

  3. 03

    Download the result

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

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

YAML to JSON: common questions

No. The YAML to JSON 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 YAML converters

Last updated