Skip to content

Check a website for leaked API keys

Enter a domain or URL and we load the page and its own JavaScript bundles the way a browser does, then look for secret keys that should never reach the browser: OpenAI, Anthropic, Stripe, AWS, GitHub, Slack, SendGrid, Twilio and more. Results show only a redacted preview.

Free, no signupRuns on our server · nothing stored

We fetch the page and its own JavaScript once, show only redacted previews, and store nothing. Full key values never leave our server.

How it works

The scanner fetches the page you enter (following at most 3 redirects), reads the <script src> and modulepreload files it references on the same site, and scans the HTML, inline scripts and up to 15 script files: at most 5 MB in total, within 10 seconds. Minified one-line bundles are scanned in overlapping windows, so every key on a line is found.

What we check

  • High-precision key formats: sk-proj- and sk- (OpenAI), sk-ant- (Anthropic), sk_live_ and rk_live_ (Stripe), AKIA… (AWS), ghp_ and github_pat_ (GitHub), xoxb- (Slack), SG. (SendGrid), Twilio SK…, OpenRouter, Supabase secret and service_role keys, npm, PyPI, Hugging Face, private keys and database URLs with passwords.
  • Google AIza… keys are flagged for review, not as leaks, because many are public by design.
  • Example and placeholder values are ignored. The same key in several files gets the same letter, so you know how many keys to rotate.

The patterns are the same ones the open-source keysquid scan CLI uses on your own code.

Responsible use. Only check sites and domains you own or have permission to test. The checker makes the same ordinary requests a browser would, identifies itself as KeysquidScanner, never logs in, never guesses hidden paths, and is rate limited. We log only the domain and result counts, never what we find.

FAQ

Is it safe to type my site into this scanner?

Yes. The scanner only loads what any visitor's browser already loads: the page and the JavaScript files it references. It shows the first 4 and last 2 characters of anything it finds, never the full value, and stores nothing. We log only the domain and how many files and findings there were.

Why would an API key be in my website's JavaScript?

Usually because a server-side key was put in a variable the build tool exposes to the browser, such as NEXT_PUBLIC_, VITE_ or REACT_APP_ variables, or because the frontend calls OpenAI, Stripe or another API directly. Everything in browser JavaScript is public, even when it is minified.

It found a Google API key (AIza…). Is that a leak?

Not always. Firebase and Google Maps keys are designed to be public and are protected by restrictions. Check in the Google Cloud console that the key is restricted to your domains and to only the APIs it needs. If it can call Gemini or other paid APIs, rotate it.

Does it check /.env or /.git?

No. It never guesses paths. It only fetches robots.txt, the page you enter, and up to 15 same-site scripts that page loads. If robots.txt disallows the page, it stops.

What should I do if it finds a key?

Revoke or roll the key in the provider's dashboard first, then move it to a server-side environment variable and redeploy. Deleting it from the code isn't enough, because CDNs and archive sites keep old copies of your JavaScript.

Website API Key Leak Scanner (Free) · Keysquid