Tools / Secret & API key scanner

Secret & API key scanner

Paste code, a config file or a JavaScript bundle — or open files — and find leaked API keys, tokens, private keys and credentials before they ship. The scan runs entirely in your browser.

Nothing is uploaded. Your code and any secret it contains are read and scanned locally in this browser tab and never sent to QCRAMAI or anyone else. Because secrets are sensitive, this tool deliberately has no network calls — reload the page and everything is gone.

Each file is capped at 5 MB and read in your browser. Minified bundles are fine.

More free checks

Run a full security scan or speed test on your site, or try a related tool.

Related free tools

See all free tools →

What this scans for

It matches the formats of well-known credentials — AWS, Google/GCP, Firebase, Stripe, GitHub, GitLab, Slack, Twilio, SendGrid, OpenAI, Anthropic, npm, PyPI and more — plus private-key blocks, JSON Web Tokens, database connection strings with embedded passwords, credentials in URLs, and generic key = "…" assignments. A final pass flags high-entropy strings that look like secrets even when the provider isn't recognised.

How to read the results

Provider-format matches (e.g. an AKIA… AWS key) are high confidence. Generic assignments and high-entropy strings are lower confidence and include false positives — a long hash, a content-security nonce or a cache-busting token can look like a secret. Each finding shows its confidence so you can triage. The match is always masked; the line number points you to the original.

Limits worth knowing

This tool only sees what you give it. It cannot find a secret in a file you didn't paste, and finding none is not proof your code is clean. If a real secret is flagged, treat it as compromised the moment it reached a shared repo or a shipped bundle: rotate it first, then remove it from the source and move it to an environment variable or a secrets manager. Rotating matters more than deleting — once committed or shipped, assume it's already been harvested.

Frequently asked questions

Is it safe to paste code with real keys into this page?

The scan runs in your browser and nothing is uploaded. Even so, treat any real key you find as already exposed if it was ever committed or deployed.

I found a leaked key. What should I do first?

Revoke or rotate the key with the provider straight away, then check the provider’s logs for use you do not recognise. Removing it from the code comes after, because the old value stays in version history and in any copies already made.

Does it scan my Git history?

No. It scans the text and files you give it. To check history, run a dedicated tool such as gitleaks or trufflehog on the repository, or export old file versions and paste them here.

How do I stop secrets reaching the repository again?

Keep them in environment variables or a secrets manager, add .env files to .gitignore, and enable a pre-commit or CI secret scan. GitHub, GitLab and Bitbucket all offer push protection for known key formats.