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

This blog is created by Stuart Page

I'm a freelance web developer and technology consultant based in Surrey, UK, with over 10 years experience in web development, DevOps, Linux Administration, and IT solutions.

Need support with your infrastructure or web services?

Get in touch