130 of 149 tools live Roadmap LatestImage to Text

YAML to JSON

Paste YAML, get JSON, with any error pointed to by line and column.

Works in your browser. Nothing you paste is sent to us.

YAML

Options

Converted in your browser. Nothing you paste is sent anywhere.

YAML to JSON at a glance

Price
Free
Data sent to us
None, it runs in your browser
Sign-up
Not needed
Formats
JSON, YAML, XML, any direction
Options
Indent, sort keys, XML root and item names
Size
Files up to 20 MB

How to use YAML to JSON

Takes about 1 minute. You need some JSON, YAML or XML.

  1. Choose the formatsPick From and To at the top, or leave them and let the tool read what you paste as what it looks like.
  2. Paste or open the filePaste into the left box, or press Open a file or drop one on the box. The result appears on the right as you type.
  3. Copy or downloadSet the indent or XML names under Options if you need to, then press Copy or Download.
JSON, YAML and XML Converter: Convert JSON, YAML and XML into one another as you type, with the errors pointed out, on your device.

Paste a YAML file, such as a workflow, a compose file or an app config, and read it as JSON on the right, indented as you like and optionally with sorted keys. A YAML mistake, usually indentation or a stray tab, is reported with its line and column. Anchors and merge keys are resolved into plain values, and comments are dropped, since JSON has none. Nothing is sent anywhere.

How it works

YAML to JSON is a web page that does its work on your own device. The file you choose is opened by your browser, changed there and saved from there; it is never sent to a server, so there is no copy of it anywhere to delete, no queue and no waiting for an upload. Most online tools of this kind send your file to their servers and work on it there, and many keep it for a while. This one does not. There is no account, no watermark and no limit on how often you use it, and the result downloads the moment it is ready.

YAML surprises

YAML reads some unquoted words as values: yes and no as booleans in older versions, 1.10 as a number, and a value starting with * as an alias. If a field comes out as the wrong type, quote it in the YAML.

Questions

Can it convert several YAML documents in one file?

The first document is converted. Split a multi-document file at the --- separators and convert each part.

Other shortcuts

More

Privacy policy · Support · Changelog

Suggest a tool

Tell us what the tool should do. If we build it, we will let you know.

Used only to reply to you. See our Privacy Policy.