Environment Variable Comparator for .env Files
Compare two .env files and list added, removed, or changed keys.
Environment Variable Comparator
Compare two .env files to see what changed between environments or branches.
This helps teams validate configuration drift before deploys or local setup changes.
How to use the Environment Variable Comparator
- Paste the first
.envcontent. - Paste the second
.envcontent. - Click Compare to see differences.
Common use cases
- Verifying staging and production configs match.
- Checking new keys added in a release.
- Auditing changes after a merge.
- Troubleshooting missing environment variables.
Tips & notes
- Comments and blank lines are ignored.
- Values are treated as strings for comparison.
- Review sensitive keys before sharing results.
Related developer tools
- .env to netlify.toml Converter
- JSON Formatter
- URL Encoder
FAQ
Are comments ignored?
Yes. Commented lines are skipped.
Does it compare values or just keys?
It reports both missing keys and changed values.
Does order matter?
No. Keys are compared regardless of line order.