Free tool
Secret scanner
Paste code or drop files to find leaked API keys, tokens and private keys. It checks more than 200 formats and runs entirely in your browser, so nothing you paste is uploaded.
Privacy
How we keep it private
The scanner runs inside a sandboxed frame. The browser treats it as a separate, anonymous site, so it cannot read this page, its cookies or its analytics, and a security policy on the frame blocks every network request.
You can check this yourself: open your browser's developer tools, select the frame in the Network panel, and run a scan. No requests are made. This page records only how many scans run and how many secrets they find, never what they find.
Next step
Want us to check your whole organisation?
This tool checks what you paste. Our Repo Leak Scanner searches public code and container sites every day for your code and keys.
What secret scanning does
API keys, tokens and passwords end up in code more often than anyone plans. A test file with a real key, a .env committed by accident, a config pasted into a ticket. Secret scanning looks for those credentials by their shape: most providers give their keys a fixed prefix and length, such as ghp_ for GitHub tokens or AKIA for AWS access keys. The scanner checks every line against those patterns, then filters out placeholders like your_api_key_here and values too regular to be real.
What to do after a leak
- Revoke the key. Assume it has been copied. Replace it at the provider; the “How to revoke” link in each result goes to the right page.
- Check for use. Review the provider’s logs for activity from the old key.
- Clean up history. If the key reached a git repository, it is still in old commits. Rewrite history or treat the repository as exposed.
- Stop the next one. Add secret detection to your pipeline so keys are caught before they are pushed.
Our guide to keeping secrets out of public code covers prevention in more detail.
What a browser tool cannot see
This tool checks what you give it. It cannot tell you whether your code or keys are already sitting in a public repository, a contractor’s account or a published container image. That needs monitoring outside your own systems, which is what our Repo Leak Scanner does every day.
FAQ
Common questions
Is my code uploaded anywhere?
No. The scanner runs in a sandboxed frame that the browser blocks from making any network request. Your text and files are read in memory and never leave your device. You can confirm it in your browser's developer tools.
Which secrets does it find?
More than 200 credential formats, including AWS, Google Cloud, GitHub, GitLab, Stripe, Slack, OpenAI and Anthropic keys, private keys, and Indian payment providers such as Razorpay and Paytm. It also flags generic passwords and tokens assigned in code, marked as medium confidence.
Does a clean result mean my code is safe?
No. The rules only recognise known formats, so a custom token or an unusual config can slip through. Treat a clean result as one check, not proof.
How is this different from running gitleaks?
It uses the same detection rules, converted to run in a browser, so you can check a file in seconds without installing anything. For scanning a whole repository and its history, or for blocking secrets in your pipeline, use gitleaks or a similar tool in CI.
What should I do if it finds a real key?
Revoke it at the provider and issue a new one first. Deleting the line or the commit is not enough, because the key may already have been copied. Then check the provider's logs for any use of the old key.