Skip to content
FileConvertora

Free YAML to JSON

Convert YAML config files to JSON, with clear error messages when the YAML has a mistake. Several documents separated by --- become a list.

Runs on your device

What to do next

How to use YAML to JSON

  1. 1

    Paste YAML or drop a .yml file.

  2. 2

    The JSON appears as you type; set the indent or sort the keys if you like.

  3. 3

    Copy the JSON or download it as a file.

YAML to JSON converts YAML files, such as Kubernetes manifests, Docker Compose files and CI pipelines, into JSON for APIs, code and tools that only read JSON. Several documents separated by --- become a list.

If the YAML has a mistake, the error message shows the line and column.

Common YAML errors

Tabs instead of spaces, items at the same level not lining up, and a missing space after a colon cause most errors. The message points to where the parser got confused, which is often the line just after the real mistake.

Anchors and aliases

YAML lets you reuse blocks with &anchors and *aliases. They are expanded in the JSON, so every value appears in full.

FormatLooks likeUsed forNotes
YAMLIndentationConfig files (Docker, Kubernetes, GitHub Actions)Comments allowed; indentation matters
JSONBraces and quotesAPIs, web apps, configStrict: no comments

  • Move data from a YAML source into a tool that expects JSON.
  • Check how YAML data looks in JSON before using it in a config or an import.

  • The file is opened and processed by your browser on your own device. It is never uploaded, so no server, including ours, ever receives a copy.
  • Your data is parsed and written in your browser, which matters for API keys, tokens and customer data.

It says the input is invalid
The error shows the line. Common causes: tabs in YAML, a trailing comma in JSON, an unclosed tag in XML.
Nested data looks flat
CSV can’t hold nested objects; nested values are joined into column names like address.city.

Questions

Why does my YAML give an error?

Usually indentation: YAML uses spaces, not tabs, and items at the same level must line up. The message shows the line and column.

Are anchors and aliases supported?

Yes. &anchors and *aliases are expanded into the JSON.

Is my data uploaded?

No. Everything is converted in your browser, so private config files and data stay on your device.

What can I do with the JSON?

JSON Formatter makes it readable or minifies it, and JSON to CSV turns a list into a spreadsheet. JSON to YAML converts back.

Something not working, or a question that isn’t here? Tell us about it

Popular conversions

More file tools

See all 28