Text Anonymizer

Conceal names, addresses, emails and other private details in your text with a single click. Works as a text censor, word redactor and PII anonymizer.

Text Anonymizer

This tool hides sensitive information in your text so you can share it safely.
Paste or type your text in the "Input" field, list the patterns to hide (one per line), set the options, and press "Anonymize Text".
The redacted result appears in the "Output" field.


Load an example

1. Patterns to hide
2. Matching options
Off by default: "john" matches "John" and "JOHN"
On by default: "Tom" won't match "Tomorrow"
Masks common personal data automatically
3. Anonymization method
censor character(s)
Repeats the symbol once per hidden character
Insert a pattern, phrase, or word
Ready to anonymize text.


Overview

The "Text Anonymizer" tool is a free privacy utility that conceals chosen details inside any text. List the words, names, or phrases you want hidden - one per line - and every match is replaced with a censor symbol or a replacement string of your choice, leaving the rest of the text readable.

You control how strict the match is: keep it case-insensitive (the default) so "John" and "john" are both hidden, or switch on case sensitivity for an exact match. A whole-word option (on by default) stops "Tom" from matching "Tomorrow". For extra safety you can let the tool auto-detect common personal data - emails, phone numbers, website links, and IP addresses - without listing them by hand.

Everything runs locally in your browser, so your text never leaves your device and nothing is uploaded or stored. The tool is free, needs no account, and works on any modern browser.


What This Tool Does

The tool scans your text and replaces every occurrence of the patterns you list with either a single censor symbol, a symbol repeated once per hidden character (full fill), or a word or phrase you provide. For example, "John" can become "*", "████", or "REDACTED" - your choice.

By default it matches whole words, so hiding "cat" will not touch "category" or "scatter". Turn off "Whole word only" to redact the letters as a substring anywhere - useful for masking part of a word, but use it carefully because it changes words you may want to keep. With auto-detect on, the tool also scrubs emails, phones, URLs and IP addresses from the text automatically.


How to Use This Tool?

Enter your text: Type or paste it into the Input box, or use Upload a file to load a .txt/.rtf file. The redacted result appears in the Output box.

List what to hide: In Patterns to Hide, write one word, name, or phrase per line. With "Different replacement per line" on, write pattern=replacement on each line instead.

Set the options: Choose Case sensitive and Whole word only to control matching, and switch on Auto-detect to also mask emails, phones, URLs and IPs.

Pick a method: Use Anonymize with a Symbol (set the censor symbol and optional full fill) or Anonymize with a Pattern (set the replacement text).

Run it: Click Anonymize Text, then use Copy or Download to save the result. Turn on Live mode to redact as you type.


Examples

Every example below loads its own text and options - click "Try it" to see the redacted result in the "Output" field right away.

1. Hide a name and address

Replace "Marcus" and "42 Maple Drive" with "[*]" so the customer's identity stays private.

Input
I wanted to let you know that Marcus left a review on our website last night. He mentioned that the delivery to 42 Maple Drive took longer than expected. You can reach Marcus at info@reviewdesk.com or call him at (555) 234-5678. His full review is at http://reviews.example.com/marcus42. We should follow up with Marcus at 42 Maple Drive right away.
Output
I wanted to let you know that [*] left a review on our website last night. He mentioned that the delivery to [*] took longer than expected. You can reach [*] at info@reviewdesk.com or call him at (555) 234-5678. His full review is at http://reviews.example.com/marcus42. We should follow up with [*] at [*] right away.

2. Auto-detect personal data

Use auto-detect to mask the email, phone number, URL, and IP address without listing them by hand.

Input
Hi, I need help with my account. My email is jane.doe@example.com and my phone number is (555) 012-3456. You can also reach me at http://example.com/jane or at IP 192.168.1.100.
Output
Hi, I need help with my account. My email is [EMAIL] and my phone number is [PHONE]. You can also reach me at [URL] or at IP [IP].

3. Different replacement per line

Map each participant label to a unique anonymized ID using the "pattern=replacement" format.

Input
This clinical trial followed three patients over six months. Patient A reported improvement after week two. Patient B experienced no change until week four. Patient C showed steady progress throughout the study.
Output
This clinical trial followed three patients over six months. SUBJECT_1 reported improvement after week two. SUBJECT_2 experienced no change until week four. SUBJECT_3 showed steady progress throughout the study.

Features & Options

Input & Output: Type or paste your text in the "Input" field; the redacted result appears in the "Output" field, ready to copy or download.

Patterns to Hide: A list of the words, names, or phrases you want concealed, one per line. Each line is matched on its own, so a multi-word line like "71 River" hides that whole phrase.

Case sensitive (off by default): When on, only text with the exact same upper/lower case is hidden - so "John" would stay if you listed "john". Off hides the pattern in any casing.

Whole word only (on by default): Hides only complete words or phrases, so "Tom" won't touch "Tomorrow". Turn it off to redact the letters as a substring anywhere in the text.

Auto-detect emails, phones, URLs, IPs: When on, the tool also masks common personal data automatically - emails become "[EMAIL]", phones "[PHONE]", links "[URL]", and IP addresses "[IP]" - even if you didn't list them.

Anonymize with a Symbol: Replaces each match with your censor symbol (default "*"). With "Full symbol fill" on, the symbol repeats once per character of the hidden text (e.g. "John" to "████").

Anonymize with a Pattern: Replaces each match with the replacement text you type (default "[REDACTED]"), such as a label like "PARTICIPANT".

Different replacement per line: Turn this on to give each pattern its own custom replacement instead of using a single symbol or text for all of them. Write each line in the "Patterns to Hide" box as pattern=replacement. The replacement is used exactly as written — the symbol and pattern method settings in card 3 are ignored. For example, with this option on and these lines in the patterns box:

Dr. Lee=INVESTIGATOR
Patient A=SUBJECT_1
Patient B=SUBJECT_2

Input text "Dr. Lee supervised Patient A and Patient B." becomes "INVESTIGATOR supervised SUBJECT_1 and SUBJECT_2."

Live mode / Upload a file: "Live mode" redacts as you type; "Upload a file" reads a .txt or .rtf file into the input.

Copy & Download: "Copy" puts the output on your clipboard; "Download" saves it as a .txt file. "Clear Everything" empties all boxes.


FAQs

FAQ 1: How do I list the text to hide?
Answer: Type one word, name, or phrase per line in the "Patterns to Hide" box. Each line is matched separately, so a line with several words hides that entire phrase.

FAQ 2: Why didn't a pattern get hidden?
Answer: With "Whole word only" on (the default), only full matches count, so "Tom" won't be taken out of "Tomorrow". Also check "Case sensitive" - if it's on, "John" won't match a list entry of "john". Turn it off for case-insensitive hiding.

FAQ 3: What does "Full symbol fill" do?
Answer: Instead of replacing a match with a single symbol, it repeats your censor symbol once for every character of the hidden text. So "John" with "*" becomes "****", keeping the original length.

FAQ 4: What does the auto-detect option hide?
Answer: When switched on, the tool automatically masks emails ("[EMAIL]"), phone numbers ("[PHONE]"), website links ("[URL]") and IP addresses ("[IP]") - even if you didn't add them to the list. It's a quick way to scrub common personal data.

FAQ 5: Can I give different patterns different replacements?
Answer: Yes. Turn on "Different replacement per line" and write each entry as pattern=replacement (for example Tom=PARTICIPANT). The replacement is used exactly as written and the symbol/pattern method is ignored.

FAQ 6: Can I use this tool to censor specific words in my text?
Answer: Yes. List the words you want to censor in the "Patterns to Hide" box, then choose a replacement method — a censor symbol (like * or the black block character █), a fill symbol that repeats per letter, or a custom replacement word. This works the same way as a dedicated text censor tool.

FAQ 7: Is my text private?
Answer: Yes. The tool runs entirely in your browser with JavaScript. Your text is never uploaded to or stored on our servers.

TextToolz

The Ultimate Text Tools

TextToolz works seamlessly to let you convert and design your text. It is fast, reliable and secure. Trusted by thousands of users.