Secret Leak Checker
Paste text before you give it to an AI assistant and see which API keys, tokens and private keys it can spot. Masked results, vendor advice and a redacted copy; the checker sends nothing anywhere.
Secret Leak Checker
The checker works in your browser. Our code sends nothing you paste anywhere, saves nothing and puts nothing in the address bar, and never tests a key against a live service. The page also carries ads and, if you allow it, Google Analytics; their scripts run in the same page and are not ours, so this promise covers our code only.
Loading the checker…
How to use the Secret Leak Checker
-
Paste before you send
Put in the text you were about to give the assistant: a .env file, a log, a stack trace, an email thread. It is checked as you type.
-
Read each finding
Every match is masked and says how it was recognised: a prefix the vendor states, a prefix seen in a vendor example, a structure such as a private-key block, or only the name beside it.
-
Copy the redacted text
Each secret is replaced with a label such as [REDACTED: GitHub token]. Names like DB_PASSWORD stay, so the assistant can still follow the file.
-
If it already went out, replace the key
Redacting now does not take back a key you have already sent. Each finding quotes what its vendor says to do; where the vendor's page gives no step, it shows GitHub's and Stripe's, which come to the same thing: replace the key.
Which secrets have a shape, and which do not
We counted 28 kinds of secret key in the documentation of seven vendors (GitHub, AWS, Google Cloud, OpenAI, Anthropic, Stripe and Slack). Of those, 20 carry a prefix or marker the vendor states in words, 3 show a prefix only in an example value, 2 are documented with no prefix, and for 3 the pages we read give no format at all. GitHub explains why it moved to prefixes in 2021: its older tokens were 40 hexadecimal characters "indistinguishable from other encoded data like SHA hashes", and the underscore in the new prefixes is "not a Base64 character". Those prefixes are what a checker like this one reads. Where a vendor states its prefix in words, a match is strong evidence of the format. Where the prefix appears only in an example value on the vendor's page, it is weaker, and the finding says so.
Some secrets have no shape at all. AWS gives no prefix and no length rule for a secret access key; its own
example, wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY, looks like any other random string. When we
measured it with a standard randomness score, it came out lower than a fragment of a SHA-256 hash, so randomness
cannot single it out either. The checker finds such a key only when a name sits beside it, as in
aws_secret_access_key = …. GitHub says the same of passwords: its
push protection
page says its AI detection is there for "unstructured secrets, such as passwords, that no regular expression can
reliably match".
What we found when we tested the list this page replaced
Until this checker was built, our System Prompt Builder kept its own short
list of key shapes. Run against one fake value for each documented format, it missed 13 of 24, including GitHub's
fine-grained tokens, every Stripe secret key (Stripe writes sk_ with an underscore) and three kinds of
Slack token, and it raised false alarms on token: null and api_key = os.environ[…]. Both
tools now read one shared list, so they cannot disagree about the same text.
Lengths are ours, not the vendors'
Vendors publish prefixes but almost never lengths. GitHub's changelog for its newer installation tokens, which run
to about 520 characters, says outright that applications should make "No hardcoded token length assumptions". So
each rule here sets a minimum length of our choosing, never an exact one, and the table of rules marks which parts
come from the vendor and which from us. The two exceptions are AWS's 16 characters after AKIA and
Google's 35 after AIza, taken from the vendors' own example values.
What this checker does not do
It never tests whether a key works or whose it is. That would mean sending the key to someone, which is what this page exists to prevent. It does not check GitHub's built-in checksum: GitHub describes it as CRC32 written in Base62, but the pages we read do not give the order of that alphabet. It does not find a key that has been wrapped across several lines. It says nothing about what an AI service does with text once it is pasted.
The rules the checker uses, and where each comes from
Every vendor page was read on 22 Nov 2026. AWS documents are cited by title only, because AWS's terms restrict linking.
Frequently asked questions
-
Not by our code. The checker runs in this page: it makes no network request, keeps nothing in your browser's storage and puts nothing in the address bar. The page also carries ads and, if you allow it, Google Analytics; those scripts are not ours and run in the same page, so our promise covers our own code only.
-
No. A match means the text has the shape of a key. The checker cannot tell whether it is live, revoked or made up, or whose it is, and it never tries to find out, because testing a key would mean sending it somewhere.
-
Not necessarily. The checker only finds secrets with a recognisable shape. A password, or a key with no prefix such as an AWS secret access key on its own, can pass unseen.
-
OpenAI's examples start with sk-, but other services use the same prefix, so the shape alone cannot say whose key it is. The checker calls it an sk- key and quotes OpenAI's advice in case it is one.
-
Stripe says only publishable keys are safe to expose outside your application's back end. The checker shows them so you know they were seen, does not count them as leaks and leaves them in the redacted copy. Stripe test keys starting sk_test_ or rk_test_ are still secrets.
-
The vendors say to replace it. Stripe: rotate it "immediately even if you aren't sure anyone saw it". OpenAI: "rotate your key immediately". Anthropic recommends "revoking the key immediately". GitHub: generate a new credential, replace the old one everywhere, then delete it. Redacting the text now does not take back what was already sent.
Disclosure: RECATOOLS is written with the assistance of Claude, made by Anthropic, whose key format and advice are quoted on this page. Readers should weigh that interest.
Method & sources
How it computes
Pattern matching in the browser, 19 rules: vendor key prefixes from vendor documentation (GitHub, AWS, Google Cloud, OpenAI, Anthropic, Stripe, Slack), private-key headers from RFC 7468 and RFC 9580, and our own context rules (names such as DB_PASSWORD, Authorization headers). Minimum lengths are ours except AWS's 16 and Google's 35, from their examples. A match shows the shape of a key, not that it works; finding nothing does not make text safe.
What this tool implements
- A vendor prefix is used only where the vendor states it in words or shows it in an example value, and each rule says which. Context rules (a name such as DB_PASSWORD, an Authorization header) are ours and can raise false alarms; the page says so.
- Every finding is masked: at most the first six characters of a key, and none of a value found by its name. The redacted copy replaces each secret with a label and leaves a Stripe publishable key, which Stripe calls safe to expose, as it was.
- Nothing leaves the browser: no request of any kind, no storage of the pasted text and nothing in the address bar. No key is ever checked against a live service, so the page never says a key works or whose it is.
Sources
- GitHub Docs, read 22 Nov 2026: About authentication to GitHub (token formats); Supported secret scanning patterns; Push protection; Keeping your API credentials secure: https://docs.github.com/en/authentication/keeping-your-account-an…
- GitHub Blog, Behind GitHub's new authentication token formats, 5 Apr 2021 (updated 10 May 2023); GitHub Changelog, GitHub App installation tokens: per-request override header, 15 May 2026: https://github.blog/engineering/platform-security/behind-githubs-…
- AWS, IAM User Guide: IAM identifiers; Manage access keys for IAM users; Secure access keys, read 22 Nov 2026 (cited by title; aws.amazon.com restricts linking).
- Google Cloud, Manage API keys and Best practices for managing API keys (last updated 17 Nov 2026); Create and delete service account keys: https://docs.cloud.google.com/docs/authentication/api-keys
- OpenAI Help Center, Best practices for API key safety; OpenAI API reference, Admin API keys: Create, read 22 Nov 2026: https://help.openai.com/en/articles/5112595-best-practices-for-ap…
- Claude Docs, Admin API; Claude Help Center, API key best practices: keep your keys safe and secure, 19 Oct 2026: https://support.claude.com/en/articles/9767949-api-key-best-pract…
- Stripe Docs, API keys; Best practices for managing secret API keys; Webhooks, read 22 Nov 2026: https://docs.stripe.com/keys
- Slack Developer Docs, Tokens, read 22 Nov 2026; RFC 7468 (PEM) and RFC 9580 (OpenPGP) for private-key headers: https://docs.slack.dev/authentication/tokens
Pick up where you left off
Stored only in this browser — never sent to our servers.