# .env Diff Checker

Compare two .env configurations for missing keys, changed values, and empty values, with result values hidden by default.

## URL

https://ilham.dev/tools/env-diff-checker/

## What It Does

Compare two sets of single-line environment assignments by key and literal value. Results distinguish missing keys from empty values, and values are hidden until explicitly revealed.

## Features

- Compare missing, changed, unchanged, and empty values
- Hide result values by default
- Copy a key-only report
- Reject duplicate keys and unsupported syntax

## Input

Two single-line .env configurations text input.

## Output

Key statuses and optionally revealed literal values table output.

## Privacy

Processing happens locally in the browser.

No input data is uploaded to ilham.dev.

- Requires login: false
- Requires API key: false
- Stores user data: false


## Examples

- Does this tool save or upload my .env files?
- Does it expand variables or understand every dotenv format?
- Does the copied report contain secrets?


## Limitations

- Single-line assignments only; no multiline values
- Variable references and escapes are not expanded
- Duplicate keys are rejected
- Input text is visible; only result values are masked


## Related Tools

- https://ilham.dev/tools/env-key-sorter/
- https://ilham.dev/tools/text-diff/


## Questions

### Does this tool save or upload my .env files?

Inputs are processed in the browser and are not uploaded or saved by the tool. Pasted input text remains visible; result values are hidden by default.

### Does it expand variables or understand every dotenv format?

No. It supports single-line KEY=value assignments, optional export prefixes, comments, and outer single or double quotes. Variable references and escapes remain literal. Multiline values, duplicate keys, and unsupported syntax produce an error rather than a guessed result.

### Does the copied report contain secrets?

The report contains only key names and comparison statuses, never values, even when result values are revealed. Key names may still disclose configuration details, so review the report before sharing.

