.env file diff
Compare two .env, .properties or .ini files: see which keys were added, removed, changed or unchanged. Values are masked by default because they are often secrets. Everything happens in your browser.
Paste or load at least one file to see the comparison.
How to use it
- Paste the content of the two files into boxes A (before) and B (after), or drop the files: the comparison appears right away.
- Read the numbers: keys added, removed, changed and unchanged. Values are masked, but “changed” means the real value is different.
- If you need to see the values untick “Mask values”; with “Ignore whitespace differences” extra spaces are not counted as changes.
- Check the warnings (duplicate keys, unrecognized lines) and copy or download the report: with masked values it contains no secrets.
Frequently asked questions
Which syntaxes does it understand?
“KEY=value” and “key: value” lines, comments with #, ; or !, the “export” prefix, ini [section] headers (the key becomes section.key), values in double, single or backtick quotes, even over several lines. A trailing comment only counts after a space (A=1 # note).
What happens with duplicate keys?
As most programs do, the last definition wins. The tool warns you with the line numbers, because it is often a copy-paste mistake.
Why are the values hidden?
.env files usually hold passwords and API keys: masked by default, they do not end up in a screenshot or a chat by accident. Only an empty value stays visible.
Do quotes change the value?
No: A="x" and A=x are the same value. In double quotes \n, \t and \" are interpreted as in dotenv; in single quotes and backticks the text stays literal.
Does the shared link contain my files?
Never: it only holds the options (mask, whitespace, unchanged keys). Neither the files nor the values leave the browser.
Privacy
The files are read and compared only in your browser: no data is sent or saved, and the shareable link does not contain the values.