devpocket.dev

.env Diff

Compare two .env files by key with masked values and generate an example file.

Runs locally
Loading tool…

How to use

Paste the two environment files. Values are masked by default; reveal them only when needed. The comparison recognizes comments, optional export, quoted values, multiline double-quoted values, inline comments, and interpolation text such as ${VAR} without expanding it.

Copy the generated .env.example to share keys and documentation without secret values. Inputs stay in memory only and are never persisted.

FAQ

Are my environment variables saved?

No. Unlike ordinary tool inputs, both .env values use in-memory state and disappear when the page reloads or closes.

Are ${VAR} references expanded?

No. Interpolation expressions are compared as literal text so the tool never needs access to your machine environment.

Related tools