How to anonymize a CSV file before sharing
- Paste your CSV or open a file. The tool stays entirely in your browser and never uploads your data.
- Review the Per-column masking rules card list. Likely PII columns (emails, names, phone numbers, IDs, notes) are pre-selected automatically.
- Adjust any column's rule—for example, switch
user_idto Hash token so repeat orders from the same customer still share the same anonymized ID. - Inspect the highlighted cells in the Anonymized preview, then copy or download the sanitized CSV.
Masking modes compared
| Masking mode | Example input | Example output | Preserves uniqueness / joins? |
|---|---|---|---|
| Mask email | morgan.lee@example.com | m***e@example.com | Keeps email domain visible |
| Pseudonym | Morgan Lee | Person 1 | Yes (within the file) |
| Keep last 4 | +1 (415) 555-0142 | ••••0142 | Partial (last 4 digits) |
| Hash token | usr_900142 | tok_4b81f90c2e1a | Yes (across files with same salt) |
| Redact | VIP call on Friday | [REDACTED] | No (replaces all non-empty cells) |
Limitations
- Hash tokens use a fast deterministic 64-bit salted FNV-1a digest designed for dataset pseudonymization and join preservation, not password storage.
- Free-text comment columns can contain embedded names or phone numbers; use Redact ([REDACTED]) for free-text notes when sharing externally.
Frequently asked questions
Why anonymize CSV files in the browser instead of uploading to a cloud tool?
If a CSV contains customer names, emails, phone numbers or account IDs, uploading the raw file to a third-party server to anonymize it defeats the purpose of data privacy. Here, every masking rule runs inside a Web Worker on your own computer before any file is saved or shared.
How do deterministic hash tokens and pseudonyms preserve joins?
Both "Hash token (tok_…)" and "Pseudonym (Person 1, 2…)" map identical input values to the same output value. If customer_id 00142 appears on 15 order rows, every one of those rows gets the same token (so you can still group by customer or count distinct users) without exposing the real ID.
What is the secret salt used for?
If you hash predictable values like sequential IDs ("1", "2", "3") or phone numbers without a salt, someone could hash all possible phone numbers and match them back. Changing the secret salt produces a different set of tokens that only match other files anonymized with the same salt.
How does automatic PII column detection work?
When you load a CSV, the tool inspects column headers (such as email, phone, full_name, user_id, ssn, address) and sample cell patterns to suggest a sensible default masking mode for each column. You can override any column in one click.
Can I still keep analytics columns like revenue, date and country untouched?
Yes. Any column set to "Keep as-is" is copied through unchanged so your charts, sums and cohort formulas continue to work on the sanitized dataset.
Last updated .