AIRedactX
Browser extension
TL;DR. A Firefox and Chrome extension that redacts personal data and secrets from a text field before you send it.
- Problem:
- Pasting a log, an email or a contract into an AI chat sends along whatever personal data and secrets are in it.
- For:
- Anyone who pastes work text into ChatGPT, Claude, Gemini, Copilot or another chat window.
- Result:
- One click swaps every match for a placeholder before you send. Nothing leaves the browser. The source is on GitHub under the MIT license.
How it works
A small button appears inside the text field on supported chat sites. Click it and every match is replaced with a placeholder such as [[Email-1]] or [[Name]]. A right-click item, “Redact this field”, does the same on any site.
Rules run in a fixed order:
- Literal rules first: find this exact text, replace it with a label.
- Regex rules next, on the output of step 1. Each distinct match gets a numbered placeholder, and the same string gets the same number wherever it recurs.
The bundled rules cover email addresses, phone numbers, card numbers, IP and MAC addresses, IBANs, private keys, JWTs, and API keys and tokens for the common providers. You can add your own, reorder them by drag and drop, and move a whole rule set in and out as a TSV file that opens in Excel.
What it does not do
- It makes no network requests. There is no telemetry, no account and no remote configuration.
- Rules and settings stay in the browser’s local storage.
- It reads a field only when you press the button or choose the menu item. It does not watch keystrokes, and it ignores password fields.
What did not work
Broad patterns mangle ordinary text. A 16 digit order number looks like a card number, so the card rule now checks the Luhn checksum that payment cards use and leaves anything that fails it alone. That clears most order numbers, not all: about one random 16 digit number in ten still passes. The widest patterns (nine digit numbers, uppercase codes, URLs) ship switched off for the same reason.
Status
Release candidate, version 1.4.0 in the code. It is not yet on addons.mozilla.org, so today it installs from source: the build steps are in the README.

