Converts a .env file into a JSON object.
The .env to JSON converter turns a dotenv-style environment file into a formatted JSON object, parsing each KEY=VALUE line into a key-value pair. It is handy when you need to migrate environment variables into a JSON config, inspect a .env file as structured data, or feed values into tooling that expects JSON. Paste your dotenv content and get a clean, indented JSON object back instantly in your browser.
No. The conversion runs entirely in your browser using client-side JavaScript, and nothing is uploaded or stored on any server. Your environment variables and secrets never leave your device.
Empty lines and lines starting with # are skipped. Lines without an = sign are ignored as well.
Yes. A leading 'export ' on a key is stripped, so 'export KEY=value' becomes the key 'KEY' in the output.
If a value is wrapped in matching single or double quotes, the surrounding quotes are removed. The remaining content is kept as-is, without escape-sequence processing.
Yes. Every value becomes a JSON string; numbers and booleans are not converted to their JSON types. Duplicate keys keep the last value seen.