API Key Identifier

Paste an API key or token to see which service issued it, whether it's secret, live or test, and how to revoke it, without it leaving your browser

Your key stays in this tab: it's identified by its format in your browser, never sent to us or to the service, and not saved. If it's a real secret that has been exposed somewhere, revoke it anyway; knowing what it is is the first step.
Try:
Recognized services (55)

age, Airtable, Anthropic, Atlassian, Auth0, AWS, Clerk, Databricks, DigitalOcean, Discord, Docker Hub, Doppler, Facebook / Meta, Figma, Firebase, GitHub, GitLab, Google, Google Cloud, Google Cloud / Firebase, Grafana, Groq, Heroku, Hugging Face, Linear, Mailgun, Mapbox, Microsoft Azure, Microsoft Entra ID, New Relic, Notion, npm, OpenAI, PayPal Braintree, Paystack, Perplexity, Plaid, Postman, Private keys (PEM), Pulumi, PyPI, Razorpay, Replicate, Resend, SendGrid, Sentry, Shopify, Slack, Square, Stripe, Supabase, Telegram, Terraform Cloud / HCP Terraform, Twilio, xAI, plus PEM private keys, Google service account files and JWTs from any issuer.

The identification is format-based: it can tell what a key is and whether its checksum is right, but not whether it still works. To find keys in a whole file or repository, use the Secret Scanner; to read a JWT in full, the JWT Decoder. Leaked one? Read how to find hardcoded API keys and what to do when one leaks.

Was the API Key Identifier helpful?

Get new tools in your inbox

About once a month, when new tools ship. No spam, one-click unsubscribe.

We store only your email to send these updates. Privacy

About this tool

The API Key Identifier tells you what a key or token is from its format alone: which service issued it, what kind of credential it is, whether it's a secret or meant to be public, and whether it's a live or test key. It recognizes over 60 formats, including AWS, Google Cloud, Azure, GitHub, GitLab, npm, PyPI, Stripe, Slack, Discord, Telegram, Twilio, SendGrid, OpenAI, Anthropic and Hugging Face keys, plus PEM private keys, Google service account files and JWTs. It also reads what's inside the key without contacting anyone. AWS access key IDs carry the account number, which is decoded. GitHub and npm tokens end in a checksum, which is verified, so you can tell a real token from a mistyped or made-up one. Discord bot tokens contain the bot's ID and creation date, Telegram tokens the bot ID, and JWTs their issuer, role and expiry, which is how a Supabase service_role key is told apart from the public anon key. Each result says what someone holding the key could do and where to revoke or rotate it. Nothing leaves your browser: the key isn't sent to us or to the service, and it isn't saved.

When to use it

  • →Working out which service a key found in old code or a config file belongs to
  • →Triaging a secret-scanning alert: is it live, a test key, or public by design?
  • →Finding the AWS account an access key belongs to during an incident
  • →Checking whether a token is well-formed before debugging an auth error

Tips

  • ◆Paste the line as it is: quotes, KEY= and Bearer are stripped before matching.
  • ◆Publishable keys (Stripe pk_, Supabase anon) are meant to be public; secret and restricted keys never are.
  • ◆A valid checksum proves the token is correctly formed, not that it still works.
  • ◆If a real secret was committed to git, rotate it. Deleting the commit doesn't help, because clones and forks keep it.
  • ◆Keys with no prefix (Cloudflare, Algolia, many internal APIs) can't be identified by format. The variable name usually tells you.

Frequently asked questions

Is it safe to paste a real API key here?

The key is identified in your browser by pattern matching and never sent anywhere, not to ToolNinja and not to the service, and it isn't stored. Still, if a secret has been exposed somewhere, revoke it whatever this page says.

Can you find the AWS account from an access key?

Usually, yes. Access key IDs created since about 2019 (AKIA and ASIA keys) encode the 12-digit account ID, which is decoded here offline. Older keys don't, and the decoded number is meaningless for them. With credentials, aws sts get-access-key-info returns the account too.

How do I tell a Stripe live key from a test key?

By the prefix: sk_live_ and rk_live_ are live secret and restricted keys, sk_test_ and rk_test_ are test-mode keys, and pk_ keys are publishable keys meant for your web page.

What is the checksum in GitHub tokens?

GitHub tokens (ghp_, gho_, ghu_, ghs_, ghr_) end in six characters that are a CRC32 checksum of the rest, written in base62. npm tokens use the same scheme. It lets scanners tell real tokens from random strings without calling GitHub.

Does this check whether a key still works?

No, on purpose: checking means sending the key to the service. To check a key, call the service's own API from your machine, for example aws sts get-caller-identity or GitHub's /user endpoint.

Guides

Related tools

ToolNinja