Text Redaction Tool

Items redacted—
Total words—
Characters—

How Text Redaction Tool is calculated: Emails, card numbers, and phone numbers are found with patterns and replaced with [REDACTED]; custom words are matched exactly and replaced the same way.

What is a text redaction tool?

A text redaction tool blacks out private details in a document so it can be shared safely. Paste in an email, a chat log, or a report, and every email address, phone number, and card number is replaced with [REDACTED]. The default text on this page has 14 words and 89 characters, and the tool redacts 3 items from it: one email, one phone number, and one card number.

The need comes up whenever a document leaves its original audience. A support agent pasting a customer message into a public ticket, a lawyer sharing a contract excerpt, a researcher publishing interview quotes, or a manager forwarding a complaint all face the same problem: the text is useful, but the personal details in it are not theirs to share.

Redaction is the standard answer in law, journalism, and customer support. Instead of deleting whole sentences, you cover only the sensitive pieces, so the document stays readable and the private data stays private. This tool does the covering for the common patterns, and lets you add your own words to the list.

How text redaction works

Each kind of detail is found with a pattern. An email address is a run of letters, digits, and dots, then an @ sign, then a domain with a dot: ada@example.com matches, and so does first.last+tag@sub.example.co.uk. A card number is 13 to 16 digits, written together or in groups separated by spaces or dashes, such as 4111 1111 1111 1111.

A phone number is matched in the two shapes people write most: an international number starting with +, such as +44 20 7946 0958, and the North American shape of three digits, three digits, four digits, such as 555-123-4567. The order matters: card numbers are checked before phone numbers, so a 16-digit card is not mistaken for a phone number.

Custom words are matched exactly, ignoring case, so adding "Acme Corp" redacts every mention of that company name. Every match, whatever its kind, becomes the same marker: [REDACTED]. The count at the top tells you how many items were covered — 3 in the default text — so you can check that nothing was missed before you share the result.

What gets redacted — and what does not

The three built-in patterns cover the details that leak most often: email addresses, phone numbers, and payment card numbers. They are the pieces of data that identify a person directly or give access to their money, and they are the pieces that appear in ordinary text without any warning.

What the tool does not cover is just as important to know. It does not redact names, street addresses, dates of birth, passport numbers, or account numbers, because those have no reliable pattern — a name looks like any other word. If your document contains names or addresses, add them to the custom words box, one per comma, and they will be redacted like everything else.

It also does not redact details hidden in images, attachments, or document metadata. A screenshot of an email still shows the address, and a Word file can carry the author's name in its properties. Redact the text, then check the file itself before you send it. This tool covers the text you paste, nothing more.

Custom words are the part of the tool that needs the most care, because they are the only part the user controls directly. A custom word is matched as a whole word, so adding Smith will redact the surname Smith wherever it appears, but it will not touch Smithfield, which contains Smith as part of a longer word. That whole-word rule is what keeps the redaction from eating ordinary words that happen to contain the letters. Add each sensitive word once, separated by commas, and check the result — a word you forgot to add is a leak, and a word you added by mistake is easy to remove.

A worked example: sharing a support message

Take the default text: "Contact me at ada@example.com or call 555-123-4567. Card 4111 1111 1111 1111 was charged." It has 14 words. With all three boxes ticked, the output reads: "Contact me at [REDACTED] or call [REDACTED]. Card [REDACTED] was charged." Three items redacted, and the sentence still makes sense.

Now add a custom word. Type "Ada" into the custom words box and every mention of that name is covered too. The count rises, and the output no longer names the customer at all. That is the workflow for a public ticket: redact the contact details with the built-in patterns, then add the names and company words by hand.

Try turning boxes off to see what each pattern does. Untick the card box and the card number stays visible while the email and phone are still covered — the count drops from 3 to 2. That is useful when you want to keep one kind of detail, for example a phone number the reader is allowed to call.

Who uses a text redaction tool, and why

Customer support teams are the biggest users. A support agent who pastes a customer message into a shared ticket or a public forum needs the message without the customer's email and phone number. Redacting first means the ticket can be shared with the whole team, or even published, without leaking anything.

Lawyers, journalists, and researchers are the second group. Court filings, leaked documents, and interview transcripts all need names and contact details removed before publication. A redaction tool does the routine patterns in seconds, leaving the human to judge the names and the context that no pattern can catch.

Anyone sharing a screenshot or a quote is the third group. A social media post quoting a message, a bug report quoting a log, or a manager forwarding a complaint all carry the same risk: the useful text travels with private details attached. A word counter can check the length of the redacted version before you post it.

Redaction vs filtering and other text tools

Redaction hides private data; changing case hides nothing at all. A case converter changes capitalisation, which is a question of style, not privacy. Use redaction when the risk is identity or money, and case conversion when the text is fine but the capitalisation is wrong. A moderated forum often needs both redaction and a style fix.

Redaction also differs from deletion. Deleting a sentence removes its meaning; redacting keeps the sentence and covers only the sensitive piece. "Contact me at [REDACTED]" still tells the reader that contact details were given, which matters in a legal document where the fact of contact is evidence.

Other tools in the same family measure text rather than changing it. A word counter tells you the redacted text still has 14 words, and a character counter gives the exact length after redaction — [REDACTED] is longer than most emails, so the character count changes even when the word count does not.

Common redaction mistakes

The most common mistake is assuming the tool found everything. Patterns catch shapes, not meanings: a phone number written as "five five five, one two three" has no digits to match, and an email split across two lines will not match either. Always read the output yourself and compare it with the original before you share it.

Second: redacting the text but not the file. A PDF can carry the original text in a hidden layer, and a document can carry the author's name in its metadata. If you redact a document for publication, check the file properties and use a proper PDF redaction for the file itself — this tool covers pasted text only.

Third: using different markers for different kinds of data. If emails become [EMAIL] and phones become [PHONE], a reader can tell what kind of detail was hidden, which is information in itself. One marker for everything — [REDACTED] — reveals nothing about what was there.

Fourth: forgetting that context leaks. "The CEO of Acme Corp called me" redacts nothing if no custom words are set, yet it still identifies a person to anyone who knows the company. Add names, companies, and project words to the custom box, and read the redacted text as a stranger would before you send it.

A second mistake is redacting the value but leaving a clue next to it. A sentence such as my card ends in 1111 tells the reader the last four digits even after the full number is gone, and a sentence such as contact the manager at the address above leaks the fact that an address was there. Redaction works best when the whole sentence is re-read after the tool runs, because the tool only removes the pattern it knows — it cannot judge whether the words around it still give the secret away.

How to use this text redaction tool

Paste your text into the box. The tool runs live: every email, phone number, and card number is covered as you type, and the count at the top updates. Tick or untick the three boxes to choose which kinds of detail are covered, and add custom words in the box at the bottom, separated by commas.

To copy the result, use the Copy button next to the output box. To check your work, read the redacted text once through and count the [REDACTED] markers against the private details in the original. The default text is a good first test: 3 items, one of each kind.

Everything runs in your browser. No sign-up, no account, no data sent anywhere — your text never leaves your device. That matters more here than in most tools, because the text you redact is private by definition. It works offline once the page has loaded, so you can redact anywhere, including on a plane or in a courtroom with no signal.

Paste the text, press the redact button, and read the result from start to finish before you copy it. The result shows a count of how many items were redacted, and that count should match what you expected to hide — if you expected four items and the count says three, one of them did not match a pattern and needs to be added as a custom word. When the count matches and the surrounding sentences read cleanly, copy the result. The original text never leaves the browser, so there is no copy of the sensitive text on any server.

Frequently Asked Questions

Three kinds are built in: email addresses, phone numbers, and payment card numbers of 13 to 16 digits. You can add any other words — names, companies, project names — in the custom words box, separated by commas, and they are redacted too.

No. Each item is replaced by the single marker [REDACTED], so the default text stays 14 words before and after redaction. The character count does change, because [REDACTED] is 10 characters while most emails are longer.

Yes. Untick the phone numbers box and only emails and card numbers are covered. The count updates live, so you can see exactly how many items each box is responsible for.

Yes. Everything runs in your browser — your text is never uploaded, stored, or sent anywhere. You can use it offline once the page has loaded. Remember that this tool covers pasted text only, not images, attachments, or document metadata.

More free tools

More calculators and utilities from Sortrun — free, no sign-up.