01What is Secret Scanner?
Secrets end up in the wrong place all the time. A key gets pasted into a config file for a quick test, a debug log prints a full database URL, or a README example uses a real token. Secret Scanner gives you a fast second look before that text reaches a commit, a ticket or a chat thread. Paste code, config, logs or a diff into the box and results update as you type. The page splits your text into lines and runs 25 regular expressions against each one, all inside your browser. Nothing you paste is sent to a server. Most rules follow the published token formats of the providers themselves, the same prefixes that open-source scanners such as gitleaks look for. Those cover AWS access key IDs (AKIA for long-term IAM keys, ASIA for temporary STS keys), GitHub classic, fine-grained and OAuth tokens, GitLab glpat- tokens and npm tokens. They also catch OpenAI and Anthropic API keys, Stripe live, test and publishable keys, Slack tokens and webhook URLs, Google AIza keys, SendGrid and Twilio keys, JWTs, and any PEM or PGP private key header. A second group of rules looks at context instead of a prefix. It flags api_key and password assignments, AWS secret keys next to their variable name, Heroku-named UUIDs, Basic auth headers and connection strings. Two of these have extra checks to cut noise. A Basic header only counts when its Base64 decodes to something with a colon, like user:password. A Postgres, MySQL, MongoDB, Redis, MSSQL or AMQP URL only counts when it carries both a user and a password. Here's a quick example. Paste the two AWS lines from Amazon's own documentation and you get two critical findings: AWS Access Key ID on line 1, shown as AKIA***MPLE, and AWS Secret Access Key on line 2, shown as wJal***EKEY. Values are masked to their first and last four characters on screen. Copy Report builds a plain-text summary with the same masking, so you can paste it into a pull request without leaking the key a second time. Now the honest part. A regex can't tell whether a key is live, revoked or a dummy. It also misses secrets with no recognisable shape, such as a random hex string assigned to a variable called token. Short passwords under eight characters are skipped too. Treat a clean result as "nothing obvious", not as proof that the text is safe.
Developers who want a quick private check of a diff, config file or log for leaked API keys and passwords before it gets committed or shared. The tool runs entirely in your browser, so your data never leaves your device.
02How to use Secret Scanner
- Paste your code, config file, log or diff into the Paste Code or Text box, or pick one of the examples
- Findings appear as you type, sorted so critical ones come first, with counts per severity
- Read each finding's rule name, line number and masked value, and use the copy icon if you need the full value
- Click Copy Report to get a masked plain-text summary for a ticket or pull request comment
- Rotate any real credential you found, then move it into an environment variable or a secrets manager, and click Reset to clear the box
03Worked examples
- Input:
AWS_ACCESS_KEY_ID=AKIAIOSFODNN7EXAMPLE AWS_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY - Result:
[CRITICAL] Line 1: AWS Access Key ID - AKIA***MPLE [CRITICAL] Line 2: AWS Secret Access Key - wJal***EKEY - Lines from Copy Report. These are AWS's published example keys, not real ones.
- Input:
token: ghp_1234567890abcdefghijklmnopqrstuvwxyz - Result:
[CRITICAL] Line 1: GitHub Personal Access Token - ghp_***wxyz - Input:
token: ghp_1234567890abcdefghijklmnopqrstuvwxyz12 - Result:
No secrets found - The rule expects exactly 36 characters after ghp_, so a string two characters too long isn't matched.
- Input:
const url = "postgres://admin:[email protected]:5432/app"; - Result:
[CRITICAL] Line 1: Database Connection String - post***/app - Input:
Authorization: Basic dXNlcjpwYXNzd29yZA== Authorization: Basic SGVsbG9Xb3JsZA== - Result:
[HIGH] Line 1: Basic Auth Header - Basi***ZA== - Line 1 decodes to user:password. Line 2 decodes to HelloWorld with no colon, so it is skipped.
- Input:
token = 'f3a9c1d27b8e4a6f9c0d1e2f3a4b5c6d' - Result:
No secrets found - A random hex value with no known prefix is a real blind spot for pattern scanners.
04Common use cases
- Pasting a staged diff before you commit, to catch a key you hardcoded while testing locally
- Checking a docker-compose.yml or .env.example before sharing it, to make sure no real database URL with a password slipped in
- Scanning a block of application logs before attaching it to a public GitHub issue
- Reviewing a contractor's pull request diff for Stripe, Slack or OpenAI keys before merging
- Checking a README or blog snippet to confirm the sample credentials are placeholders and not your own
- Producing a masked findings list for a security ticket without copying the raw secret into it
- Quickly confirming whether a string a teammate sent you looks like a GitHub or GitLab token
05Tips
- AKIAIOSFODNN7EXAMPLE is the sample key from AWS's own documentation, so it will always be flagged. That's useful for checking the scanner is working.
- Deleting a secret in a new commit doesn't remove it from Git history. Rotate the key first, then purge history with git filter-repo if you need to.
- The password rule needs quotes and at least eight characters, so password = "secret" is not flagged. Don't read silence as approval for short passwords.
- Each finding keeps the line number from your paste. If you scan a diff, match it back to the hunk rather than the file's real line numbers.
- Run a pre-commit hook such as gitleaks or detect-secrets as well. This page is for quick manual checks, not a replacement for automation.
06Related concepts
gitleaks, git-secrets, Credential rotation, Secrets management.
Frequently Asked Questions
What is Secret Scanner?
Secret Scanner is a free, browser-based developer tool on AIDToolStack. Scan text for leaked API keys, tokens, and credentials with 20+ patterns. It requires no installation or sign-up and works entirely in your browser.
Is Secret Scanner free to use?
Yes. No sign-up, no fees and no usage cap.
Does Secret Scanner store my data?
No. It runs in your browser; nothing is uploaded.