Scan code, logs or text for exposed API keys, tokens and private keys, entirely in your browser.
Type
Line
Masked value
API Key Leak Scanner runs only in your browser: nothing you enter is stored or sent anywhere. Automatic checks can miss things, so review the results yourself.
How to use API Key Leak Scanner
Paste your text.
Press scan.
Revoke and replace every real credential that is found.
A key committed to a repository or pasted in a support ticket can be picked up within minutes. Before you share a log, config file or code snippet, paste it here for a quick check. The scan runs entirely in your browser using pattern matching, and matches are displayed in masked form.
What it looks for
Known formats from services such as AWS, GitHub, GitLab, Google, Slack, Stripe, OpenAI, Anthropic, Twilio, SendGrid and npm. It also finds JWTs, private key blocks, and generic assignments such as api_key=... with a long value.
If it finds a real secret
Revoke or rotate the key first. Deleting the text does not make an exposed key safe.
Check the service's logs for use you don't recognize.
Remove it from your code, and remember that git history keeps old versions.
Move secrets to environment variables or a secrets manager.
A clean result doesn't mean the text is safe, because custom tokens and passwords don't have a recognizable format. False positives also happen with example values. For repositories, add an automated secret scanner to your pipeline so this happens on every commit.
Last updated:
Frequently asked questions
Is it safe to paste real keys here?
The text stays in your browser and isn't sent anywhere. Even so, on a shared or untrusted computer, avoid pasting real secrets.
Does it scan my repository?
No. It only checks text you paste. Use a repository scanner for full history.
Is API Key Leak Scanner free?
Yes. API Key Leak Scanner is completely free, needs no account and has no usage limits.
Does API Key Leak Scanner send my data to a server?
No. Files, text, camera and microphone data are processed only in your browser. Network tests exchange only technical probes with the servers being tested.
Which devices does API Key Leak Scanner work on?
API Key Leak Scanner works in current versions of Chrome, Edge, Firefox and Safari on computers, tablets and phones. Some hardware features depend on your browser and device.