All Tools View Categories About Contact Privacy

.env Decryption Tool

Decrypt ENC: values back with your passphrase, authenticating each one via AES-GCM.

Runs entirely in your browser — nothing is uploaded.

About .env Decryption Tool

The .env Decryption Tool is the companion to the encryption tool: it takes a file of ENC: tokens and your passphrase, and restores the original values — one click, entirely in the browser.

Each token embeds its own random nonce and an AES-GCM authentication tag. That tag is what makes decryption safe: a wrong passphrase or a ciphertext modified in transit fails verification and is reported, rather than producing silently corrupted values.

Lines that are not encrypted — comments, blanks, and plaintext keys — pass through untouched, so the output is a faithful, readable copy of the original configuration.

Features

  • ENC: token support: parses the standard wrapped format.
  • PBKDF2 key derivation: same parameters as encryption.
  • Tamper detection: GCM tag verified per value.
  • Whole-file: decrypts every line at once.
  • Pass-through: comments and plaintext kept intact.
  • Privacy first: Web Crypto, nothing uploaded.
  • Clear errors: wrong passphrase reported cleanly.
  • Free: ready whenever you need it.

How to Use

  1. Paste the encrypted .env into the input, or load the sample.
  2. Enter the passphrase used at encryption time.
  3. Click Decrypt. Every ENC: value becomes plaintext.
  4. Copy or download the decrypted file and save it securely.

Examples

Example 1 — Restoring a backup. An encrypted config backup is restored on a new machine once the vaulted passphrase is entered.

Example 2 — Onboarding handoff. A new teammate receives the encrypted .env and decrypts it locally with the team passphrase.

Example 3 — Verifying the passphrase. Someone forgets which passphrase was used; the authenticator immediately distinguishes the correct one from the wrong ones.

Example 4 — CI secrets restore. A pipeline decrypts an encrypted template at build time, feeding real values into the environment.

Example 5 — Corruption check. After a disk copy, a token that was truncated fails the GCM check, telling the team the copy is bad before anything runs.

Benefits

  • Faithful restore: values decoded, file structure kept.
  • Authenticated: tampering or typos are caught.
  • Local: nothing leaves the browser.
  • Fast: whole-file round trip in one click.
  • Required passphrase: never caches or asks to share.
  • Free: unlimited decrypts.

Frequently Asked Questions

What does this tool decrypt?
Files produced by an AES-256-GCM encryption tool where encrypted values are written as ENC:<base64url>. Each token holds a 12-byte nonce plus the ciphertext and authentication tag.
How is the passphrase used?
PBKDF2 with 120,000 iterations derives the AES-256-GCM key from your passphrase. Use the same passphrase that encrypted the file.
What if I enter the wrong passphrase?
AES-GCM verifies the authentication tag, so a wrong passphrase or a tampered ciphertext is detected and reported instead of silently producing garbage.
Does it decrypt the whole file at once?
Yes. Every ENC: value on every line is decrypted, while plaintext lines and comments pass through unchanged.
Is anything uploaded?
No. Decryption uses the Web Crypto API entirely in your browser.