ENV COMPARISON TOOL

Config drift is invisible until deploy day.

A key added to staging and never promoted. A URL still pointing at the test host. A flag left on after a debugging session. Paste two .env files and see exactly what differs — nothing uploaded, nothing stored.

Dotenvdiff showing a real comparison result: sections for missing keys, changed values, and identical keys, each with a count badge, plus a CSV export button below the diff output.
Staging .env
Production .env

01  / HOW THE COMPARISON WORKS

Two files in, one diff out — no server involved.

Your env files are pasted into the browser, parsed locally, compared in memory, and discarded when the tab closes. There is no upload, no API call, and no database.

How dotenvdiff processes two env files STAGING DATABASE_URL=... API_KEY=sk-test... PRODUCTION DATABASE_URL=... API_KEY=sk-prod... PARSE PARSE COMPARE Missing / Changed / Same SECTIONED RESULTS Missing • Changed • Same • Secrets EXPORT CSV BROWSER — NO DATA LEAVES

02  / WHAT IT CHECKS

Four categories, one ordered view.

Every key across both files is compared and grouped into one of three diff states, with sensitive keys set apart in their own section — all visible at once, no clicking through tabs.

Missing Keys on one side, absent on the other
Changed Same key, different value between files
Same Identical keys with identical values
Secrets Credential-like keys masked by default

03  / HOW IT WORKS

Four steps, one intent.

No account. No configuration. No upload. Close the tab and every byte is gone.

01 Paste or load

Paste two .env files into the side-by-side panes, or load them from your machine.

02 Compare

Click Compare. The tool parses every key locally and finds what differs — no network call, no server.

03 Review

Missing keys, changed values, and matching keys are grouped into sections. Secrets are masked until you unmask them.

04 Export

Download the full comparison as CSV for a ticket, a review, or a deployment checklist.

04  / WHAT IT COSTS

It costs nothing.

Dotenvdiff is a single-page tool that runs entirely in your browser. There is no backend to provision, no account to create, no data plan to buy. The same features — every category, every export, every masked-secret check — are available to every visitor, on every visit, with no upsell.

See the plans

05  / WHAT IT WILL NOT DO

Knows what it doesn’t do.

A tool that silently returns a wrong-looking answer is worse than one that says it cannot handle that input. Dotenvdiff is explicit about its limits.

Does not connect to any host or secret manager

Dotenvdiff never makes a network request. It cannot pull secrets from AWS, HashiCorp Vault, or any remote store. Paste the values in manually.

Does not judge whether a value is correct

If both files set DATABASE_URL=localhost, Dotenvdiff reports them as identical. It cannot tell you that production should not point at localhost.

Does not rewrite either file

Dotenvdiff produces a CSV export and a screen view. It does not write back to your filesystem or offer to merge changes.

Does not keep any history

Close the tab or refresh the page — the comparison is gone. There are no accounts, no databases, and no audit trail. If you need to keep a record, export the CSV.

These limits are by design, not by omission. The tool holds no opinion about your config and stores nothing about your session.

06  / WHY NOT JUST DIFF

A diff shows every line. Dotenvdiff shows every meaning.

git diff or diff on the command line compares files line by line. That works fine for most files — but .env files have a structure that plain diff ignores. Keys can reorder, comments shift, and a changed value looks the same as a moved line. Dotenvdiff parses the actual key-value pairs, so you see:

It is the difference between a line-by-line comparison and a category-by-category reconciliation. When you are comparing files with fifteen, fifty or two hundred keys, the categories are what matter.

SOMETHING TO TAKE WITH YOU

Nothing to install. Nothing to lose.

Two env files. One comparison. Nothing stored. Paste your files above, or load them from disk, and see exactly what differs between your environments — in the time it takes to click Compare.

Open the app Pricing