Convert JSON to YAML online

JSON
{
    "name": "Tom",
    "age": 37,
    "isActive": true,
    "address": {
        "city": "London",
        "street": "Ramillies Rd"
    },
    "hobbies": [
        "swimming",
        "jogging",
        "football"
    ]
}
YAML
name: Tom
age: 37
isActive: true
address:
  city: London
  street: Ramillies Rd
hobbies:
  - swimming
  - jogging
  - football

JSON and YAML

JSON - JavaScript Object Notation - is a lightweight computer data exchange format. JSON is a text format, based on a subset of JavaScript language. Many programming languages support this data format through additional packages or libraries.
More about JSON you can read on our JSON Formatter & Validator page.

YAML - Ain’t Markup Languageis - is a human-readable data-serialization language. In the beginning, the acronym YAML was supposed to mean Yet Another Markup Language. It is broadly useful for programming needs ranging from configuration files to Internet messaging to object persistence to data auditing. Its first version was proposed in 2001 by Clark Evans in collaboration with Ingy döt Net and Oren Ben-Kiki.
Individual elements of the data structure are separated by new line characters, and their hierarchy is determined by the whitespace indentation. The language introduces three basic data structures that can be incorporated into a document: letters, dictionaries, and scalars. It also supports references, which eliminate the need for data redundancy.
The objectives set for the language by its creators are as follows:

  • YAML is to be human-readable.
  • YAML is to implement data structures built into programming languages.
  • YAML documents are to be portable between programming languages.
  • YAML is to be friendly to typical text processing tools.
  • YAML documents are to be processed by tools in a single pass.
  • YAML is to have high expression strength and be easily expandable.
  • YAML is to be easy to use.

Convert JSON to YAML

To convert JSON to YAML, enter or paste the JSON you want to convert in the JSON field. If there are no errors, it will automatically be converted to YAML and will appear below. Now you can copy it by clicking on the "Copy YAML" button or by selecting it in the edit window and pressing "Ctrl + C" on your keyboard.

Convert YAML to JSON

You can change YAML to JSON. Simply paste or enter content in the YAML window in this format. If it does not contain any errors, the converted text from YAML to JSON will appear in the window above. To copy it to the clipboard simply press the "Copy JSON" button or select the text in the window and copy it with your mouse or keyboard shortcut.