.env Parser
Parse .env files into JSON, YAML, shell exports, or back to .env. Edit values in a table. 100% client-side — your secrets stay local.
.env.example for sharing, never real secrets.| Key | Value | |
|---|---|---|
| # Application config | ||
| # Database | ||
| # Secrets (do not commit) | ||
| # Feature flags | ||
| # LOG_LEVEL=debug | ||
{
"NODE_ENV": "production",
"PORT": "4001",
"APP_NAME": "CodeKeet",
"APP_URL": "https://codekeet.com",
"DATABASE_URL": "postgresql://user:pass@localhost:5432/db",
"DB_POOL_SIZE": "10",
"JWT_SECRET": "super-secret-key-change-me",
"API_KEY": "sk_test_abc123xyz",
"ENABLE_ANALYTICS": "true",
"ENABLE_DEBUG": "false"
}About .env Parser
.env files are the standard way to store environment variables for applications — API keys, database URLs, feature flags, and other configuration. They are used by Node.js (dotenv), Python (python-dotenv), Ruby, Docker Compose, and many CI/CD systems. Yet .env files are simple text without a formal spec, which makes debugging tricky: quotes, escapes, comments, and shell expansion all behave in subtle ways. This tool parses any .env file into a clean table, shows each variable with its value and comment, detects quoting style, and converts to JSON, YAML, or shell exports. Because secrets are often stored in .env files, this tool runs entirely in your browser — nothing is uploaded.
How It Works
- Paste or upload a .env file.
- See each variable parsed into a table (key, value, quote style, comment).
- Edit values, add new variables, or remove existing ones.
- Export as JSON, YAML, shell exports, or back to .env format.
✨ Key Features
- ✓Parse .env files with full syntax support
- ✓Handle single quotes, double quotes, and unquoted values
- ✓Handle escape sequences (\n, \t, \", \\)
- ✓Skip and preserve comments (# ...)
- ✓Handle multi-line values with quotes
- ✓Detect shell-style expansion ($VAR, ${VAR})
- ✓Editable table view
- ✓Add / remove variables
- ✓Hide secret values (mask view)
- ✓Export to JSON
- ✓Export to YAML
- ✓Export to shell export statements
- ✓Export back to .env format
- ✓100% client-side — your secrets never leave your browser
🎯 Common Use Cases
- →Debugging a .env file that is not loading correctly
- →Converting .env to JSON for a Node.js config
- →Preparing .env for Docker Compose or CI/CD
- →Documenting environment variables for a project
- →Migrating config between platforms
- →Reviewing .env files safely without exposing secrets
- →Generating shell export statements for scripting
- →Converting to YAML for Kubernetes ConfigMaps
💡 Advanced Tips & Pro Insights
- ▸Double quotes ("...") interpret escapes (\n, \t) and expand variables ($VAR). Single quotes ('...') preserve everything literally. Unquoted values are trimmed of whitespace but do not support escapes.
- ▸Values with spaces MUST be quoted in .env. Otherwise, the parser stops at the first space.
- ▸Comments start with #. They can be on their own line or after a value (only if separated by whitespace).
- ▸Variable expansion ($VAR, ${VAR}) is a shell feature — some .env parsers support it, others do not. This tool detects and preserves the syntax.
- ▸Never commit real .env files with secrets to git. Use .env.example with placeholder values, and add .env to .gitignore.