Uber Tools

JSON / YAML / XML Converter

Convert between JSON, YAML and XML in your browser, as you type

From

To

JSON (detected)

Drop a .json, .yaml or .xml file here

YAML

XML attributes become @name keys and text next to elements #text, repeated elements become lists. YAML tags, complex keys and more than one document aren't supported.


How to convert between JSON, YAML and XML

  1. Paste or type your data, or drop a .json, .yaml or .xml file; its format is detected.
  2. Pick the format to convert to: JSON, YAML or XML.
  3. Choose the indentation, and for XML whether numbers and booleans are read as such.
  4. Copy or download the result.

Questions

How are XML attributes converted?

Attributes become keys starting with @ (e.g. @name), text next to elements becomes #text, and repeated elements become lists, so you can convert back without losing them.

Is anything lost converting YAML?

Plain YAML converts fully. YAML tags, complex keys and several documents in one file have no equivalent in JSON and XML.

Does it check my syntax?

Yes: data that can't be read shows its error instead of a result, so you know to fix it first.

Is my data uploaded?

No. It's converted by your browser as you type.

Related tools