CSV import cleaner

Prepare a CSV, TSV, TXT or Excel worksheet for import. Check how the columns and characters are read, then download a UTF-8 CSV with or without a BOM.

Drop a CSV, TSV, TXT or XLSX file here

Files are processed in this browser. Maximum file size is 8 MiB.

How to use this tool

CSV import cleaner

Open the original file and check the preview. For XLSX, choose the worksheet to export. If 上海 looks garbled when an old GBK file is read as UTF-8, try GB18030 and check the preview. Try the sample to see how a value like 00123 and a line break in an address are preserved.

When a database maps fields by the header row, some importers read a UTF-8 BOM as an invisible character before id. Leave the BOM off for that import, or enable it for Excel. On export, a cell containing Paris, France becomes "Paris, France". Cells with line breaks are also quoted, and each double quote inside a cell is doubled.