YAML → JSON / online converter

YAML to JSON Converter

Convert YAML to JSON for tools and APIs that do not read YAML. The structure is the same, only the syntax changes.

01 / how to

How to convert YAML to JSON

01

ADD YOUR YAML

Drop the YAML file into the box above or choose it from your device.

02

CONVERT TO JSON

JSON is already selected. Press Convert and wait a few seconds.

03

DOWNLOAD

Save the finished JSON file. The original is deleted from our server.

02 / what you get

What happens to your data

Kept

  • A list of mappings becomes the records, with the keys of each mapping as fields
  • Anchors and aliases are resolved, so repeated values are written out in full
  • Pretty-printed JSON that any programming language can read
  • Dates written as 2026-01-15 stay as readable text
  • Nested objects and lists keep their structure.

Good to know

  • Only one YAML document per file is supported; a file with several documents separated by --- fails.
  • Comments are not part of the data and are dropped.
  • Anything around the records in the source file (wrapper elements, comments, metadata) is not carried over.

03 / formats

YAML vs JSON

YAML

A YAML file stores structured data in a clean, indentation-based format designed to be easy for humans to read and write. It's the go-to format for configuration files, so you'll often need to edit or convert one when setting up developer tools.

Used in: Docker · CI/CD pipelines · Kubernetes configs

JSON

A JSON (JavaScript Object Notation) file stores structured, nested data as readable text — objects, arrays, and key-value pairs. It's the standard format for web APIs and app configuration, so you'll often get one from a developer, an API response, or an app's settings export.

Used in: Web APIs · App configs · Settings exports

04 / more

More conversions

Have a different file? Open the main converter — it detects the format for you.