A worked example, rendered from real sample data. Sign in to run the tool on your own input.
DATABASE_URL=postgres://localhost/mydb
API_KEY=abc123
PORT=3000
DEBUG=true
---
DATABASE_URL=postgres://prod-server/mydb
API_KEY=xyz789
PORT=8080
NEW_VAR=helloFile A: 4 vars | File B: 4 vars
Only in B (1):
+ NEW_VAR=hello
Only in A (1):
- DEBUG=true
Changed (3):
~ API_KEY: "ab••23" → "xy••89"
~ DATABASE_URL: "postgres://localhost/mydb" → "postgres://prod-server/mydb"
~ PORT: "3000" → "8080"
Unchanged: 0 variables
Compare two .env files and show added, removed, and changed variables. Part of the DevTools Surf developer suite. Browse more tools in the Text / String collection.