API key format checker
Paste a log, an .env file or any text, and see which API keys, tokens and private keys are in it: Stripe, OpenAI, Anthropic, GitHub, AWS, Google, Slack, npm and more, with how risky each one is and how to rotate it. Everything runs in your browser.
Results appear here as you paste.
Keys leak through screenshots too. Cleanss reads your screenshot on your device and blurs API keys, passwords and card numbers in one click.
Get CleanssHow do I tell what kind of key I have?
By its prefix. Most providers start their keys with a fixed string, so the first few characters tell you who issued it and what it can do. Paste the text and the checker names each key, rates the risk and says where to revoke it.
- Stripe:
sk_live_secret,rk_live_restricted,pk_live_publishable (safe in pages), and_test_versions for test mode. - OpenAI keys start with
sk-(oftensk-proj-); Anthropic keys withsk-ant-. - GitHub tokens start with
ghp_,gho_,ghu_,ghs_,ghr_orgithub_pat_. - AWS access key IDs start with
AKIA(long-term) orASIA(temporary). - Google API keys start with
AIza; Slack tokens withxoxb-,xoxp-and similar. - A JWT starts with
eyJ. The checker decodes its claims and expiry locally.
Where do keys usually leak?
In places that don't look like code: a terminal screenshot with an .env file in the scrollback, a log pasted into a support ticket, a config file in a screen share. Secret scanners read text in commits but not images, so a key in a screenshot gets past them. Hiding API keys in screenshots covers the developer side, and how to share a screenshot without leaking anything has the full checklist. To cover a key in an image you already have, use the free blur and redact tool.
FAQ
What does sk_live mean?
sk_live_ is the prefix of a Stripe secret key for live mode. It can create charges and refunds and read customer data, so treat one that appears in a screenshot, log or repository as compromised and roll it in the Stripe Dashboard.
Is it safe to paste my keys into this page?
The checking runs in your browser with JavaScript; nothing you paste is sent to a server. Even so, prefer pasting text with the real secrets already replaced when you only want to check formats.
Is a Stripe publishable key a secret?
No. Keys that start with pk_live_ or pk_test_ are publishable keys, designed to be used in web pages and apps. Secret keys start with sk_ and restricted keys with rk_.
What should I do if I leaked an API key?
Revoke or roll it straight away in the provider's dashboard, then deploy the new key. Deleting the message, commit or screenshot isn't enough, because copies are often already cached, forwarded or scraped.
Can it find every secret?
No. It recognises well-known formats with fixed prefixes, plus common patterns such as passwords inside URLs and SECRET= lines. Custom tokens, short passwords and keys without a recognisable format won't be flagged.
Related
- Sensitive-info scan in the Cleanss app: Finds secrets on your device and blurs them in one click.
- How to hide API keys, passwords and card numbers in screenshots
- Screenshot resizer: Resize a screenshot to the exact size the Mac App Store, Microsoft Store, Product Hunt, X or LinkedIn wants.
- Blur and redact a screenshot: Blur, pixelate or black out parts of a screenshot in your browser. Nothing is uploaded.
- OG image checker: See how a link will look on X, LinkedIn and Slack, and what to fix in its Open Graph tags.
- Add a background to a screenshot: Put a screenshot on a gradient or solid background with padding, rounded corners and a soft shadow.
- Pixelation test: can it be read?: Pixelate a PIN, then watch your browser recover it by brute force. A live demo of why pixelation isn't redaction.
- Aspect ratio calculator: Find the ratio of any width and height, or the missing side for 16:9, 16:10, 4:5 and more.
- Mac screenshot settings generator: Pick a save folder, file format, shadow and file name, and get the Terminal commands to set them on your Mac.