Secret scanner
Find API keys, tokens, private keys and passwords in files or a whole project folder. Runs entirely in your browser; nothing leaves your machine.
Pattern matching finds known formats and likely secrets. It can miss custom formats and flag false positives. It does not scan git history; use gitleaks for that.
Up to 50 MB per file, 200 MB and 20,000 files per scan. Binary files are skipped; UTF-16 text needs a byte order mark. Zips inside zips are not opened.
Warning: zip support is unavailable, so .zip files will be skipped.
What to do
- Rotate first. Revoke the key or change the password at the provider. Deleting it from the file does not un-leak it.
- Then remove it. Load it from the environment or a secrets manager (your cloud's secret store, Vault, your CI's secrets) instead of the code.
- Git remembers. A secret that was ever committed stays in history, clones and forks. It is exposed until it is rotated; rewriting history is clean-up, not a fix.
- Check for use. Look at the provider's access logs for activity you don't recognise.
How it decides
Known formats (AWS, GitHub, GitLab, Google, OpenAI, Anthropic, Stripe, Slack, Twilio, SendGrid, Mailgun, npm, PyPI, Docker Hub, Shopify, Heroku, Azure storage, private key headers, JWTs, database URLs with a password) are matched by pattern. Generic password=, secret=, token= and api_key= assignments are reported when the value has at least 3.0 bits of Shannon entropy per character (Medium from 3.5). Values that look like placeholders, such as changeme, ${VAR} or <your-key>, are reported as Low. Matching is per line; a value split across lines is not found.