.env File Diff
Compare two .env files showing keys only in A, only in B, and differing.
Comparing two .env files key by key
Paste both files and the page shows what exists on only one side and what exists on both with different values. It is the check that heads off the most mundane deployment incident: the variable that exists in development, does not exist in production, and only surfaces when the code reads it and gets undefined.
The comparison normalises what needs normalising. The export prefix is accepted, because an environment file is often also sourced by a shell. Quotes around a value are stripped before comparing, since the loader strips them — without that, one side quoted and the other not would show as different while holding the same value. Comments and blank lines are ignored.
The output separates three situations because each calls for different action: a key only in the first file is usually a new variable that needs propagating; a key only in the second may be a leftover from something removed; and a differing value is the normal, expected case between environments — database address, API key, log level. The summary at the top gives the count of each.
Frequently asked questions
Does the tool expose my secrets?
Why does an example file help?
Are multiline values handled?
Related Tools
.env Formatter
Formats .env files: sort variables, group by prefix, quote values and remove duplicates.
Mongoose Init Generator
Generate the Mongoose connection to MongoDB plus a sample schema, ready to drop into your Node.js project. Start modeling your data in seconds.
Prisma Init Generator
Generate an initial schema.prisma.
ESLint Airbnb Config Generator
Generate an .eslintrc.json using the Airbnb preset, the most popular JavaScript style guide. Standardize your React and Node code and copy the config.
tmux.conf Generator
Create a custom tmux.conf: prefix key, status bar, mouse, splits and pane navigation shortcuts.
vercel.json Generator
Create a vercel.json with routes, redirects and HTTP headers ready for your Vercel deploy. Set it all up in the browser and drop it into your repo.