Text Redactor

Paste text to hide email addresses, phone numbers, card numbers, IBANs, IP addresses and any words you name, then copy the clean version. The text never leaves this page.

How it works

Each kind of detail has its own pattern. Card numbers must also pass the Luhn check that real card numbers pass, and IBANs must pass the mod-97 check every IBAN carries, so an order number of the right length is left alone.

The kinds are applied in a fixed order, strictest first: emails, IBANs, cards, IP addresses, then phone numbers, then your own words. Once a stretch of text is claimed by one kind, no other kind takes it, so a card number is never half-masked as a phone number.

Every match is replaced with the mask you pick, and the table under the result lists each distinct value that was removed and how many times. The work happens in this tab as you type; nothing is sent anywhere.

How to use it

  1. 1 Paste the text into the Text box.
  2. 2 Untick any kind you want to keep, and add names or other words to hide, separated by commas.
  3. 3 Choose how to mask: labels such as [EMAIL], solid blocks, or stars of the same length.
  4. 4 Read the redacted text and the list of what was removed, then copy or download it.

Good to know

  • Labels such as [EMAIL] keep the text readable for whoever gets it, and make it clear something was removed on purpose.
  • Blocks and stars keep each line the same length, which helps when the text is a log or a fixed-width table.
  • Add people’s names, company names and project code names as custom words. A pattern cannot tell that "Jane Roe" is a person.
  • Before pasting a support log into a public issue tracker or a chatbot, run it through here first and read the result once.

Browser support

  • Chrome 94 and later
  • Firefox 93 and later
  • Safari 16.4 and later
  • Edge 94 and later

These are the oldest versions with everything the tool uses. They are worked out from the tool itself, so they change when it does.

Version numbers checked on 2026-09-04.

Cleaning a support email before you paste it anywhere

Suppose a customer wrote in: "Hi, I am Jane Roe. My card 4111 1111 1111 1111 was charged twice. Call me on +44 20 7946 0958 or mail jane.roe@example.com. Refunds can go to GB82 WEST 1234 5698 7654 32." You want to paste it into a bug report, or ask a chatbot to summarise it. Pasted here with every kind ticked and Jane Roe added as a word, it becomes: "Hi, I am [REDACTED]. My card [CARD] was charged twice. Call me on [PHONE] or mail [EMAIL]. Refunds can go to [IBAN]."

The table under the result shows five rows: one word, one card, one phone, one email and one IBAN, each with the exact text that was removed. That list is how you check the tool did what you expected. If a row is missing, the detail was written in a form the pattern did not recognise, and you can add it as a word. If a row is wrong, untick that kind, or keep it and accept the extra mask.

The checks behind the card and IBAN kinds are what keep the false alarms down. A card number is only masked if its digits pass the Luhn check, so order number 4111 1111 1111 1112 stays as it is. An IBAN is only masked if its country code, check digits and account part pass the mod-97 check that banks use, so a random string of letters and digits does not qualify. IP addresses must have four parts from 0 to 255, or be a valid IPv6 address, so a time such as 10:30:45 is left alone.

Choosing the mask is about who reads the result. Labels make the redaction obvious and keep the text easy to follow, which suits a bug report or a chatbot. Blocks and stars keep the length of each value, so columns in a log or a fixed-width export still line up. All three remove the original characters from the result; nothing is hidden behind formatting that someone could undo.

The limits are real. Patterns find details written in common shapes; they do not understand the text. A name, a street address or a date of birth in an ordinary sentence is only found if you list it as a word. The phone pattern is loose enough to catch some long reference numbers. Text is capped at 2 MB at a time so the page stays responsive. Read the result once before you share it.

Frequently asked questions

Is my text sent anywhere?

No. The redaction runs in JavaScript in this tab, as you type. The text, the result and the list of removed items stay on this page and are gone when you close it.

Will it find every piece of personal data?

No tool can promise that. It finds the kinds listed, in their common written forms, and the words you name. It does not find names, addresses or dates of birth in ordinary sentences unless you add them as words. Always read the result before you share it.

Why was a 16-digit number not hidden as a card number?

Because it failed the Luhn check, the checksum built into every real card number. That keeps order numbers and tracking codes from being masked by mistake. If you want it hidden anyway, add it as a custom word.

Which phone numbers does it recognise?

Numbers of 7 to 15 digits, with an optional + country code and brackets, and spaces, dots or hyphens between digits, such as +44 20 7946 0958 or (555) 123-4567. Dates such as 2024-05-01 are left alone. A loose pattern like this can also catch a long reference number, so check the list.

Can I redact a PDF or a photo instead?

This tool works on text you paste. For a PDF or an image, use the Redact tool, which burns black boxes into the page so the hidden text cannot be recovered.

Related tools

Your files are processed on your device and are not uploaded. You can verify this in your browser’s developer tools under the Network tab.