Programster's Blog

Tutorials focusing on Linux, programming, and open-source

Linux - Convert Excel (XLSX) File To CSV

Today I received a 3.9 MiB Excel file with over 120,000 rows and I needed to convert it to a plain CSV file quickly so I could easily work with it programmatically. Unfortunately, trying to do this with a LibreCalc operation was taking forever, and I found this alternative that does the job in just a few seconds.

Steps

Install gnumeric if you haven't got it already:

sudo apt install gnumeric

Run the following command:

ssconvert input.xlsx output.csv

References

Last updated: 21st August 2021
First published: 2nd June 2021