xlsx2csv
xlsx to csv converter
What it is and what it does
xlsx2csv is a lightweight command-line tool and Python library that converts Microsoft Excel XLSX files to comma-separated values (CSV) format. It parses the underlying XML structure of XLSX files using an Expat SAX parser, supporting both single-sheet and multi-sheet conversion with options to filter sheets by name or pattern, customize delimiters and line terminators, override date and float formatting, and preserve hyperlinks.
You can use it as a standalone script from the command line, process entire directories of XLSX files in batch, or import it as a Python module within your own code. It requires no external dependencies beyond the Python standard library, making deployment straightforward across many Python versions.
Use it for:
- Batch convert a directory of XLSX files to CSV for data pipeline ingestion or legacy system compatibility.
- Extract specific sheets from multi-sheet workbooks while filtering by name patterns to automate report generation.
- Programmatically convert XLSX data to CSV within Python scripts for ETL workflows or data cleaning tasks.
- Customize CSV output encoding, delimiters, and date formats to match downstream system requirements.
- Convert XLSX files from STDIN or write CSV output to STDOUT for integration into shell pipelines.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Converts XLSX spreadsheet files to CSV format, handling large files efficiently through command-line or Python API.
Yes. xlsx2csv is a stable, dependency-free tool with active maintenance, no known vulnerabilities, and permissive licensing. Install it if you need reliable XLSX-to-CSV conversion in batch workflows or Python code. The low install friction and broad Python version support make it a practical choice for straightforward conversion tasks.
Install
xlsx2csv on PyPI
pip
pip install xlsx2csvuv
uv add xlsx2csvpoetry
poetry add xlsx2csvInstalling xlsx2csv
Before you install
Low friction install with no runtime dependencies. Actively maintained; last commit 2026-07-21 with 1774 repository stars.
License in practice
MIT license (permissive) places no restrictions on use, modification, or distribution.
Quickstart
pip install xlsx2csv
from xlsx2csv import Xlsx2csv
with Xlsx2csv("myfile.xlsx", outputencoding="utf-8") as xlsx2csv:
xlsx2csv.convert("myfile.csv")
Verify before relying
- Whether streaming XML parsing actually prevents loading entire files into memory for very large XLSX files.
Package facts
| License | not declared (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 196 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,557,117/month — #3,767 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: xlsx2csv-0.8.6-py3-none-any.whl
Tags
More Utilities packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
charset-normalizerDetects and normalizes text encoding from…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
PygmentsPygments is a syntax highlighter that colorizes…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
xlsx2htmlConverts Excel spreadsheets (.xlsx files) to…
permissive · top 15,000 on PyPI
aspose-cellsAspose.Cells for Python via Java is a library…
unclear · top 15,000 on PyPI
xlrd3Reads data from Excel spreadsheet files (.xls…
permissive · top 15,000 on PyPI
spire-xlsSpire.XLS is a compiled Python library for…
unclear · top 15,000 on PyPI
django-import-exportHandles import and export of data to and from…
permissive · top 5,000 on PyPI
aspose-cells-pythonAspose.Cells for Python via .NET creates,…
unclear · top 15,000 on PyPI
gsheetsgsheets provides a Python wrapper around the…
permissive · top 15,000 on PyPI
csvsortSorts large CSV files on disk using a…
copyleft · top 15,000 on PyPI
pyulogParses ULog files (a self-describing logging…
permissive · top 15,000 on PyPI
DataRecorderDataRecorder provides buffered writing tools…
permissive · top 15,000 on PyPI