Skip to content

Loading the editor only when it is ready

Bash Variables to YAML Converter

Convert Bash export statements into clean, structured YAML. Variable names with underscore separators are reconstructed into nested YAML structure.

Use Cases

  • Config Portability — Move shell config into structured YAML format
  • Documentation — Generate readable YAML from shell environment dumps
  • Cross-Platform — Bridge shell-based configuration into YAML-native tooling
  • Migration — Convert legacy shell export scripts to YAML config files

Example

Input (Bash):

export DATABASE_HOST='localhost'
export DATABASE_PORT='5432'
export DATABASE_POOL_MAXACTIVE='10'
export APP_NAME='MyApp'

Output (YAML):

database:
  host: localhost
  port: "5432"
  pool:
    maxActive: "10"
app:
  name: MyApp