Reading & writing workbooks

File formats & conversion

.xlsx, .xlsm, .xls, .xlsb, .ods, CSV, JSON and Parquet — reading each and converting between them.

A table of Excel file formats and the Python engine that reads each: openpyxl for xlsx and xlsm, xlrd for legacy xls, pyxlsb or calamine for xlsb, odfpy for ods.A table of Excel file formats and the Python engine that reads each: openpyxl for xlsx and xlsm, xlrd for legacy xls, pyxlsb or calamine for xlsb, odfpy for ods.the extension picks the engineABC1FormatEngineNotes2.xlsxopenpyxlthe default3.xlsmopenpyxlkeep_vba=True4.xlsxlrdlegacy binary5.xlsbcalaminebinary6.odsodfLibreOffice

Start with the full guides

The long-form treatment of file formats & conversion, with the reasoning the shorter pages assume.

Step-by-step how-tos

One task each, with code you can copy, run and adapt.

Compare the options

Which tool or approach to pick, and why.

When it breaks

The errors this topic produces, with the cause explained rather than just the fix.

Follow it through a track

Prefer an ordered route? These tracks cover file formats & conversion along the way, in the order that builds on itself.

Related topics

Subjects that keep turning up on the same pages as this one, most overlap first.

File formats & conversion is part of Reading & writing workbooks.