Skip to content
OnlineToolStudio

Redact Text

runs in your browserno sign-upfree

Hide API keys, tokens, passwords, emails, card numbers and other sensitive data in logs, code and text before you share it.

What to findFind:
Input728 chars
Redacted

12 items redacted

Passwords2API keys3JWTs1Emails2Phone numbers1Card numbers1PAN1Hashes1

Always read the result before sharing — names and secrets in unusual formats may not be recognised.

About this tool

Redact Text finds and hides sensitive information before you share logs, code, config files, API responses or messages — on Stack Overflow, GitHub, Slack, in a support ticket or with an AI assistant. It detects API keys and tokens (AWS, Google, Stripe, GitHub, OpenAI, Slack and more), JWTs, passwords in config files and connection strings, private keys, cookies, email addresses, phone numbers, card numbers, IBANs and national IDs such as PAN, Aadhaar and SSN. Replace them with ****, stars that keep the original length, labels like [EMAIL], numbered placeholders that keep logs readable, or keep the first and last characters. Everything runs in your browser and nothing you paste is uploaded or saved.

How to use

  1. Paste your text, log, code or JSON into the Input box. The redacted version appears on the right as you type.
  2. Choose a mode: Smart detect (pick what to find), Secrets only, All values (hide every value in JSON, YAML or .env but keep the keys) or Keys + values.
  3. Pick a style for the replacement: stars, same-length stars, labels, numbered placeholders or keep the first and last characters.
  4. Add your own words to hide (a client or project name), and values to keep if something was hidden by mistake.
  5. Check the summary of what was found, then copy or download the redacted text.

FAQ

Is my text sent to a server or saved?

No. Detection and redaction run entirely in your browser, and the text you paste is not saved — not even in this browser. Only your chosen mode, style and checks are remembered.

What can it detect?

API keys and tokens with known formats (AWS, Google, Stripe, GitHub, GitLab, Slack, OpenAI, Anthropic, SendGrid, Twilio, npm, Shopify and others), JWTs, bearer and basic auth tokens, cookies, private keys, passwords and secrets in config files (by key names such as password, secret, token or api_key), passwords in connection strings, email addresses, phone numbers, card numbers (checked with the Luhn algorithm), IBANs, crypto wallet addresses, PAN, Aadhaar, US SSN and UK National Insurance numbers, password hashes (bcrypt, Argon2, MD5, SHA) — and optionally IP or MAC addresses.

Why are IP addresses off by default?

IP and MAC addresses appear in many logs where they are fine to share, and turning them on by default would hide too much. Tick them when you need them. Hashes are on by default — untick them if you want to keep commit IDs or file checksums, which look the same as hashes.

What are numbered placeholders?

Each different value gets its own placeholder, and the same value always gets the same one — for example <EMAIL_1> and <EMAIL_2>. In a log you can still see that the same user or IP appears several times, without revealing who it is.

Should I use **** or same-length stars?

Plain **** hides everything, including how long the value was — the safest choice. Same-length stars put one star per character, so you can still tell an empty value from a 40-character key and columns stay aligned. The start of a known token that only tells you its type stays visible — sk_live_, ghp_, AKIA or the header of a JWT — so you can still see what kind of key it was. Passwords are the exception: they are always replaced with a fixed ********, because their length would help someone guess them.

Can I trust it to find everything?

It finds common formats reliably, but no tool can recognise every secret or name. Always read the result before sharing, and use "Also hide" for names, company or project names it cannot know about. If a key was leaked anywhere public, rotate it — redacting a copy does not make the original safe.

Related tools

All tools