Convert .env to JSON

Paste your .env file and get clean JSON instantly. Free, private, runs in your browser.

🔒 100% client-side. Your keys, secrets and values are never sent to any server and never stored.

.env

.env.example (secrets removed)

Input

Output

Paste your .env content

How to convert .env to JSON

Paste your KEY=value lines into the Input box, keep From = env and To = json, then click Convert. Comments, export prefixes and quoted values are handled for you.

When is this useful?

JSON is handy for config files, CI/CD variables, serverless dashboards (AWS Lambda, Vercel, Netlify) and test fixtures. All values are output as strings, exactly as environment variables are.

Frequently asked questions

Are numbers and booleans kept as numbers?

No. Environment variables are always strings, so PORT=3000 becomes "PORT": "3000".

Is my data uploaded?

No. The conversion runs entirely in your browser.