HomeDeveloper tools.env Secret Safety Linter

.env Secret Safety Linter

Check dotenv syntax, duplicates, placeholders, and secret-looking values without exposing them.

Processing stays in your browser. This is a heuristic scanner. It can miss secrets and flag harmless values. Output redacts values; do not treat a clean report as proof that a file is safe to publish.

How to use the .env secret safety linter

Check dotenv syntax, duplicates, placeholders, and secret-looking values without exposing them. Complete the dotenv content fields above, or upload a UTF-8 text file for dotenv content. Choose Run tool, review the output, then copy or download the result.

Example

Two PORT assignments produce a duplicate-key warning.

Good to know

This is a heuristic scanner. It can miss secrets and flag harmless values. Output redacts values; do not treat a clean report as proof that a file is safe to publish.

Separate representation, integrity and trust

Use public test values for the first run and identify exactly what property you want to inspect. Encoding makes data representable in another format; hashing produces a digest; signing and encryption have different purposes. A readable token, matching digest or parsed key does not by itself establish who created the data or whether it should be trusted. The scope stated on this page is the boundary of the result.

Inputs and settings explained

Dotenv content
Paste the dotenv content as plain text using the demonstrated structure. Keep meaningful line breaks, quotation marks and separators. Start with a small representative example and increase its size only after the output is understood. Read the tool's restrictions before including unsupported syntax or binary data.
See the demonstration value
APP_ENV=production
API_KEY=replace-me
PORT=3000

How to review the result

Compare the exact bytes and encoding used by the other system. Spaces, line endings, Unicode encoding and Base64 variants can all affect the result. For cryptographic material, confirm algorithms and parameters against the protocol you are implementing. Do not put real credentials in a bug report or screenshot. Review any external-service disclosure before starting a lookup; a service-assisted check has different data handling from a local transformation.

  • Confirm the expected encoding, algorithm and byte sequence with a public known example.
  • Get comparison values and trust anchors from an independent source you trust.
  • Keep generated secrets out of shared downloads, source control and support messages.

Common questions about this workflow

Does decoding or inspecting a token verify it?

No. Reading fields and checking syntax are separate from verifying a signature, issuer, audience, expiry and the surrounding application's policy. Use the verification procedure required by the actual protocol.

Does no reported issue prove that a value is safe?

No. The result covers the checks described on this page and the supplied input only. A local utility cannot establish every security property, and a lookup may have incomplete coverage. Apply your application's complete validation and key-management requirements.

Built by DevBricks Technologies. Found an unexpected result in .env Secret Safety Linter? Report a reproducible example with the tool URL, settings and a small sample that contains no private information.