YAML to Properties

How to use YAML to Properties online?

  1. Write or paste your YAML string on the left side.
  2. Click the "Yaml to properties" button to convert your YAML into Properties 
  3. Copy the text on the right side containing Properties.

YAML to Properties Example

Input YAML string

id: 1
name: John
age: 24
db:
  tyle: mysql
  host: 127.0.0.1
  port: 3306
  username: root
  password: root

Output Properties string:

id=1
name=John
age=24
db.tyle=mysql
db.host=127.0.0.1
db.port=3306
db.username=root
db.password=root

What is a YAML file?

YAML is a human-readable data serialization language, commonly used for writing configuration files.
YAML is a streamlined programming language because it is designed to be easy to read and understand. It can also be integrated with other programming languages. Due to its flexibility and accessibility, YAML is used by Ansible® to create automation workflows in the form of Ansible Playbooks.

What is a Properties file?

.properties is the file extension primarily used in Java-related technologies to store application configuration parameters. They can also be used to store strings for internationalization and localization; these are known as property resource bundles.