Skip to the converter

YAML to JSON converter, without the upload.

Turn YAML into JSON. It is converted in your browser, so the file never leaves your device.

Drop YAML files here

or choose from your computer paste with Ctrl V

Ready · other file types work too0 bytes uploaded, ever

Convert to

How to convert YAML to JSON

  1. Add your YAML config files

    Drop YAML (YML) files onto the box above, or click it to choose them. ToAny reads the file's contents to detect the type, so a wrong extension does not matter.

  2. JSON is already chosen

    Press Convert. There is nothing else to set. The work happens in this tab.

  3. Download

    Save the JSON, or download everything as one ZIP if you converted several files.

Why ToAny

  • Private by construction

    The YAML to JSON converter is part of this page and runs inside your browser. Your config files are never sent to ToAny or to anyone else.

  • No upload, no queue

    Nothing has to travel to a server and back, so the conversion starts the moment you press Convert, even on a slow connection.

  • Free, without an account

    No sign-up, no email address and no watermark. Add several files and download them together as a ZIP.

YAML to JSON: what to expect

Most APIs and programming languages take JSON, not YAML. Every YAML document that uses plain maps, lists and scalars has an exact JSON equivalent. YAML comments have no place in JSON and are dropped.

Keys, nesting and values carry over. Comments in the YAML file are not carried over, because only the data is read. A YAML file with several documents (separated by ---) is read as a list of documents.

YAML vs JSON

YAML

YAML data

YAML expresses the same structures as JSON using indentation instead of brackets, and allows comments. It is the usual choice for configuration in tools like Docker Compose, Kubernetes and GitHub Actions.

Opens in Any text editor

YAML converter
JSON

JSON data

JSON represents data as nested objects and lists in plain text. It is the default language of web APIs. Unlike a spreadsheet it can be nested to any depth, which is also why turning it into rows and columns takes a decision about how to flatten it.

Opens in Any text editor, every programming language, browser developer tools

JSON converter
YAML compared with JSON
YAMLYAML dataJSONJSON data
Stands forYAML Ain't Markup LanguageJavaScript Object Notation
TypeStructured data (text)Structured data (text)
CompressionNoneNone
Introduced2001, by Clark Evans, Ingy döt Net and Oren Ben-Kiki2001, by Douglas Crockford
Opens inAny text editorAny text editor, every programming language, browser developer tools
Best forConfiguration files written by peopleAPIs and data exchanged between programs
File extension.yaml, .yml.json

Questions

Are my config files uploaded anywhere?

No. The YAML to JSON conversion runs inside your browser, on your own phone or computer. The file is not sent to ToAny or to anyone else.

Is anything lost when converting YAML to JSON?

The values are kept. Anything JSON has no way to express, such as formatting, formulas or nesting, is simplified or left out.

Can I convert several YAML files at once?

Yes. Add as many as you like, convert them together and download each result or all of them as one ZIP.

How do I convert YAML to JSON on Windows, Mac, iPhone or Android?

The steps are the same everywhere because ToAny runs in the web browser: open this page in a current version of Chrome, Edge, Safari or Firefox, add the YAML file, press Convert and save the JSON. There is nothing to install.

Is there a file size limit?

Yes. Data files up to 300 MB are accepted; a larger file is refused with a message. Beyond that the limit is your device's memory, since nothing is uploaded; a computer copes with large files better than a phone.