Fix broken accents in CSV files (UTF-8)

Seeing “é” instead of “é” or “€” instead of “€”? CSVMend detects the real encoding, repairs corrupted characters and exports UTF-8 with BOM for Excel.

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.

Weird characters in CSV files (mojibake) appear when a UTF-8 file is read as Windows-1252 or vice versa. CSVMend inspects the file bytes, picks the right encoding and rebuilds accented letters. The “UTF-8 with BOM” export makes Excel open the file with correct accents straight away.

Two faults that look alike and need different cures

In the first case the file is written correctly and you are simply reading it wrong: the bytes say “è”, the program interprets them with the wrong encoding and “è” appears on screen. There is nothing to repair here — reopen the file declaring the right encoding and the accents come back on their own.

In the second case somebody made that wrong reading and then saved the file again. At that point “è” is no longer a display problem: it is written inside the file, two real characters where there was one. That is the case people search for, and the only one that needs a tool.

To find out which one you have, open the file in a plain text editor — Notepad, TextEdit — rather than Excel. If the accents look right, the fault was only in the reading. If you see “è” there too, the damage is in the bytes.

Why “just save it as UTF-8” is not enough

It is the advice you find everywhere, and for the first case it is the right one. On the second it does nothing, for a reason that sounds like a technicality and is actually the heart of it: the file is already UTF-8. It became UTF-8 when it was saved again. It just encodes the wrong characters.

For the same reason iconv does not help either. Converting from Windows-1252 to UTF-8 assumes the file is in Windows-1252, and it is not: the command either refuses the job or lays a second round of corruption on top of the first.

How the damage is undone

The path that broke the text is known, so it can be walked backwards: the wrong characters are written out again with the encoding that produced them and read back as UTF-8. “perché” returns to “perché”, “costo 10⬔ to “costo 10€”, “lâordine” to “l’ordine” — and that last one matters more than it looks, because the typographic apostrophe is everywhere in product descriptions.

It also works when the round trip happened twice. “perché” is already-broken text that was reopened wrong and saved again: CSVMend still brings it back to “perché”. Text that was already correct is left alone, because the sequences to repair simply are not there.

Where the repair stops

One case cannot be recovered, and it is worth knowing. A broken “à” becomes “Ô followed by a non-breaking space, an invisible character different from an ordinary space. If something along the way turned that special space into a plain one — which happens easily when pasting between programs — then “à ” could be a ruined “à” or a legitimate “Ô followed by a space.

In that case CSVMend leaves the text as it is rather than guessing. You will see it mostly on words like “città”, “già”, “sarà”: if some “Ô survived the cleaning, this is why, and a targeted replacement in the find-and-replace panel fixes it.

How to stop it happening again

When the file is headed for Excel, export it as UTF-8 with BOM: those three leading bytes tell Excel which encoding to use, and the accents are right on a double click. When the file goes into a back office, a database or a script, export it without the BOM, because there the three bytes would end up inside the first header.

If you get to choose the format, the problem disappears at the source: an .xlsx keeps text in Unicode and has no encoding to guess.

Convert your CSV to Excel (.xlsx) →

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

Why do I see é instead of é?

It is mojibake: the file is UTF-8 but is being read as Windows-1252, or the other way round. Each accented letter, two bytes in UTF-8, shows up as two separate characters. CSVMend recognises those sequences and rebuilds the original letter.

What is the BOM and when do I need it?

The BOM is a three-byte signature at the start of the file saying “this is UTF-8”. Without it Excel opens the CSV with the system encoding and breaks accents; with it they display correctly. If the file is headed for a database or a script, export it without the BOM instead.

Which encodings are detected?

UTF-8, UTF-16, Windows-1252 and ISO-8859-1, detected by inspecting the file bytes. If detection gets it wrong you can force the encoding by hand in the file panel and re-read the document immediately.

Can I repair a file another program already corrupted?

Yes, and that is the common case. The repair works on the text as it is now: you do not need the original file, as long as the damage is the usual encoding-conversion kind.

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.