.env File Parser — Convert Dotenv to JSON
Parse a .env file and see it as a JSON object. Handles comments, quoted values, escape sequences, and "export" prefixes. Runs entirely in your browser.
Runs 100% in your browser — nothing is uploaded.
| DATABASE_URL | postgres://user:pw@localhost:5432/app |
| API_KEY | sk_test_abc123 |
| DEBUG | true |
| LOG_LEVEL | info |
| MULTILINE | line one line two |
| TZ | UTC |
Frequently asked
A close match to the popular dotenv npm package: comments with #, KEY=value, optional single or double quotes, escape sequences (\n \t \r \\ \") inside double quotes, and a permissive "export KEY=…" prefix for shell compatibility.
No. Parsing runs entirely in the browser. It is safe to paste real secrets — but as with any online tool handling sensitive data, use your judgment.
Interpolation (e.g. $OTHER_VAR) varies between dotenv implementations and is intentionally not expanded here — you get the raw value as written. Add expansion in your own runtime if needed.
Related tools
- JSON FormatterFormat, validate, and minify JSON in your browser. See parse errors with line/co
- YAML FormatterFormat and validate YAML in your browser. Multi-document (---) supported. Errors
- Query String ↔ JSONConvert URL query strings to JSON and JSON back to a query string. Handles repea
- Base ConverterConvert numbers between binary, octal, decimal, and hexadecimal. Supports huge n
- Credit Card ValidatorValidate credit card numbers with the Luhn algorithm and detect the brand: Visa,
- Cron BuilderPick a preset or enter your own fields to build a cron expression. Includes a pl