What this env drift checker finds
- Missing keys. Keys in the reference file that the target does not define. The usual cause of an app that boots locally and crashes in production.
- Extra keys. Keys only in the target. Often stale settings that nobody removed.
- Changed values. Same key, different value. Shown masked unless you ask to see them.
- Duplicates, empty and placeholder values. Repeated keys,
KEY=lines, and values likechangemeoryour_api_key_here. - Secret patterns. AWS access keys, GitHub and Slack tokens, Stripe live keys, JWTs and private key blocks. Only key names are reported.
How to use it
- Paste or open your reference file on the left, usually
.env.example. - Paste or open the file you want to check on the right, for example staging or production.
- Press Check drift. Use Copy report to share the result in a pull request or ticket. The report holds key names only, never values.
Frequently asked questions
Is it safe to paste my .env file here?
The comparison runs in your browser. The page has a Content-Security-Policy with connect-src 'none', so it cannot send data anywhere. It does not use cookies, localStorage or IndexedDB. For maximum caution, use test values or save the page and open it offline.
What is env drift?
Env drift is when the environment variables of two environments slowly stop matching. A variable is added in development but never added to production, or a staging value is copied to production by mistake.
How do I find missing environment variables between two files?
Put the reference file on the left and the target on the right. The first table lists every key present on the left and absent on the right.
Can it detect leaked secrets?
It flags values that match common secret formats and sensitive key names that hold a real looking value. It is a quick check, not a replacement for a full secret scanner such as gitleaks in your CI.
Does it support quotes, comments and export lines?
Yes. It handles KEY=value, export KEY=value, single and double quotes, multi-line quoted values, full line comments and trailing inline comments.
Need to compare plain text, code or any other file instead? Use the text diff checker.