DO IT EASY APP
English

.env file comparer

Put two .env files side by side and find missing, extra and different keys. Values are hidden by default.

  • No sign-up, no fees.
  • Compares two .env files.
  • Shows missing, extra and different-value keys separately.
  • Values are hidden by default; show them if you want.
  • What you type is processed, but never shared with anyone.

How to compare .env files

You deployed and the app won't start; is it a setting that exists in development but was forgotten in production? Three steps:

  1. Paste both files. Put an example or development .env on the left and the production one on the right.
  2. Read the result. Keys that exist in only one file, keys with different values and keys left empty are listed separately.
  3. Show values if needed. Values are hidden behind dots by default; open them with Show values.

What is a .env file?

A .env file stores an app's settings as KEY=value lines: database address, API keys, environment name and so on. There's usually one file per environment (development, test, production). Over time the files drift apart: a new setting is added but never written to the other environments. This tool compares the files key by key to find those gaps.

What you need to know

  • Lines starting with # and empty lines are ignored; the export KEY=value form is read too.
  • Quotes around values are stripped; a trailing # comment after a value is ignored.
  • If a key is written more than once, the last one wins and this is shown as a warning.
  • The tool only looks at keys and values; it never runs the file or sends it anywhere.

Tips

  • To avoid showing real secrets while screen sharing, keep Show values off.
  • To compare two JSON config files, there's the JSON diff tool.
  • For a plain text difference, the text diff helps.
  • To make a new secret, you can use the password generator.

Frequently asked questions

Is the .env comparison free?

Yes, it's free with no sign-up.

Are my secrets sent anywhere?

What you type is processed, but never shared with anyone. The comparison runs in your browser. Still, it's always safer to try it with sample values than to paste real production keys.

Why are values hidden?

So that a secret isn't visible when you share your screen or sit next to someone. You can show them when you want.

What if a key is written twice?

The last one counts and the tool shows a warning.

Are lines starting with `export` read?

Yes.

Can I use it on my phone?

Yes.

Related tools