Env file key checker
Compare an expected env file with a target file before deployment. Find missing, extra, duplicate and empty-value keys without comparing or exposing their values in the result. Free and anonymous; all checking happens in this page.
No uploads, storage, analytics or input-bearing URLs. Values are visible while editing. Every check clears both pasted files, including on errors; only key names and line numbers remain in results.
Paste both files, or load the synthetic example, then compare keys.
Key comparison findings
Matching keys do not prove valid values or a working deployment. Empty values may be intentional. Every empty occurrence is flagged, even if a later duplicate has a value.
Supported env-style syntax
-
One
KEY=valueassignment per line. Keys use ASCII letters, digits and underscores, starting with a letter or underscore. Surrounding whitespace and a leading UTF-8 BOM are ignored; LF and CRLF line endings work. -
Blank lines and lines starting with
#are ignored. Unquoted inline comments start with whitespace followed by#.A=value#suffixkeeps the suffix as a literal. -
Single or double quotes may surround the entire value, including spaces,
#and equals signs:LABEL="a=b # literal". A comment may follow the closing quote. -
KEY=,KEY= # comment,KEY=""andKEY=''are empty. Quoted spaces are nonempty. - Dollar expressions and command-like text are literal strings; nothing is expanded, executed, fetched or checked for secret validity.
Unsupported: export prefixes, multiline values, escapes/backslashes inside values, bare keys,
unquoted whitespace and non-ASCII key names. Errors identify the file and line without repeating its
contents.
A key-only comparison example
Suppose the reference contains APP_MODE, DATABASE_URL and
OPTIONAL_TOKEN. The target contains APP_MODE twice, DEBUG and an
empty OPTIONAL_TOKEN.
- Missing from target:
DATABASE_URL. - Extra in target:
DEBUG. - Duplicate in target:
APP_MODE, lines 1 and 2. -
Empty value in both files:
OPTIONAL_TOKEN, line 3 in the reference and line 4 in the target.
A changed APP_MODE value does not appear as a difference: this checker compares names only.
Duplicate findings include all assignment lines; the checker never picks a winning value.
Check the real runtime separately
This is a narrow text checker, not full Docker dotenv compatibility, a secret scanner or a replacement for
docker compose config. It cannot verify credentials, interpolation, precedence, required
variables, application behavior or a live deployment. Key names themselves can be sensitive; review the
report before sharing it.