Find and replace in a CSV

Opening a 50,000-row file in Excel for one replacement is slow and risky. Here you see how many cells would change, and in which columns, before you download.

Drop your file here

or

CSV, TSV, TXT, JSON, XLSX, XLS · up to 200 MB

Processed locally in your browser: no data is uploaded.

No file at hand? Try a broken sample file:

What changes in your file

Four real examples. Red is how it is now, green is how you download it.

  • Broken accents

    CittàCittà
  • Leading zero dropped by Excel

    804482905589808044829055898
  • US date format

    03/15/202415/03/2024
  • Decimal separator

    1.234,561234.56

CSVMend works out what needs fixing on its own: load a file and you get the list, with the number of cells it corrected.

The replacement can be literal or a regular expression, applied to every column or to a single one: that way you fix a phone prefix without touching product codes that contain the same digits. In regex mode you can reuse part of what you matched with $1 and $2 — turning 12,50 into 12.50 with (\d+),(\d+) → $1.$2, for instance. A half-written rule breaks nothing: it is flagged and ignored until you finish it, and everything else keeps working.

How to clean a CSV file in 3 steps

  1. 1

    Load the file

    Drop a CSV, TSV or Excel file. Encoding and delimiter are detected automatically.

  2. 2

    Check the preview

    Toggle rules on and off and see exactly what changes, cell by cell, in real time.

  3. 3

    Download the result

    Export to CSV (UTF-8, with or without BOM) or Excel .xlsx with code columns stored as text.

What CSVMend fixes

Corrupted accents and symbols

Detects UTF-8, Windows-1252 and ISO-8859-1 and fixes sequences like é, è, €.

Leading zeros

Protects ZIP codes, EANs, VAT numbers, bank codes and phone numbers, and restores zeros Excel already removed.

Delimiters and formats

Converts between comma, semicolon, tab and pipe; normalises dates and decimal separators.

Messy spaces and rows

Removes extra spaces, line breaks in cells, invisible characters, empty and duplicate rows.

Total privacy: your data stays on your computer

CSVMend is a 100% client-side application. Your file is read and processed in your browser’s memory with JavaScript: there is no server receiving it, it is never stored in a database and never shared with third parties. You can even go offline after loading the page and the tool keeps working. Ideal for price lists, customer records and bank statements covered by GDPR.

Frequently asked questions

Do I need to know regular expressions?

No. Without the “Regular expression” tick the search is literal: what you type is what gets searched, dots and brackets included. Regex only matters when the text to find changes from row to row.

What do $1 and $2 do in the replacement?

In regex mode they bring back the parts you wrapped in brackets in your search. With (\d+),(\d+) → $1.$2 every 12,50 becomes 12.50. Outside regex mode, $ is just another character.

Can I limit the replacement to one column?

Yes, every rule has its own dropdown: all columns, or a single one. That is how you fix a prefix in the phone column without touching product codes containing the same digits.

What happens if I write a broken expression?

The rule is flagged in red and skipped: the preview stays valid and the other fixes keep working. Nothing locks up while you are still typing.

Is my file uploaded to a server?

No. All processing happens in your browser. The file never leaves your device and no data is stored.

Is CSVMend free?

Yes, it is free and needs no sign-up. The service is supported by non-intrusive ads.