.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.

Your data stays on your computer. Files are processed in your browser and are never uploaded.

Drop the first file (.env, .properties, .ini) here or paste the text below.
Drop the second file here or paste the text below.
Options

On by default: .env values are almost always secrets. The comparison still uses the real values.

Paste or load at least one file to see the comparison.

Keyboard shortcuts

In this tool

This tool has no keyboard actions.

Everywhere

Open this panel (outside text fields)
?
Closes panels and menus, never clears data
Esc
Search for a tool
/ or CtrlK

How to use it

  1. Paste the content of the two files into boxes A (before) and B (after), or drop the files: the comparison appears right away.
  2. Read the numbers: keys added, removed, changed and unchanged. Values are masked, but “changed” means the real value is different.
  3. If you need to see the values untick “Mask values”; with “Ignore whitespace differences” extra spaces are not counted as changes.
  4. 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.

Tool chains

Link several tools into a path: after using a tool, “Send to…” offers the next step first. Saved chains keep only a name and the tools, never your data.

Saved chains

No saved chains.

New chain