How to use it
- 1Paste your .env or drop a file onto the input panel.
- 2Adjust the options — the result updates as you type.
- 3Copy the JSON, YAML, K8s, Terraform… or download it. Drop several files to convert a batch into one ZIP.
Parsing rules
The parser follows dotenv conventions: export prefixes are ignored, double-quoted values understand \n and may span lines, single-quoted values are literal, and a # starts a comment only when it follows whitespace — so a URL fragment or a password containing # survives.
Going the other way, nested JSON or YAML is flattened with underscores (database.host → DATABASE_HOST), and Kubernetes ConfigMaps and Secrets are read directly, with Secret values base64-decoded.
Output formats
Kubernetes Secret output base64-encodes each value as the API requires; ConfigMap output keeps them readable. Shell, Docker, Heroku and Fly.io outputs quote each value so spaces and special characters reach the platform intact.
GitHub Actions output references each variable as a repository secret rather than embedding the value, which is what you want in a workflow file you are going to commit.
Questions
Are my secrets sent anywhere?
No. Parsing and conversion happen in JavaScript on this page. There is no server-side step, and the page works with your network disconnected.
Does base64 in a Kubernetes Secret protect the values?
No. Base64 is an encoding, not encryption — anyone with the manifest can decode it. Don't commit Secret manifests; use Sealed Secrets, SOPS or an external secrets operator.
Guides that use this tool
· 5 min read
JSON, YAML or TOML? Converting configuration without surprises
What changes when config moves between JSON, YAML and TOML: the Norway problem, version strings, octal numbers, nulls, comments and large integers — and how to fix each.
· 5 min read
From Docker Compose to Kubernetes: what translates and what you must redesign
Moving Docker Compose to Kubernetes: Deployments and Services, depends_on, volumes, secrets, health checks, cron jobs — and the parts that need a redesign.