Safe Privacy Mask

A free Chrome extension that replaces email addresses, phone numbers, API keys and more inside the input field, before you send text to an AI chat or a web form. The replacing happens in your browser, and your text is not sent to any external server to do it.

Add to Chrome (free)

Requirements: Google Chrome on a computer. Other browsers have not been tested.

What you typed

The contact is John Doe.
Email: john@example.com
Phone: +1-202-555-0134
API_KEY=demo-example-key

Replaced in the input field, before you send

After replacing

The contact is [name].
Email: [Email1]
Phone: [Phone]
API_KEY=[API key]

The name is a word registered beforehand; the rest are found by the standard masks.

Mask your text right in the field

Before you send to an AI or a web form, strings that match your rules are replaced right inside the input field.

About 46 seconds, no audio. See how to choose when masking happens, Mask on send with review and a second send, the settings screen, and Real-time masking.

With confirmation on, a send that masks text is stopped once. Review the result, then send again. If the mask was not needed, select “Undo masking” in the review panel.

Right-click to mask selected text

Before copying text or sharing your screen, mask a selection on a web page or in an input field. No site or field registration is needed.

No audio. A real recording using a fictional email, with the standard email rule enabled and automatic masking off. Recorded with 2.2.0: the menu item shown as “Mask selection” is now called “Apply rules to selection”.
See the steps in pictures
1. Select and right-click
1. Select and right-click
2. Review and transform
2. Review and transform
3. Replaced in place
3. Replaced in place
  1. Select text, right-click, and choose “Apply rules to selection”.
  2. Review the result and highlighted replacements, then choose “Transform” to change the original selection. “Cancel” or Esc leaves it unchanged.
  3. This action does not copy or send anything. To use the result elsewhere, select and copy the transformed text yourself.
Supported selections, review settings and limits

Only matches to currently enabled standard and custom rules are replaced. Add names or client terms to your rules as needed. No matches means no changes. Manual use also works when automatic masking is off, paused, or the site is excluded.

Review is on by default. After a successful transformation with “Don’t confirm next time” selected, future uses skip review. Restore it under “Mask timing” → “Confirm before transforming the selection”. This is separate from send review.

Browser internal pages, inaccessible embedded pages, password fields, and read-only or disabled fields are unsupported. Ordinary page changes may disappear on reload or when the site redraws content. Check the display before sharing. Send-review “Undo masking” does not undo this action.

The selection and result are processed in your browser. The extension does not store, log, or transmit them, or access the clipboard.

Attachment check

When you attach a file on a site (by choosing it or dragging it in), the text inside the file is checked with the same rules as input fields, and the result is shown on a card. Added in 3.0 and on by default.

About 21 seconds, no audio. A real recording: a fictional Excel file attached on a fictional site, up to the card Safe Privacy Mask 3.0 shows. The registered word “Aozora Trading” and the standard email rule are on.
See the card as a picture
customers.xlsx attached in a fictional AI assistant. The “Attachment check” card at the bottom right lists what was found in the text (Registered word “Aozora Trading”: Customers!A4, Old customers!A2; Email address: Customers!C4) and the details kept in the file (author, company, hidden sheet). The “Attachment check” card for customers.xlsx: found in the text (Registered word “Aozora Trading”: Customers!A4, Old customers!A2; Email address: Customers!C4) and details kept in the file (author, company, hidden sheet).
The card Safe Privacy Mask 3.0 actually showed when a fictional file was attached on a fictional site, with the registered word “Aozora Trading” and the standard email rule turned on.

Found in the text

Where your registered words, regex rules and standard masks match, given as the rule’s name and the place (for example: Registered word “Aozora Trading”: Customers!B4). The matched text itself, such as an e-mail address or a number, is not shown on the card.

Details kept in the file

What the file carries besides its text: author and company, hidden sheets, tracked changes, comments, the location in a photo, and so on.

Could not be checked

What could not be checked: scanned pages, files that are password-protected, encrypted or damaged, files larger than 45 MB, text in an encoding that could not be read. This is shown separately from “nothing found”.

File typeText that is checkedHow the place is given
Excel workbooks (.xlsx)Cells with text, and cells holding whole numbers of six digits or more, including hidden sheets, rows and columnsSheet!cell
Text files (.txt, .csv)Each line (UTF-8, Shift_JIS, EUC-JP)line N
PDF documentsText that can be read. Scanned pages and text inside pictures are not readpage N
Word documents (.docx)Body paragraphs and text in tablesparagraph N / table N, row R, column C
Photos (JPEG, PNG, WebP)Not checked (only the details kept in the file are shown)—

This is a notice made when you attach the file. It does not stop the upload and does not change the file. On some sites the upload starts before the card appears.

Files are checked only on pages where Safe Privacy Mask runs (the major AI chats and sites you have allowed). Not on sites where the extension is turned off or not used, or while it is paused. Attachment fields inside embedded frames (iframes) are not covered.

Word headers, footers and footnotes, the text of comments, and PDF annotations and form fields are not read. Detection can miss things or flag the wrong ones, and it cannot see through files made to avoid detection.

In settings, under “General” → “Attachment check”, you can turn it on or off, choose the file types to check, and choose whether to be told when nothing is found.

Files are read and checked on your device. The contents, the text read from them and the result are neither stored nor sent. No permission was added for this feature.

How this differs from Safe Attachment Check: Attachment Check shows the details kept in a file, on every site. The check in Mask works only on pages where Mask runs, but besides those details it checks the file’s text against the rules you registered.

See Safe Attachment Check →

When it helps

Replace information you do not want to share before sending text to an AI chat or web form.

Asking AI to help with an email

Replace email addresses and phone numbers in an email draft inside the AI chat input field before sending.

Sharing error logs or code

Replace API keys, tokens, and IP addresses found in logs, code, and config files.

Summarizing or translating customer messages

Replace customer names, project names, and internal system names with any text via custom rules.

Typing into a web form

Even on sites that aren’t supported out of the box, register the target field and use it there.

Asking for a summary of meeting notes

Meeting notes often include participants' names and companies. Add those names as custom rules to replace them in the input field before asking for a summary.

See how to mask personal information before sending it to AI →

Key features

Choose what to mask and when to replace it.

Masks inside the field

No copying to another screen — text is replaced right in the field you’re typing in.

Detects email, phone, API keys & more

Common formats of personal and credential data are found and replaced by presets.

Register customer & project names

Add rules for your organisation's numbers and terms. You can also use regular expressions to match text patterns.

Enable or disable per site

Choose sites for automatic masking and exclude others. Manual right-click transformation also works on excluded sites.

Choose the masking timing

Choose “Mask when sending” (Mask on send) or “Mask automatically while typing” (Real-time masking).

What it can detect and mask

Built-in rules detect common formats. Add your own rules for other terms or patterns you want to mask.

Email address Phone number API keys & tokens IP address Credit card number Region-specific IDs Custom words Custom regex
Regional coverage & how detection works

Number formats that differ by country, matched to your region.

National & personal IDs Phone numbers Postal codes Bank account & IBAN
Regions supported (44) Japan United States United Kingdom China India South Korea Brazil Canada Australia EU member states (27) Taiwan Thailand Philippines Indonesia Vietnam Malaysia Singapore Türkiye

The country or region is detected on the first-run screen, using your device settings. You can change it under Standard masks in settings. On new installations, the standard rules for the selected country or region apply together with the common rules. Each of the 27 EU member states can be chosen on its own. Choose the display language under General in settings.

Card numbers are checked against their check digits (Luhn), so unrelated strings of digits are far less likely to be replaced.

Custom replacement rules

Register any “before → after” pair you like. Every setting saves automatically.

Word replacement

Replace a specific word with another, e.g. Confidential → [redacted].

Customizable

Regular-expression rules

Flexible patterns are supported too, e.g. \d{3}-\d{4}-\d{4} → [phone].

Customizable

Advanced options

Toggle case sensitivity, whole-word matching, and full/half-width equivalence per rule.

Optional

No cap on the count

There is no limit on the number of rules you can add. Large numbers of rules or complex regular expressions may slow down processing.

No cap

Choose where and when

Major AI chat sites are supported as soon as you install the extension. On other sites, register the input fields where you want it to run.

1

Pick the target

Major AI chats work with no setup. On any other site, register an input field with a click.

ChatGPT Claude Gemini & more
2

Choose the mask timing

Choose on the first-run screen, or in settings under General (Mask timing). Mask on send is the default for new installations. You can also adjust individual triggers; other combinations show as a custom combination.

Mask on send Real-time masking Custom combination
3

Adjust per site

Set each domain to “all fields” or “disabled.” Add sites you never want it to run on to “Sites where this extension is not used.”

All input fields Disabled here Excluded sites

Mask on send: keep your text as you type

Detected information is replaced in the field when you use the send button, Enter, or form submission.

Real-time masking: see replacements as you write

Replaces while typing, when leaving the field, on paste, and before sending—the same combination as the previous defaults.

Pause to review when sending masks text

When confirmation is on and text is masked as you send, “Sending stopped” appears. Review the text in the field and send again. If there is nothing new to mask, that send proceeds. The extension does not send on your behalf.

Confirmation defaults to on only for new installations. Turn it off in Settings or select “Don’t stop to confirm next time; send right away” in the notice. When off, sending proceeds without a pause to review the masked text. Sends with nothing to mask are not stopped.

Updating preserves saved timing settings. Existing users who used the previous defaults keep Real-time masking, with send confirmation off.

In Mask on send, Shift+Enter and Enter used to confirm IME composition do not mask. In fields where plain Enter inserts a new line, it may trigger masking and, with confirmation on, stop the action.

With Mask on send, the original text remains in the input field until you send. Neither mode prevents the website from reading unmasked input, for example to autosave drafts.

Your text is not sent to an external server for masking

Detection and replacement both finish on your device.

This extension does not send your input, detection results, or browsing history externally.

Inspection and replacement both finish on your device; there is no external server or external API used for masking.

Runs on your device

Detection and masking run in your browser, with no external server involved.

No ads, analytics, or telemetry

Detection and masking use no external API, LLM API, analytics, ads, or telemetry.

Browsing history

It does not collect or record the URLs of pages you open or your browsing history.

Where data lives

Settings, custom rules, and site scope are stored only on your device in chrome.storage.local. To detect the country or region automatically, it reads the browser’s language settings and time zone on your device; only the detected country or region is stored.

Attached files

Files are read on your device. Their contents, the text read and the result are not stored or sent, and the file is not changed.

Permissions needed

storage saves settings; scripting applies processing to pages; contextMenus provides the right-click menu; activeTab gives temporary access to the tab you act on. Page access is used to detect and replace text in target input fields and right-click selections.

Read the Privacy Policy →How to verify (Transparency) →

Install & use

Three steps to get going.

See the step-by-step online manual →

Adding Safe Privacy Mask from the Chrome Web Store

1Add to Chrome

Just press “Add to Chrome” on the Chrome Web Store to get started.

Safe Privacy Mask settings (options) screen

2Set what to hide and where

Use the five menus in settings to adjust what to hide, target sites, and mask timing.

An input field being masked before sending

3Type into an AI or web form

In target fields, matched strings are replaced before you send.

For details like pinning to the toolbar, see Support and the FAQ. Open it any time from the extensions icon (the puzzle piece).

How it works under the hood

Even when custom regex is heavy, processing runs on a separate thread with timeouts and auto-disabling of the offending rule to keep the page responsive.

Runs on a separate thread (Web Worker)

Regex runs in a Web Worker (separate thread), so the page and your typing never freeze during heavy work.

Regex timeout

If one pass exceeds the limit (default 50ms), the worker is stopped and that pass is skipped (your input is left intact).

Isolating & disabling problem rules

On timeout, the offending regex rule is identified and, per your settings, automatically disabled with a notice.

Synchronous at send time

Before-send replacement runs synchronously. If confirmation is on and text is replaced then, the send is stopped. If inspection fails or is skipped, for example because the scan limit is exceeded, sending is not stopped and may proceed with the original text. The popup reports incomplete processing.

Checksum validation (Luhn)

Card numbers and similar are checked against their check digits (Luhn) to avoid replacing unrelated strings of digits.

Where data lives

Where data is stored is described in the privacy section of this page. Go to that section

Permissions needed

The permissions and what each is used for are described in the privacy section of this page. Go to that section

How to verify traffic

Traffic from the extension itself (its service worker) shows in the dedicated DevTools opened from chrome://extensions; traffic from the content script running in the page shows in the page’s own DevTools (F12).

How to verify (Transparency) →

How detection rules work

Presets detect by format (regex); custom rules replace matches of the word or regex you specify.

Frequently asked questions

Does Safe Privacy Mask send my input to an external server for masking?

No. Detection and replacement run in your browser, and the extension does not send your input or detection results externally.

Can it detect all personal information?

No. It detects based on string formats and your registered rules, so misses and false positives can occur. Always review before sending.

Can masked content be undone?

Yes, while the review panel of a stopped send is open: “Undo masking” restores only the masks made by that send. Typing masks and masks after the panel is closed cannot be undone with it. Right after a replacement as you type, your browser’s Undo (Ctrl+Z, or ⌘Z on a Mac) may bring the text back. If you need the original, review and edit it yourself before sending.

Does it work beyond ChatGPT?

Yes. Besides ChatGPT, Claude, and Gemini, it supports major AI chats like Copilot, Perplexity, Poe, Grok, Mistral, and DeepSeek, and works on other sites once you register a field.

Does it send automatically after masking?

No. It replaces text before sending, but only your own action sends the message.

Does it replace my company’s DLP?

No. Safe Privacy Mask is an aid to reduce oversights at input time; it does not replace your organization’s DLP, access controls, or approval processes.

Is there a limit on custom rules?

There is no limit on the number of rules you can add. Large numbers of rules or complex regular expressions may slow down processing.

Can it check files I attach?

Yes. From 3.0, when you attach a file on a page where Safe Privacy Mask runs (major AI chats and sites you allowed), it checks the text of Excel (.xlsx), text (.txt, .csv), PDF and Word (.docx) files against your rules and shows the result in a card, together with the details kept in the file. For photos (JPEG, PNG, WebP) it shows those details only. Attachment fields inside embedded frames (iframes), files larger than 45 MB, and password-protected or encrypted files are not checked.

Does it send attached files anywhere, or stop the upload?

Files are read and checked on your device, and the extension does not send their contents or the results anywhere. It does not stop the upload or change the file. On some sites the upload starts before the card appears.

Tools that check before you send or open, compared

Each works at a different moment and leaves different things alone. Choose the one that fits what you want to check.

Aspect Safe Privacy Mask Safe Privacy Gate Safe Attachment Check Safe Mail Link Check Safe Privacy Detect
Main use and when it worksReplaces detected information inside the input field on major AI chats and fields you register (on send by default for new installs)On every site except trusted ones, checks the text and file names just before you send, and shows a confirmation screen if something is foundWhen you select or drop a file, shows details it still carries, such as location data or the authorWhen you click a link in Gmail, Outlook on the web or Yahoo! Mail, shows where it actually goes before it opensAn AI model, not a Chrome extension. Judges whether Japanese text states any of six kinds of information before it goes to an AI
Rewrites your textYes — inside the input fieldNoNo — and it does not change the fileNo — and it does not change linksNo — it does not extract or mask the passage
Stops the sendOnly when send confirmation is on and something was replaced at that send (on by default for new installs; can be turned off)When something is found, pauses that send and shows a confirmation screen. It does not forbid sending, and the page can cover the screenNo — the upload continues as usualIt does not handle sending. It pauses the first navigation from a link, once (it does not block it)No — it does not judge whether text may be sent; the system using it decides
Attached filesSince 3.0, reads an attached file on the device and shows where your rules match and what details it carries. Does not stop the upload or change the fileWarns about confidential words in file names (does not read the contents). It cannot always stop an uploadReads the contents on the device and shows the metadata (JPEG, PNG, WebP, PDF, DOCX, XLSX). Does not store, send or change the fileNot handled (it reads only the clicked link's URL and text)Not handled (it judges only the text it is given)
Where it runs, and sending outIn the browser. The extension sends nothing outIn the browser. The extension sends nothing outIn the browser. Sends nothing out (connections from its extension pages are blocked by its CSP)In the browser. The extension sends nothing outRuns on the CPU of the system it is built into; no network needed at run time

Choosing by what you need:

  • Safe Privacy Mask — You want what you type on supported pages, such as AI chats, replaced before it is sent, and attached files checked as well.
  • Safe Privacy Gate — You want one check of the text and file names just before you send, on any site, with nothing replaced automatically.
  • Safe Attachment Check — You do not need masking and only want to see the details left in attached files, on any site. It does not change files or stop uploads.

Choose Mask to hide before sending; choose Gate to check without changing your text. You can also use both together.

See Safe Privacy Gate →

Try Safe Privacy Mask

Replace email addresses, phone numbers, API keys and customer names directly in the input field.

Add to Chrome (free)

Opens the Chrome Web Store

Before you start

Read the privacy policy and terms of use below.