Free tool

Exposed API key checker

Updated 31 October 2026

Paste your app's URL. LeakFix downloads the page and up to eight of its JavaScript files — the same files every visitor's browser gets — and looks for secret keys that should never be there. It's free, needs no signup, and takes about ten seconds.

Check a URL

For apps you own or are authorized to test. We only fetch public pages, the way a browser does.

What does the checker look for?

Three things, all from the outside, exactly as an attacker would see your app:

KeyWhat it looks likeSeverity
Stripe secret keysk_live_…Critical
Stripe restricted keyrk_live_…Critical
OpenAI API keysk-…, sk-proj-…Critical
Anthropic API keysk-ant-…Critical
Supabase secret keysb_secret_…Critical
Supabase service_role key (older format)a JWT (eyJ…) whose role is service_roleCritical
AWS access key IDAKIA…Critical
GitHub tokenghp_…, github_pat_…Critical
SendGrid API keySG.….…Critical
Private key-----BEGIN … PRIVATE KEY-----Critical
Google API keyAIza…Warning
Slack tokenxoxb-…, xoxp-…Warning

Google keys are a warning rather than critical because many of them — for Maps or Firebase — are meant to be in the browser. Make sure each one is restricted to your domain and to the APIs you actually use.

Which keys are safe to have in the browser?

Some keys are designed to be public. They identify your project; something else decides what they can do:

Everything else stays on a server: anything called "secret" or "service role", and server API keys for OpenAI, Anthropic, Stripe, AWS or your email provider.

How do secret keys end up in a front-end bundle?

I found an exposed key. What now?

  1. Rotate it first. Create a new key and revoke the old one at the provider. Deleting it from your code isn't enough: the old bundle has already been downloaded and may be cached. See the guides from Stripe and Supabase.
  2. Move the call to a server — an API route, a serverless function, or a Supabase Edge Function that reads the key from a server-only secret.
  3. Check for misuse. Look at the provider's usage, billing and logs for the time the key was public.
  4. Redeploy and run the check again.
  5. If the key was ever committed to git, it's in your history too. Rotating is what actually protects you. GitHub secret scanning can alert you to keys committed in the future.

What this checker can't see

The $49 Launch check scans your repository for committed keys, .env files, row-level security, security-header config and CORS, then opens a pull request with safe, additive fixes. For everything else, work through the launch security checklist.

Questions

Is it safe to paste my URL here?

We fetch the public page and its same-origin scripts, the way a browser does. We don't log in, submit forms or try exploits. Only check apps you own or are authorized to test (Terms, section 3).

Do you keep what you find?

The URL you submit and the scan result are handled as described in the Privacy Policy. Any key we report is shown redacted.

Does a clean result mean my app is secure?

No. It means these checks found nothing in your public files. It's a best-effort check, not a penetration test.

How is this different from GitHub secret scanning?

GitHub scans what's committed to your repository. This checks what your live site actually serves to browsers. A key can be in one and not the other, so use both.

Want the fix, not just the finding?

The Launch check is a one-time $49 — no subscription, no account. Connect a GitHub repo, pay, and get a plain-English report plus a pull request you review and merge.