Software Recommendations Stack Exchange is a question and answer site for people seeking specific software recommendations. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to automatically convert Excel files (.xls, .xlsx) to OpenDocument spreadsheets (.ods)

Is there a PHP library for that?

Or at least a command-line utility that I could call from PHP?

share|improve this question
.odf is for mathematical equations; probably you meant .ods? – Snowball May 26 '14 at 4:59
@Snowball: Yes thanks! Fixed. – Nicolas Raoul May 26 '14 at 5:00
I was going to suggest PHPExcel since I've used that for reading a few spreadsheet types but I just checked and it can't write to OpenDocument only read. – Nick Wilde May 26 '14 at 6:37
up vote 3 down vote accepted

unoconv does this.

exec('unoconv -f ods -o output.ods input.xlsx');
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.