Secret Detector & Redactor

Detect API keys, tokens and private keys in pasted text and redact them.

The Secret Detector scans pasted text for common credential patterns such as AWS keys, GitHub tokens, private keys, JWTs and hard-coded passwords. It lists each finding with its line number, and produces a redacted copy of your text. It is meant as a quick check before you share logs, configs or code.

What are leaked secrets and how are they found?

A leaked secret is a credential that ends up somewhere it should not be, such as a commit, a chat message, a support ticket or a log. Many credentials have recognisable shapes: AWS access key IDs start with AKIA, GitHub tokens with ghp_, and private keys sit between BEGIN and END markers. Scanners match these shapes with regular expressions, and also look for names such as password or api_key followed by a quoted value. Pattern matching is heuristic. It can miss secrets with no known format and can flag harmless strings. If a real secret has been exposed, redacting the text is not enough: the credential should be treated as compromised, revoked and replaced, because it may already have been copied.

How to use Secret Detector & Redactor

  1. Paste your text Paste logs, config or source code into Text to scan.
  2. Read the findings A summary message shows how many possible secrets were found, and a table lists the Rule, Line and Preview for each.
  3. Use the redacted output The Redacted output box shows your text with every finding replaced by a [REDACTED:rule-id] tag.
  4. Copy or download Copy the result or download it as redacted.txt.

Frequently asked questions

Does a clean result mean the text is safe?

No. The scan is heuristic and only knows the listed patterns, so secrets in other formats can be missed.

Can it produce false positives?

Yes. Example keys, test fixtures and placeholder tokens match the same patterns as real ones.

I found a real key. What now?

Revoke or rotate it with the provider and check for use of it. Removing it from text does not remove the risk if it was already shared.

Which secret types are detected?

AWS access key IDs, GitHub tokens, Slack tokens, Stripe secret keys, Google API keys, private key blocks, JWTs, bearer tokens, credentials in URLs and hard-coded secrets.

Is my text uploaded?

No. The scan runs in the page and the text is not sent to a server.