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=sk_live_abc123
PORT=3000
DEBUG=true
=missing_key
DUPLICATE=first
DUPLICATE=second=== .env Validation Report ===
Keys: 6 (5 unique) · Comments: 0 · Blank lines: 0
✗ 2 errors
⚠ 1 warning
Errors (2):
✗ Line 5: Empty key before "="
✗ Line 7: Duplicate key "DUPLICATE" (first defined on line 6) — the later value wins in most loaders
Warnings (1):
⚠ Line 2: "API_KEY" looks like a real credential — make sure this file is git-ignored and rotate it if it was shared
Validate .env files and flag missing values or duplicate keys. Part of the DevTools Surf developer suite. Browse more tools in the Text / String collection.