Tools / Env Config Checker

Env Config Checker

Audit a .env file for parse problems, duplicate keys, quoting mistakes, live secrets and production risks, and compare it with a .env.example. Findings show line numbers and key names, never values. Runs in your browser. Nothing is uploaded.

.env contents

.env.example (optional)

Findings

The report lists severity, line and message. It contains key names and line numbers, no values.

.env.example from this file

Key names only, in file order, once each. Every value is left empty. Comments are not carried over.

What is inside

What is inside the tool.

A real .env parser

Quoted values, inline comments after a space and #, an export prefix, multi-line quoted values, \n and \r escapes in double quotes and CRLF are read the way python-dotenv 1.0.1 and Node dotenv 16.4.5 agree on. Where those two loaders differ, the tool says so in the finding instead of picking one.

Findings with line numbers

Errors, warnings and notes are sorted by severity and show the line and the key. Values never appear in findings, the report or the generated example.

Quoting and syntax

Unquoted values with spaces, an opening quote that never closes, text after a closing quote, spaces around =, invalid key names, lines with no =, a byte order mark, mixed line endings, invisible characters and a missing final newline.

Duplicates and references

A repeated key is reported with the line of the first one. A ${NAME} or $NAME reference to a key that is defined later, or not at all, is flagged. Single-quoted values are not expanded, so they are skipped.

Secrets and production risks

Live key patterns (sk_live, rk_live, AWS access key IDs, GitHub tokens, Slack tokens, private key blocks), placeholder values, passwords inside URLs, a test-mode key, production with debug on, and localhost URLs in a production file.

Compare with .env.example

Missing keys are errors. Keys that are not in the example and keys that are empty in .env but listed in the example are warnings.

Report and example

Copy or download a plain-text report. Generate a .env.example from your file: keys only, every value empty.

Worked example

One line, three readings.

You writeWhat the tool saysWhy
GREETING="hello # not a comment" # noteKeeps the quoted text, notes the inline commentThe # inside quotes belongs to the value. The one after the closing quote is a comment.
APP_NAME = My AppWarnings: spaces around =, spaces in an unquoted value.python-dotenv and Node dotenv accept both and keep the whole value. Other tools may not. Quote it to be safe.
BASE=${HOST}/apiWarning if HOST is defined later or not in the filepython-dotenv expands in file order and Node dotenv does not expand at all.

How to use it

Four steps.

Step 1

Paste your .env. Findings update as you type.

Step 2

Paste your .env.example under it if you have one, to see missing and extra keys.

Step 3

Fix errors first, then warnings. Notes are for loaders that differ from each other.

Step 4

Copy the report for a pull request, or generate a .env.example with empty values.

What it cannot do

Limits.

Two loaders checked, not all

Parsing was compared with python-dotenv 1.0.1 and Node dotenv 16.4.5 on 1,520 test inputs. Where both agree, the tool agrees. Other loaders, shells and platforms may differ, and the findings only describe those two loaders.

Secret patterns are a short list

It matches a few well-known prefixes. A secret with no known prefix is not detected. A clean report is not a security review. The report prints no parsed values. Key names that are plain names are shown, so a secret pasted as a key name could appear. Do not paste a secret as a key name.

It cannot see your environment

A reference to a key that is not in the file is reported. It may be set by your host, and the tool cannot tell.

No auto-fix

It reports and generates an example. It does not rewrite your file.

What it does

What Env Config Checker does.

Free .env file checker in your browser: parse and quoting problems, duplicate keys, live secret patterns, production risks, undefined ${VAR} references and a comparison with .env.example. Findings never show values.

FunctionWhat it does
Where it runsIn a browser tab, no install
Duplicated keyYes
Invisible characterYes
Substitution keyYes (undefined or later-defined references)
Compare two filesKeys missing, extra or empty against .env.example

Common mistakes

Each of these produces a finding.

An unquoted value with spaces

APP_NAME=My App is kept whole by python-dotenv and Node dotenv and quoting it removes any doubt about other tools. Quote it: APP_NAME="My App".

A quote that never closes

python-dotenv drops the line and Node dotenv keeps the quote as text, so the two loaders give different results. The tool points at the opening line.

A # in an unquoted value

A value such as abc #1 ends at the space before # in both checked loaders. A # with no space before it is kept by python-dotenv and ends the value in Node dotenv. Quote values that contain #.

Duplicate keys

Both checked loaders keep the last DATABASE_URL. A loader that keeps the first would differ. The tool reports the line of the first one.

A real key in a committed file

Live key patterns are reported as errors. If the file was shared or committed, rotate the key.

Production with debug on

NODE_ENV=production and DEBUG=true together is an error, because verbose errors can leak internals.

Questions

Before you ask.

Is my file uploaded?

No. Parsing runs in your browser tab.

Why are values never shown?

So you can paste findings into a ticket without leaking a secret. The report and the generated example have no values.

Why is a # kept in one value and cut in another?

Inside quotes it is part of the value. In an unquoted value, a # after a space starts a comment in both checked loaders.

Which loader rules does it use?

Where python-dotenv 1.0.1 and Node dotenv 16.4.5 agree, the tool follows them. Where they differ, the finding names both behaviors.

Does it fix the file?

No. It reports, and it can generate a keys-only .env.example.

What does it cost?

Nothing. No account.

Your data

What stays on your device.

The tool runs in this browser tab. Your file stays in the page. Findings, the report and the generated example list line numbers and key names, never values. Nothing is copied, downloaded or shared unless you press Copy or Download.

Sources

Where the facts come from.

Try it

Check the file before it ships

Open Env Config Checker
A laptop, headphones, a camera, a phone and a plant on a white desk, seen from above, banner image on the Env Config Checker page

Try it now.

Env Config Checker runs in your browser. No account needed.

Env Config Checker

See it at work

Free .env file checker in your browser: parse and quoting problems, duplicate keys, live secret patterns, production risks, undefined ${VAR} references and a co

Env Config Checker
Fields
API
CLI
env
example
hiringsai tool env-config-checker
env string
example string
2 fields, 1 required
curl -X POST https://hiringsai.com/api/v1/tools/env-config-checker/run
-d '{"input": {"env": "<text>"}}'
JSON result
hiringsai run env-config-checker --input '{"env": "<text>"}'
also callable over MCP
JSON result printed
Free toolAPI and MCPNo account
Fields
envstring
examplestring
Ways to use it
pagethis app
APIPOST .../run
CLIhiringsai run
MCPtools/call
API call
POST /api/v1/tools/env-config-checker/run
input: {"env": "<text>"}
JSON result back
Command line
hiringsai run env-config-checker
--input <json>
JSON result printed
The Env Config Checker page as it opens
Env Config Checker2 fields
The page as it opens, captured from the live site.
The Env Config Checker app at phone width
Env Config Checkerphone layout
The same app at phone width.
A laptop on a wooden desk with a person typing
Env Config CheckerFree tool
Free .env file checker in your browser: parse and quoting problems, duplicate keys, live secret patterns, production risks, undefined ${VAR} references and a co
A laptop glowing in a dark room
Env Config CheckerAPI and MCP
Call it from a script over the API or MCP.