ENV to JSON Converter
Convert .env files to JSON format instantly
All processing happens in your browser. No data is sent to any server.
JSON Indentation
Paste .env file content above to convert it to a JSON object. Comments and empty lines are ignored; quoted values are unquoted automatically.
Why This Tool
Environment variable files (.env) are the standard way to configure applications locally. When you need to inspect, compare, or transform your .env configuration programmatically, converting to JSON makes it accessible to any JSON-aware tool, script, or API.
How It Works
Paste your .env file contents into the input area. The tool parses each KEY=VALUE pair, handles quoted values (single and double quotes), strips inline comments, and skips blank lines. The output is a clean JSON object mapping variable names to their values.