Environment File Manager
Open several .env files, see which keys are missing or different in each environment, spot secrets, and generate .env.example or other config formats.
브라우저에서 실행됩니다. 파일은 기기 밖으로 나가지 않습니다. 확인하는 방법 보기
…
사용 방법
- 1Load the files
Open .env files or press + Paste file and paste the contents; rename each tab to match its environment.
- 2Compare
Read the Compare table: red cells are missing keys, amber cells are empty values, badges mark secrets and differences.
- 3Fix gaps
Select a file and press Add missing keys, or Sort and dedupe to tidy it.
- 4Review secrets
Open the Secrets tab to see which values look sensitive, masked.
- 5Make the example
In .env.example choose whether to keep safe values and which placeholder to use, then copy or download.
- 6Export
Pick a format in Export, such as Kubernetes Secret or GitHub Actions env, and download it.
이 도구 소개
Configuration that lives in environment variables is easy to change per deployment, but the files drift apart. A key added on a laptop never reaches production, a staging value is left empty, or a real API key slips into the example file that is committed to Git. This manager reads your .env files with the same rules as the dotenv library and lays them out as one table: a row per key, a column per file, red where a key is missing and amber where it is empty. It flags values that look like secrets by name, by known token shape and by randomness, generates a clean .env.example, and converts any file to the formats your deployment tools expect.
Who this is for
Developers and DevOps engineers who keep local, staging and production settings in .env files, and teams onboarding new members who need an accurate example file.
How the parser reads files
Lines with KEY=value are variables; an optional export prefix is ignored. Lines starting with # are comments and are attached to the next key, so the example file keeps them. Values in double quotes may span several lines and expand \n escapes, single-quoted values stay literal, and an unquoted value loses a trailing comment that starts with a space and #. When a key appears twice, the last value wins, which is how dotenv behaves; the Problems tab lists such duplicates and lines that cannot be parsed.
Comparing environments
The Compare tab shows every key found in any file. A differs badge marks keys whose values are not the same everywhere, which is normal for URLs but suspicious for feature flags. Add missing keys appends the keys the current file lacks, with empty values, so you can fill them in. The comparison CSV masks secret values before download.
Secret detection
A variable is treated as secret when its name contains words such as SECRET, TOKEN, PASSWORD, API_KEY or PRIVATE, when its value has a recognisable shape (Stripe sk_live keys, GitHub tokens, AWS access key ids, Slack tokens, JWTs, private key blocks, URLs with a password), or when it is a long string with high Shannon entropy. Masked values show the first and last two characters only. Show secret values reveals them on your screen when you need to compare.
The example file
.env.example keeps comments and order, removes duplicates and blanks every secret. Optionally it keeps harmless values such as ports and localhost URLs, so a new developer can start quickly. You can also choose a placeholder such as change-me.
Export formats
JSON, shell export lines, a Docker Compose environment block, a Kubernetes ConfigMap, a Kubernetes Secret with base64 data, a GitHub Actions env block that refers to repository secrets for sensitive keys, and a normalised .env with consistent quoting.
Worked example
The sample has three files. DATABASE_URL is empty in production, REDIS_URL is missing from production, SENTRY_DSN exists only in production, and PORT is defined twice in .env.local, where 3001 wins. Four keys are flagged as secrets, and the generated example keeps NODE_ENV, PORT and APP_URL but blanks DATABASE_URL and STRIPE_SECRET_KEY.
Limits
Variable expansion such as ${OTHER} is not resolved, and dialects that differ from dotenv (Docker's env_file, systemd) may treat quotes differently. Secret detection is a heuristic, not a guarantee: review the list yourself and never rely on it as a security control.
풀이 예시
3 files, 11 keys: 2 missing, 1 empty, 4 secrets masked, and a .env.example ready to commit.
한눈에 보기
- 카테고리: 개발 및 데이터
- 브라우저에서 실행되며 가입도 업로드도 필요 없습니다.
- 입력한 정보는 기기에 머뭅니다.
- 영어로 제공됩니다.
- 콘텐츠 최종 검토일:
- 공식 출처: dotenv parsing rules (export prefix, comments, single/double quotes, multi-line values) and The Twelve-Factor App, III. Config
자주 묻는 질문
Which rules does the parser follow?
Those of the dotenv package: optional export, # comments, single, double and backtick quotes, multi-line double-quoted values and last definition wins.
Is my production .env sent anywhere?
No. Files are read and compared inside your browser. Nothing is uploaded, and the project stays in this browser's storage until you reset it.
How does it decide a value is secret?
By the key name, by known token formats such as sk_live_ or ghp_, by passwords inside URLs, and by unusually random long values.
Can it fill missing keys for me?
Add missing keys appends every key the current file lacks, with empty values, under a comment so you can review them.
Is a Kubernetes Secret encrypted?
No. The data field is base64 encoded, which anyone can decode. Protect Secrets with access control and encryption at rest.
Does it support variable references like ${HOST}?
They are kept as text. The tool does not expand them, so compare the referenced keys too.
