LibreOffice Command Line: Convert Multiple Files XLS to ODS

XLS is a Microsoft Office proprietary binary document format, along with DOC and PPT. With a command line below, we can convert multiple XLS files into ODS files. This conversion can be considered as Excel to Calc documents conversion. Here, we use XLS files from some freely available internet sources (we don't create the XLS files).
soffice --headless --convert-to ods *.xls
Important note: close any running LibreOffice window before running this command, otherwise it won't work.

And the result is like this (left = XLS, right = ODS):

And our sources of the XLS files are these:


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

We use cookies to give you the best online experience. By agreeing you accept the use of cookies in accordance with our cookie policy.