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.