Flatten a YAML file to KEY=value lines. Part of the DevTools Surf developer suite. Browse more tools in the Converters collection.
Use Cases
Converting Docker Compose config to environment variables for local dev
Flattening Kubernetes ConfigMap YAML into .env format
Migrating Spring Boot YAML config to environment variables
Extracting config values from Ansible playbooks into shell scripts
Tips
Nested YAML keys are flattened with underscore separators
Review the output for any sensitive values before committing
Use the result directly in your .env file or CI/CD secrets
Fun Facts
YAML was first proposed in 2001 by Clark Evans, and its name originally stood for 'Yet Another Markup Language' before being changed to 'YAML Ain't Markup Language.'
The .env file convention was popularized by the Twelve-Factor App methodology published by Heroku in 2011, which advocates storing config in environment variables.
Docker Compose introduced YAML-based service configuration in 2014, making YAML-to-env conversion a common DevOps task.