Secret Scanner

Find API keys, tokens, passwords and private keys in code, config and .env files before you publish them – AWS, Google, Stripe, GitHub, OpenAI and more.

Tool

Was this tool useful?

About this tool

About Secret Scanner

Paste code or choose many files. The scanner looks for about 30 known key formats, database URLs with passwords, passwords in config files and random-looking secrets, and shows where they are with the value hidden. Use it before pushing to GitHub, sending code to a freelancer or sharing a ZIP.

How it works

Provider patterns (e.g. AKIA… for AWS, sk_live_ for Stripe, ghp_ for GitHub, AIza for Google), password assignments, and strings of 24+ characters with Shannon entropy above 4 bits per character. Placeholders like ${VAR} or “your-key-here” are ignored.

Example

A .env file: Stripe live key, Google API key, database URL with password, DB password and a generic API key found; the ${SMTP_PASS} placeholder and “your-key-here” ignored.

How to use this tool

  1. Paste code or choose files (.env, config, source).
  2. Review the findings – high first.
  3. Move secrets to environment variables and replace leaked keys.

Frequently asked questions

Is my code uploaded?

No – it is scanned in your browser and the secrets are never shown in full.

I removed a key from my code – am I safe?

Not if it was ever pushed: it stays in Git history. Create a new key and delete the old one.

Is this an AI tool?

It works with clear, tested rules and formulas instead of an AI model, so results are fast, private and the same every time. You can see exactly why each result was given.

Does the Secret Scanner store what I check?

No. The Secret Scanner does not store your input. Keys, files and secrets are handled in your browser; website checks only send the address you enter to our server, which loads the public page and forgets it.