happytails.ai

CSV encoding repair

Compare raw CSV bytes under several character encodings and explicitly confirm a UTF-8 export after reviewing the text.

No files selected

Accepted files: .csv,.tsv,.txt,text/csv,text/plain. Choose one file. Up to 1 MB in total.

Your result

How to use CSV encoding repair
  1. Choose a raw CSV file and run Compare only.
  2. Review each candidate preview, replacement count, malformed-byte flag and mojibake warnings.
  3. Select the source encoding, confirm your choice and optionally add a UTF-8 BOM before exporting.

Report a problem or share an idea.

Useful next steps

A preview is not an encoding diagnosis

UTF-8, Windows-1252, UTF-16LE, UTF-16BE and Shift_JIS candidates appear in a fixed order. Counts and BOM information are clues, not a confidence ranking. ASCII and many legacy files are ambiguous. No encoding is selected silently and no mojibake text is automatically rewritten.

Understand conversion and possible loss

The output reparses CSV and writes quoted comma-separated UTF-8 with CRLF records. Parsed cell strings and quoted multiline content are retained before optional formula protection, while original quoting, delimiters and byte layout change. Malformed bytes or U+FFFD replacement characters require a separate explicit possible-loss permission. Previously lost text cannot be reconstructed.

Local processing and exact strings

Processing runs on your device. CSV downloads quote every cell and protect spreadsheet formula prefixes by default, which changes affected strings. Preserve original cells is for trusted machine processing. Import identifiers as text in spreadsheet applications to preserve leading zeros.