.env Manager & Diff
Runs locallyParse .env files, diff two environments, redact secrets and export JSON, YAML or K8s Secret.
What is .env Manager & Diff?
Parse `.env` files (handling quotes, comments, `export`, and duplicate key warnings), compare two environment files side by side to spot missing keys, mask secret values for safe sharing, and export to JSON, YAML, Docker `-e` flags, or Kubernetes Secret manifests.
How to use .env Manager & Diff
- Step 1
Paste your primary `.env` file (and optionally a second `.env` to diff).
- Step 2
Inspect parsed key-value pairs, duplicate key warnings, and missing keys.
- Step 3
Toggle Redact Secrets before copying or exporting to JSON/YAML/K8s.
Features
- Handles quoted values, comments, export prefix, and multiline escaping
- Two-file environment diff highlighting missing and changed keys
- One-click secret redaction (`***`) for safe `.env.example` generation
- Export as `.env.example`, JSON, YAML, Docker CLI flags, or Kubernetes Secret YAML
Example
Input
PORT=3000 API_KEY="sk_test_123"
Output
{"PORT":"3000","API_KEY":"***"}Generates safe templates or structured config maps locally.
Frequently asked questions
Is history disabled for .env files?
Yes, as a sensitive tool, local history is off by default.
Can I generate a .env.example with secrets stripped?
Yes, click Export .env.example to keep keys while clearing secret values.
Does it detect duplicate keys?
Yes, duplicate keys are flagged in the Problems panel.
Are my secrets uploaded?
No, all parsing and exports run in your browser.
Related tools
Diff Checker
Compare text, code and JSON side-by-side or inline, ignore whitespace/case and export patch.
JSON to YAML Converter
Convert JSON to YAML and back with indent, flow style, key sorting and lossy warnings.
Password & Passphrase Generator
Generate unbiased random passwords, EFF passphrases and PINs with zxcvbn-ts strength analysis.