skillfed

xlsx2csv

xlsx to csv converter

xlsx2csv v0.8.6 1.6M downloads/30d#3,767 on PyPI1,774
Permissive license Active released

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 xlsx2csv

uv

uv add xlsx2csv

poetry

poetry add xlsx2csv

Installing 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

Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersIntended Audience :: End Users/DesktopLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.4Programming Language :: Python :: 2.5Programming Language :: Python :: 2.6Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.0Programming Language :: Python :: 3.1Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.2Programming Language :: Python :: 3.3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Office/BusinessTopic :: Utilities

Tags

xlsx to csv converterexcel to csv conversionbatch convert spreadsheetsexport xlsx as csvlarge xlsx file conversion
spreadsheet-conversioncli-tooldata-pipeline

More Utilities packages