DevTools Logo

Dataset PII Redactor

Dataset PII Redactor

Find and consistently pseudonymize emails, cards, keys and IDs in text or JSONL — entirely offline.

Runs in your browser
Try an example

Input and detectors

2 lines · 125 chars
Detectors

Custom pattern

Scans run locally. Mapping is download-only and never copied to the clipboard by default.

Redacted output

4 finding(s) · 1 invalid skipped
4 replacement(s) across 3 detector(s).
PII findings
LineTypeMasked matchSurrogate
1EMAILan********omEMAIL_1
1PHONE+1********32PHONE_1
2CARD41********1 CARD_1
2EMAILAN********OMEMAIL_1
Ticket 12: write to EMAIL_1 or call PHONE_1.
Card CARD_1was charged. Refund to EMAIL_1.
Surrogate mapping (3)
{
  "EMAIL_1": "ana@example.com",
  "PHONE_1": "+1 415 555 0132",
  "CARD_1": "4111 1111 1111 1111 "
}

Regex detectors have known limits: they do not find every name, and strict mode skips checksum-invalid values. Review the output before sharing a dataset.

Examples

Scrub support tickets

Paste ticket text and watch repeated email addresses become the same EMAIL_1 surrogate while card numbers are Luhn-checked.

Clean a training JSONL

Switch to JSONL, target the text key and download redacted rows with 64-bit IDs and all other fields untouched.

Use a custom pattern

Add an ACCOUNT label with \bACCT-\d{9}\b to redact internal account numbers alongside the built-in detectors.

About this tool

The Dataset PII Redactor scans pasted text or JSONL records with eight toggleable detectors: email, phone, credit card (Luhn), US SSN, IBAN (mod-97 and country lengths), provider-shaped API keys, IPv4 and URLs with credentials. Each accepted match becomes a consistent surrogate such as EMAIL_1 — the same normalized value always maps to the same token across a scan. Strict mode skips checksum-invalid values and reports them; custom regex patterns are validated at add time for syntax and catastrophic backtracking. JSONL mode redacts only the string values of selected keys while preserving numeric fields byte-for-byte, including IDs above 2^53. Findings list masked samples, line numbers and surrogates; the mapping is download-only and never copied automatically, and one-way mode discards it entirely. All detection and replacement happen in your browser tab, with no upload or telemetry.

What this tool does not do

  • Processes only the inputs provided in this session without connecting to external accounts or background servers.
  • Runs entirely in the current browser tab; nothing is synced across devices or backed up to a server.

How to use this tool

  1. Paste text or JSONL rows

    Provide raw logs, transcripts, or fine-tuning JSONL lines locally.

  2. Select PII detectors and style

    Toggle email, phone, card, IBAN, IP, SSN, or key rules and choose numbered pseudonyms.

  3. Export scrubbed output and map

    Download redacted data and optionally save the local reversal mapping JSON.

Use cases

Scrub support tickets

Paste ticket text and watch repeated email addresses become the same EMAIL_1 surrogate while card numbers are Luhn-checked.

Clean a training JSONL

Switch to JSONL, target the text key and download redacted rows with 64-bit IDs and all other fields untouched.

Use a custom pattern

Add an ACCOUNT label with \bACCT-\d{9}\b to redact internal account numbers alongside the built-in detectors.

Common mistakes

Mistake:Why use consistent pseudonyms like [EMAIL_1] instead of [REDACTED]?

Fix:Numbered placeholders preserve multi-turn coreference in LLM fine-tuning and evaluation datasets—so the model still sees when two messages refer to the same user address.

Mistake:Can I reverse redaction on model outputs later?

Fix:Yes, if you download the optional JSON mapping table before closing the tab. Because nothing is stored on a server, losing that local file makes redaction irreversible.

Frequently asked questions

Which PII patterns are detected offline?

Emails, phone numbers, Luhn-checked payment cards, IBANs, IPv4/IPv6 addresses, SSN-shaped IDs, URLs, and common API secret prefixes are matched with deterministic regex and checksum validators.

Why use consistent pseudonyms like [EMAIL_1] instead of [REDACTED]?

Numbered placeholders preserve multi-turn coreference in LLM fine-tuning and evaluation datasets—so the model still sees when two messages refer to the same user address.

Can I reverse redaction on model outputs later?

Yes, if you download the optional JSON mapping table before closing the tab. Because nothing is stored on a server, losing that local file makes redaction irreversible.

Does pattern redaction catch unstructured human names or context clues?

Regex and checksum rules catch structured identifiers reliably but cannot guarantee 100% removal of free-form personal names or indirect biographical details—always review sensitive exports manually.