Dad’s Data formats tools

.env → YAML Converter

Convert .env files to a flat YAML key-value mapping locally. All values remain strings. Quotes are stripped, comments dropped.

.env Input
YAML Output

YAML output will appear here

Paste .env content and click Convert.

How the conversion works

Each key/value pair becomes a YAML string scalar. The output is a flat YAML mapping — there is no nesting since .env has no concept of hierarchy. Quotes are stripped before output. Only the first occurrence of a duplicate key is included.

Input
APP_NAME="My App"
DB_HOST=localhost
DB_PORT=5432
Output
APP_NAME: My App
DB_HOST: localhost
DB_PORT: '5432'
Note: Numeric-looking values are quoted in YAML output to preserve the string type. A value like 5432 becomes '5432' to prevent YAML parsers from interpreting it as an integer.

Frequently Asked Questions

Your files stay on your computer. Dad promised.

Data formats tools

Search the Data formats tools