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?

  • .odf is for mathematical equations; probably you meant .ods?
    – Snowball
    May 26, 2014 at 4:59
  • @Snowball: Yes thanks! Fixed.
    – Nicolas Raoul
    May 26, 2014 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. May 26, 2014 at 6:37

1 Answer 1


unoconv does this.

exec('unoconv -f ods -o output.ods input.xlsx');

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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