.env File Parser
File
A robust browser-based parser for `.env` files that handles the real-world quirks: single vs double quotes (escape sequences only resolve in double quotes), multi-line values for things like RSA private keys, inline `# comments` after values, `export FOO=bar` prefixes, and empty values. Once parsed, export the result in the format your next environment needs — JSON for testing, YAML for Kubernetes/Helm, `export` lines for shell scripts, `ENV` directives for Dockerfiles, or TOML blocks for Netlify environment contexts.
| Key | Value | Inline comment |
|---|---|---|
| DATABASE_URL | postgres://user:pass@localhost:5432/mydb | |
| DB_POOL_SIZE | 10 | |
| APP_NAME | My App | |
| APP_VERSION | 1.0.0 | |
| APP_DEBUG | true | |
| OAUTH_PRIVATE_KEY | -----BEGIN RSA PRIVATE KEY----- MIIEowIBAAKCAQEAxYz... -----END RSA PRIVATE KEY----- | |
| ROOT_DIR | /opt/app | |
| LOG_DIR | ${ROOT_DIR}/logs | |
| EMPTY | ∅ | |
| PORT | 3000 | default port |
{
"DATABASE_URL": "postgres://user:pass@localhost:5432/mydb",
"DB_POOL_SIZE": "10",
"APP_NAME": "My App",
"APP_VERSION": "1.0.0",
"APP_DEBUG": "true",
"OAUTH_PRIVATE_KEY": "-----BEGIN RSA PRIVATE KEY-----\nMIIEowIBAAKCAQEAxYz...\n-----END RSA PRIVATE KEY-----",
"ROOT_DIR": "/opt/app",
"LOG_DIR": "${ROOT_DIR}/logs",
"EMPTY": "",
"PORT": "3000"
}Variable expansion (${VAR}) is preserved literally — not resolved. Add a runtime expander if needed.
How to use
- Paste your `.env` file (or load the sample to see all supported syntax).
- Review the parsed key/value/comment table.
- Pick an export format and copy. Multi-line values are preserved (YAML uses `|`, Docker uses JSON-escaped string).
Frequently asked questions
- What's the difference between single and double quotes?
- Inside double quotes, escape sequences like `\n`, `\t`, `\"` are interpreted. Inside single quotes, they're literal — so `FOO='line1\nline2'` keeps the backslash-n. This matches the standard dotenv behavior used by `dotenv` (npm) and `python-dotenv`.
- Does this expand `${VAR}` references?
- No — variable expansion is dotenv-implementation-specific and we want the parser output to faithfully represent the file as written. Use a tool like `dotenv-expand` after import if you need it.
- Is the data sent anywhere?
- No. Parsing happens entirely in your browser. The `.env` file content never leaves your device.
Related tools
Image → PDF Converter
Combine multiple JPG / PNG images into a single PDF with adjustable page size, orientation, and fit.
ZIP Inspector
Drop a ZIP and see every file inside — sizes, contents, and per-file download — without unpacking it locally.
File Splitter
Split a large file into smaller chunks to bypass attachment or upload size limits.
Text Encoding Converter
Open text files in legacy encodings (EUC-KR, Shift_JIS, Windows-1252…) as readable UTF-8.
File Hash (Checksum)
Compute SHA-1, SHA-256, and SHA-512 checksums of any file.
CSV ↔ JSON Converter
Convert CSV to JSON and JSON back to CSV, with a delimiter option.