Convert .env File to JSON
Convert a .env file to JSON and back, in your browser.
🔒 100% client-side — no data sent
Turn the environment variables in a .env file into JSON, and back again, in one click. Handy for migrating configuration or feeding it into a script. Conversion happens entirely in your browser, with no upload of your secrets.
What is it for?
- ▸ Migrate a .env config into JSON format
- ▸ Generate a .env file from an existing JSON object
- ▸ Quickly review the list of defined variables
- ▸ Prepare variables for a CI/CD pipeline
FAQ
Does the conversion work both ways?
Yes, you can go from .env to JSON and from JSON to .env.
Are my secrets exposed?
No, everything stays in your browser. No variable is transmitted over the network.
Are comments in the .env file kept?
Comments are not carried into the JSON, which contains only the key-value pairs.
Related tools
Base32 · encode / decode Encode and decode text to and from Base32 (RFC 4648) in your browser. Base58 encode/decode Encode and decode text in Base58 (Bitcoin, IPFS) right in your browser. Base64 · encode / decode Encode and decode text to and from Base64 (UTF-8), right in your browser. Base64URL encode/decode Encode and decode Base64URL (URL-safe variant used in JWT), in your browser. BBCode → HTML Convert forum BBCode into clean, sanitized HTML, right in your browser. Text ↔ binary Convert text to binary (ASCII/UTF-8) and back.