Fix Garbled CSV Text and Lost Leading Zeros

Check UTF-8 imports and spreadsheet auto-formatting before publishing a CSV.

Reviewed 2026-11-15 · ToolMarket

When text looks garbled

CSV stores text rows but applications can disagree about character encoding. ToolMarket’s CSV output includes a UTF-8 BOM.

If Excel still displays incorrect characters, use its data import flow and explicitly choose UTF-8.

Protect codes and dates

A spreadsheet may turn 00123 into 123 when it guesses a numeric column. Import postal codes and identifiers as text.

For a CSV headed code,name with a row 00123,Alex, set the code column to Text during import. Check both the first and last data rows after conversion to catch missing rows too.

Excel-to-CSV conversion reads the selected worksheet. Inspect sample rows, long numbers, dates, and leading zeros after conversion.

Why encoding problems happen

A CSV file is plain text with no built-in label saying which character encoding it uses. When a program guesses wrong, accented letters and non-Latin scripts turn into strings of odd symbols.

Saving as UTF-8 and using an import wizard that lets you choose the encoding avoids most issues. If a file has already been saved in the wrong encoding and the characters were replaced, re-exporting it will not restore them; go back to the source data.

Values spreadsheets like to change

Besides leading zeros, watch for long numbers such as card-like IDs turning into scientific notation, part codes like 1-2 becoming dates, and very long numbers losing digits beyond 15 significant figures. Importing those columns as Text prevents the conversion.

Try the related tools

Related guides