TextCompareLabCompare .env files online

Review environment-variable edits locally, with special care around secrets.

Compare two .env files without uploading them

Environment files can look nearly identical while pointing an application at different services. Paste a safe, redacted copy of the earlier file on the left and the revised file on the right. Review changed variable names and values together. A text diff makes small edits visible, but it cannot know which environment your application will actually load or which variables a framework ignores.

Worked example

APP_ENV=staging
LOG_LEVEL=debug
API_TIMEOUT=20
APP_ENV=production
LOG_LEVEL=warn
API_TIMEOUT=20

The application environment and log level changed; the timeout did not. Those two edits could be intentional for a release, but the comparison cannot establish that they are appropriate for your system.

How to review the result

Use placeholders instead of real passwords, API keys or access tokens whenever possible. Keep one variable per line and the same variable order in both copies. Leave Ignore case off because variable names and values may be case-sensitive. Review quoting, blank values and comments carefully: different dotenv libraries can interpret them differently. After the visual review, check the actual environment configuration through your deployment process.

Use the arrows to move between changes, or select Changed lines only to hide unchanged lines. Copy or download the result when you need a separate record. Recent comparisons can remain in this browser's History, so clear them when using a shared device.

What this comparison does not check

The tool does not parse dotenv syntax, expand references or verify credentials. It cannot tell whether a secret leaked elsewhere. Comparisons may be saved in this browser's History. Do not create a share link containing secrets, even if password protection is available, and clear local history after working on a shared device.

Privacy and sharing

The comparison runs on your device. Your input is not uploaded to run the diff. If you choose Share, the texts are included in the generated link; keep password protection on and send the password separately. A shared link cannot be revoked.

Related guides and tools

Frequently asked questions

Is it safe to paste production secrets?

Avoid pasting live passwords, tokens or keys. Use redacted values when possible. Text stays local for comparison, but History and any share link can retain it.

Is this tool free and private?

Yes. It is free with no sign-up. The comparison runs in your browser. Recent text comparisons may be saved in History on this device; clear History on a shared computer.

Compare text in your browser

Your pasted text and opened files are processed on your device for comparison. They are not uploaded to a server to run the comparison.

Free, with no sign-up

Paste two versions, review the differences and copy or download the result. Recent comparisons are saved in this browser's History. Clearing site data removes them.

English Español Deutsch 日本語 Français Português Русский Italiano Nederlands Polski Türkçe हिन्दी 简体中文