ENV Key Comparison
Find missing, extra, and duplicate keys between two files, with values hidden by default.
For example .env.example or your local file.
For example the server file. Use sample values rather than real secrets.
Your result
Paste two .env files and the differences appear here.
How to use it
- Paste the first and second file, or press Try a sample.
- Choose whether values are hidden or shown.
- Read the sections, and copy or download the summary.
Examples
- A missing nameNAME=Ada and CITY=Cairo Only in the first: NAME; only in the second: CITY
- A different valueAPP_ENV=local and APP_ENV=production Different values: APP_ENV
- A repeated nameMAIL_HOST twice Repeated in one file: MAIL_HOST
Tool details and privacy
Paste .env.example and the server file to see what each one is missing, which settings differ, and which names repeat, colour-coded with clear counts.
A setting missing on the server is a common reason an app breaks after deploying.
Options
- Values are hidden by default; Show values places them side by side.
- Swap exchanges the two files.
- Comments, export, and quoted values are read.
Limits
- When a name repeats, its last value is compared, as most loaders do.
- A syntax error is shown with its file and line.
Privacy
What you type stays in your browser. Nothing is uploaded or saved on the server.
Questions
Are my values shown?
Not unless you choose Show values.
Does an empty value count as different?
Yes. DB_PASSWORD= and DB_PASSWORD=x differ.
Does line order matter?
No.
Is anything uploaded?
No.