CSV Anonymizer
: Replace names, emails, phone numbers and card numbers in a CSV with realistic fakes, header and layout keptCSV Anonymizer
Turn a real customer or transaction export into a safe sample for testing, a demo or a vendor: every cell is replaced with a random value of the kind its column holds (names, emails, phone numbers, dates, card numbers, amounts), while the header row, delimiter, quoting and line endings stay as they were. It runs in your browser, so the file never leaves your device.
How to anonymize a CSV file
- Paste the data into
CSV, pressOpen file, or drop a .csv or .tsv file on the page.Exampleloads a sample customer list. - In
Quickmode there is nothing to set: the delimiter and header row are detected and every cell below the header is replaced as you type. The info line says how many values of each kind changed. - Switch to
Customto chooseReplace with(realistic values, the same shape, or asterisks), set theFirst rowandDelimiteryourself, and list columns toKeep unchangedorChange only, such ascustomer_id, status. - Press
New valuesfor another set of fakes, or type aSeedin Custom mode to get the same output every time. - Press
CopyorDownloadto save the anonymized CSV.
Example
Two customers in Quick mode (seed docs). The header and quoting stay; the repeated email gets the same fake on both rows.
name,email,phone,joined,balance
"O'Connell, Margaret",maggie@gmail.com,+61 412 345 678,2021-03-14,1520.75
Daniel Okafor,maggie@gmail.com,07700 900123,2023-11-02,-42.10name,email,phone,joined,balance
"Tempor laboris",isla.moreau88@example.com,+13 271 299 647,2021-08-25,6047.54
Lena Castillo,isla.moreau88@example.com,07032 326033,2022-12-10,-35.22Details
- Each cell's kind comes from its value first (email, URL, UUID, IP address, date, a Luhn-valid card number, a checksum-valid IBAN, a number) and then from its column header:
first_name,surname,email,phone,city,country,street,company,username,passwordand similar names. - The header row counts as a header when none of its cells is empty, a number, a date or an email and the names differ; set
First rowin Custom mode when the guess is wrong. Without a header, columns are namedcolumn 1,column 2and so on forKeep unchangedandChange only. - The delimiter is the comma, semicolon, tab or pipe used most on the first line outside quotes. Quoted cells stay quoted (with
""for a quote inside), a replacement that would contain the delimiter is quoted, and empty cells stay empty. - Replacements keep the format: a card keeps its first digit, length and spacing and still passes the Luhn check; a date keeps its layout; amounts keep their sign, digit count and decimal places; leading zeros stay.
- Fake emails and URLs use the reserved
example.com,example.organdexample.netdomains, and IP addresses the documentation ranges, so nothing points at a real mailbox or server. - With
Same value → same replacementon (always in Quick mode), a value that repeats gets the same fake on every row, so you can still join or group the file by it.
Limits
- The header row is never changed: rename a column yourself if its name is sensitive.
- Kinds are guessed from values and headers. Short codes such as statuses or currencies are replaced too unless you list their columns in
Keep unchanged. - Fakes are random, not checked against the real world: a generated phone number or name can belong to someone. Row counts, kept columns and rare combinations can still identify a person.
- A quoted cell that is never closed stops the run with its line number. Files over 2 million characters wait for the
Anonymizebutton and run in a background worker.
FAQ
Is my CSV uploaded anywhere?
No. The page rewrites the file in your browser; there is no server step, and the data is not stored.
Will Excel still open the anonymized file?
Yes. The delimiter, quoting, line endings and a byte order mark at the start stay as they were, so it opens the same way the original did.
Can I keep the ID column so rows still line up with other files?
Yes. In Custom mode, type the column name into Keep unchanged, for example customer_id. Or leave it on: with Same value → same replacement, each ID maps to one fake everywhere in the file.
Can I anonymize JSON or XML the same way?
Yes: JSON Anonymizer and XML Anonymizer use the same detection and fake values.
Runs entirely in your browser. Nothing is uploaded.