Skip to content
TaskBionics

How to fix "line contains NUL / line contains NULL byte" in Excel, Google Sheets, databases

_csv.Error: line contains NUL / line contains NULL byte

What this error means

The file contains zero bytes, which CSV readers reject.

Why it happens

  • Exported as UTF-16 by Excel or another tool
  • Storage or transfer damage

How to fix it

  1. Re-export as "CSV UTF-8" if you can
  2. Upload it here to remove the NULL bytes and convert to UTF-8

About CSV file files

CSV is plain text: one row per line, values separated by commas. Most CSV "errors" are encoding problems (accents turning into garbage), stray NULL bytes, or rows with the wrong number of columns.

Other CSV errors