.env to JSON Converter

Convert .env file lines (KEY=value) to a JSON object. Handles export prefixes, quotes and inline comments. Runs locally in your browser.

About this tool

Paste the contents of a .env file and get a JSON object. Comments and blank lines are skipped, quotes are stripped and double-quoted values support \n. Secrets stay in your browser; nothing is uploaded.

Related: JSON Formatter & Validator · Base64 Encode & Decode · URL Encoder & Decoder · SHA-256 / SHA-1 Hash Generator · Unix Timestamp Converter