.env converter
Paste a .env file and get JSON and YAML — or paste JSON/YAML to rebuild a .env file.
Privacy — Your variables never leave the browser. Nothing is sent to a server. Do not commit real secrets to git — use a secrets manager or platform env vars in production.
~~~
Input
Error —
~~~
.env output
JSON
YAML
Paste content above to convert between formats.
~~~
About this tool
.env files hold key=value pairs for local development. Sometimes you need the same data as JSON (for a config file or CI) or YAML (for Docker Compose or Kubernetes). This converter handles common real-world syntax: comments, quoted strings, multiline values with backslash continuations, and optional export prefixes.
It does not validate secret strength or connect to any service. Treat pasted production credentials as sensitive even though they stay local — clear the page when you're done.
~~~