How to fix corrupted CSV files in Windows 10

Milan Stanojevic
by Milan Stanojevic
Deputy Editor
0 Comments
Download PDF
Affiliate Disclosure

  • CSV files can get corrupted and become unusable for many reasons.
  • Below, you'll find a list of solutions to restore such a file, depending on what caused the problem.
  • For other tutorials on almost everything software-related, see the Troubleshooting page.
  • Similar guides can be found in our Office 365 collection of articles, so take a look.
How to fix corrupted CSV files in Windows 10

A CSV file, otherwise known as a comma-separated values file is a format that stores alphanumeric tabular structure data but in plain text format.

Such files have data records, each of which is a collection of at least two (or more) fields separated by commas. These can be imported or exported from software programs such as Excel or Open Office Calc, which store data in row-column structure.

Among the causes of a corrupted CSV file are:

  • ASCII control characters at the end of line that cannot be printed
  • Separator characters in the text of the CSV files
  • Line breaks in the fields that have no double quotes enclosing them
  • Using invalid characters such as -, (), .,:, * and others
  • Blank lines at the end of the corrupted CSV file that have a separator
  • Long numbers that have leading zeros
  • An invalid CSV file format
  • CSV file not using UTS (8 encoding)

To fix a corrupted CSV file, we’ve listed below some solutions to help you recover your document back in a usable format.


Quick Tip:

Before jumping to solutions, we might as well suggest that you use a third-party recovery tool that will do the job for you. It might be less time consuming, especially if you’re less of a tech geek.

On this note, Stellar Data Recovery is an excellent option. In order to discover more about this tool, just check out our awesome Stellar Data Recovery review.

That’s your chance to recover for free up to 1 GB of lost or deleted documents, email data files, videos, photos, including data from a corrupt or malware-infected drive.

You can use it for both your Windows 10 PC or an external hard drive and it is compatible with hundreds of file formats, csv. included.

Stellar Data Recovery

Stellar Data Recovery

Restore your corrupted CSV files to their original form in just a few steps, using this simple and efficient tool.
Free trial Visit website

How can I recover corrupted CSV files?

  1. Use another software to open the CSV file or Import and repair in Excel
  2. Use Unicode UTF-8 encoding
  3. Specific solutions
  4. Use Notepad or Excel to create a CSV file and repair it
  5. Recover using Autorecover feature
  6. Recover using TMP file
  7. Recover the corrupted CSV file from a previous version

1. Use another software to open the CSV file or Import and repair in Excel

  1. Open Excel – new workbook.
  2. Click Data tab.
  3. Select From Text under the Get External Data section.get external data excel
  4. Browse the corrupted CSV file.
  5. Click Import.
  6. Choose Delimiter and Next.
  7. Select Comma and click Next.
  8. Click the column with the numbers and click Text.
  9. Repeat the steps for all the columns with numbers and click OK.

Note: Do the above each time the file is opened in Excel.

Use FileViewer Plus 3

how can i open any document format

If you need to open .csv files (or other Spreadsheet files) on Windows 10 and you can’t do this, you can always use third-party solutions.

We recommend FileViewer Plus 3, a universal file viewer for Windows that can open over 300 different file types, CSV included. Other file types are documents, photos, videos, archives, or source code files.

Not only you view the desired documents, but you can also edit, convert to other formats or print them.

File Viewer Plus 3

File Viewer Plus 3

Use this universal tool to open a corrupt CSV file and retrieve your important data from it before it's too late.
Free trial Visit website

2. Use Unicode UTF-8 encoding

Use Unicode UTF-8 encoding

  1. Open the CSV file.
  2. Click File, then Save As.
  3. Enter the file name.
  4. Select Save as File Type CSV from the drop-down menu.
  5. Click Tools and go to Web options.
  6. Go to Encoding under Save this document as.
  7. Select Unicode (UTF-8)

Excel won’t open files and is showing only a white screen? Use our 6 solutions to fix this


3. Specific solutions

csv corrupt because of because of using ASCII control

Foreign characters corrupted or missing: use Google sheets, or Open Office, Libre Office, Notepad++ advance apps to repair the corrupted CSV file.

Error message Line 1 has too many columns…: create a new CSV file with data in 14 columns using Excel, Notepad++ or other apps to recover the CSV data.

Corrupt CSV because of ASCII control, special or extra delimiter characters:

  1. Delete the spaces at the end of the file
  2. Fix the extra commas from the corrupted CSV file by deleting extra delimiter characters that separate the handler fields and retrieve the file data

4. Use Notepad or Excel to create a CSV file and repair it

Use Notepad or Excel to create a CSV file and repair it

Using Notepad

  1. Enter the text data in a file with each of the fields separated by a comma.
  2. Separate each row using a new line.
  3. Save the file using a .csv extension.

Use Excel Spreadsheet

  1. Enter the data in an Excel spreadsheet.
  2. Click File.
  3. Select Save As.
  4. Choose Save as Type.
  5. Select CSV (comma delimited).

5. Recover using Autorecover feature

Recover using Autorecover feature

This feature can be found on Excel. Open a spreadsheet and look for the Autorecover window (usually on the left pane of the window). The screen has a list from where you can select the CSV file. It works with unsaved files.


Looking for more tools to repair corrupted files on Windows 10? See our recommendations


6. Recover using TMP file

  1. Go to where the Temp file folder is located: C:\Users\AppData\Loca\lMicrosoft\Office\UnsavedFilesmicrosoft office unsaved files
  2. Search the Excel files with .TMP extension.
  3. Select the right one by verifying the data.
  4. Copy and paste or save it to a different destination using .CSV extension.

7. Recover the corrupted CSV file from a previous version

Recover the corrupted CSV file from a previous version

  1. Go to the corrupted CSV file and right-click on it.
  2. Select Properties.
  3. Click Previous Versions.
  4. Select the last version before saving/replacing.
  5. Click Restore (ensure restore points are enabled).

So, were you able to find a solution among the ones listed here?

Let us know which one worked for you by leaving a comment in the section below.

Editor’s Note: This post was originally published in August 2018 and was completely revamped and updated in August 2020 for freshness, accuracy, and comprehensiveness.

Was this page helpful?
Thanks for letting us know! You can also help us by leaving a review on MyWOT or Trustpillot.
Get the most from your tech with our daily tips
Tell us why!