What is YAML? - YAML tutorial

YAML stands for YAML Ain’t Markup Language.

YAML is a human-readable data serialization language. It is commonly used for configuration files but could be used in many applications where data is being stored or transmitted.

It is broadly useful for programming needs ranging from configuration files to Internet messaging to object persistence to data auditing.


The design goals for YAML are, in decreasing priority:

  1. YAML is easily readable by humans.
  2. YAML data is portable between programming languages.
  3. YAML matches the native data structures of agile languages.
  4. YAML has a consistent model to support generic tools.
  5. YAML supports one-pass processing.
  6. YAML is expressive and extensible.
  7. YAML is easy to implement and use.


- name: Xavier country: Australiaage: 54- name: Tomcountry: US

Equivalent JSON code:

[ { "name": "Xavier", "country": "Australia", "age": 54 }, { "name": "Tom", "country": "US" }]