Free tool · runs in your browser
Is that key safe to ship?
Paste code, a .env file, your built JavaScript or a Claude Code .claude/settings.local.json. Your browser checks it for secret AI, payment and database keys, and reads any Supabase key to tell you whether it’s the public anon key or the service_role key that skips every access rule. Nothing you paste leaves this page.
Supabase keys
Two keys look the same. One of them opens everything.
Supabase gives every project two keys that both start with eyJ. They are JSON Web Tokens, and the middle part says which role the key carries. Builders paste the wrong one into a VITE_ variable more often than you’d think, because the variable names and the dashboard boxes sit side by side.
Newer projects use sb_publishable_… and sb_secret_… keys instead. The same rule applies: publishable is fine in the browser, secret never is.
| Key | In browser code | Why |
|---|---|---|
role: anonsb_publishable_… | fine | Meant to be public. Your row level security rules decide what it can read, so those rules are what matter. |
role: service_rolesb_secret_… | never | Skips row level security. Anyone who finds it can read, change and delete every row in every table. PL-010 |
What it looks for
The keys AI-built apps leak most.
The same patterns our full check runs over your code and its whole git history. Each finding names the key, the line, and the page where you revoke it.
| Group | Keys | Finding |
|---|---|---|
| Database | Supabase service_role and sb_secret_ keys, Postgres connection strings with a password | PL-010 |
| AI providers | OpenAI, Anthropic, OpenRouter, Google AI Studio, Groq, Replicate, Hugging Face, Perplexity, xAI, ElevenLabs, Fireworks, DeepSeek, and named variables for 30 more | PL-009 |
| Payments | Stripe live secret and restricted keys (test keys are flagged low) | PL-009 |
| Platform | AWS access keys, GitHub tokens, Slack tokens, Resend keys, private key blocks, tokens inside URLs | PL-009 |
| Claude Code settings | Tokens and passwords typed into a command you approved with “don’t ask again” (bearer headers, PGPASSWORD=, --token, user:pass@), and secrets in the env block. Why this file leaks | PL-009 |
| Exposure | A secret in a VITE_, NEXT_PUBLIC_, EXPO_PUBLIC_ or REACT_APP_ variable, which the build copies into the JavaScript every visitor downloads | PL-010 |
Is it really safe to paste a key here?
The check is a script on this page. It reads the text box and draws the result; it makes no network request and stores nothing. You can confirm it: open your browser’s developer tools, go to the Network tab, and run a check. If you’d rather not paste a live key anywhere, revoke it first and paste the old one: the check reads the key’s format, not whether it still works.
It found a key. What now?
Revoke it at the provider first (each finding links to the page), then create a new one and keep it on the server: an edge function, a backend route or your host’s secret settings. Deleting the line is not enough if the key was ever committed or deployed, because it stays in your git history and in old builds. PL-011 explains the history part.
How do I check my live site?
Open your site, press View Source or open the Sources tab in developer tools, and copy the main JavaScript file (usually /assets/index-….js). Paste it here. That file is exactly what every visitor downloads.
No keys found. Am I safe?
For the text you pasted, the known secret formats aren’t there. Keys can still sit in other files, in old commits, or in a format we don’t recognise. And a public anon key is only as safe as your row level security rules, which the free RLS check reads and the full check proves.
Whole repo, whole history
Check every file and every old commit, then prove your access rules.
The full check scans your code and full git history for keys, rebuilds your database in our lab, tests it as three identities, writes the fix and proves it works. First app free, fixes included.