Free tool

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.

Checked in your browser. Nothing you paste is sent anywhere.

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 Cleanss

How 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- (often sk-proj-); Anthropic keys with sk-ant-.
  • GitHub tokens start with ghp_, gho_, ghu_, ghs_, ghr_ or github_pat_.
  • AWS access key IDs start with AKIA (long-term) or ASIA (temporary).
  • Google API keys start with AIza; Slack tokens with xoxb-, 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