About .env files
This tool parses a .env file into a JSON object (or shell export lines). A .env file stores environment variables as KEY=VALUE pairs for apps and tools. It runs entirely in your browser, so your secrets are never uploaded.
How env Parser works
How to use it
- Paste your .env contents.
- Choose JSON or shell export output.
- Copy the result.
How it works
It reads each KEY=VALUE line, ignores comments and blank lines, strips surrounding quotes, and (for JSON) infers booleans and numbers. Shell mode emits export lines you can source.
Common uses
- Convert .env to JSON
- Inspect environment variables
- Generate shell export lines
- Load config in code
- Review a .env safely
- Migrate config formats
- Debug env values
- Document environment settings
Frequently asked questions
How do I convert .env to JSON?
Paste the file and choose JSON output.
Are comments handled?
Yes — # comments and blank lines are ignored.
Are quotes removed?
Yes — surrounding single or double quotes are stripped.
Are my secrets uploaded?
No — parsing happens entirely in your browser.
Does it infer types?
In JSON mode it converts true/false and numbers.
Can it output shell exports?
Yes — choose the export option.
Is it free?
Yes — completely free with no sign-up.