xlsx2html
A simple export from xlsx format to html tables with keep cell formatting
Decision gist · record as of 2026-08-14
Yes, if you need straightforward xlsx-to-HTML conversion with basic formatting preservation. Low install friction, active maintenance, MIT license, and no vulnerabilities make it safe. Best suited for simple export tasks; verify first whether its formatting support (colors, fonts, merged cells) meets your specific needs before relying on it for complex spreadsheets.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction: pure Python wheel with four common dependencies (six, openpyxl, babel, packaging).
- Last release 172 days ago with active repository maintenance and 71 GitHub stars.
License · maintenance · safety
MIT (permissive) — MIT license permits commercial and private use with minimal restrictions—include a copy of the license and you're clear.
last release 2026-02-23 (172 days) · last repo commit 2026-02-23 · 71 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 194,139 downloads/mo, #9,845 on PyPI
Alternatives
Verify before relying
pip install xlsx2html
from xlsx2html import xlsx2html
# Convert to stream
out_stream = xlsx2html('path/to/example.xlsx')
out_stream.seek(0)
html_output = out_stream.read()
# Or write directly to file
xlsx2html('path/to/example.xlsx', 'path/to/output.html')- Whether cell formatting preservation includes colors, fonts, borders, or only basic alignment and number formats.
- Performance characteristics when processing large spreadsheets (row/column limits, memory usage).
- Support for merged cells, formulas, or other advanced Excel features.
- Locale parameter behavior and which locales are supported beyond 'en'.
What it is and what it does
xlsx2html is a lightweight Python converter that reads Excel workbooks and outputs them as HTML tables. It wraps openpyxl for reading .xlsx files and uses babel for locale-aware formatting of numbers and dates. The package is designed for straightforward export scenarios where you need to turn spreadsheet data into web-viewable HTML while maintaining basic cell formatting.
The library supports multiple input/output modes: reading from file paths, working with file-like objects in memory, or running as a command-line tool. It's in Alpha status and actively maintained, supporting Python 3.6 through 3.14 and PyPy. With no known vulnerabilities and permissive MIT licensing, it's a low-risk choice for simple xlsx-to-html pipelines.
Use it for
- Export financial reports or data tables from Excel to embed in web dashboards or email templates.
- Batch convert spreadsheet archives to HTML for archival or documentation purposes.
- Generate HTML previews of uploaded Excel files in web applications without server-side rendering.
- Automate spreadsheet-to-web workflows where cell formatting (alignment, number display) matters.
- Convert locale-specific spreadsheets (e.g., European number formats) to correctly formatted HTML tables.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need straightforward xlsx-to-HTML conversion with basic formatting preservation.
Low install friction, active maintenance, MIT license, and no vulnerabilities make it safe. Best suited for simple export tasks; verify first whether its formatting support (colors, fonts, merged cells) meets your specific needs before relying on it for complex spreadsheets.
Install
xlsx2html on PyPI
Before you install
Low friction: pure Python wheel with four common dependencies (six, openpyxl, babel, packaging). Last release 172 days ago with active repository maintenance and 71 GitHub stars.
License in practice
MIT license permits commercial and private use with minimal restrictions—include a copy of the license and you're clear.
Quickstart
pip install xlsx2html
from xlsx2html import xlsx2html
# Convert to stream
out_stream = xlsx2html('path/to/example.xlsx')
out_stream.seek(0)
html_output = out_stream.read()
# Or write directly to file
xlsx2html('path/to/example.xlsx', 'path/to/output.html')
Verify before relying
- Whether cell formatting preservation includes colors, fonts, borders, or only basic alignment and number formats.
- Performance characteristics when processing large spreadsheets (row/column limits, memory usage).
- Support for merged cells, formulas, or other advanced Excel features.
- Locale parameter behavior and which locales are supported beyond 'en'.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release <4,>=3.6 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 4 packagessixopenpyxlbabelpackaging |
| Maintenance | Actively maintained 172 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 194,139 / month, #9,845 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 3 - AlphaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: Implementation :: PyPyTopic :: Text ProcessingTopic :: Text Processing :: Markup :: HTML |
Evidence: xlsx2html-0.6.4-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “xlsx to html converter”
- xlsx2htmlConverts Excel spreadsheets (.xlsx files) to HTML tables while…
- xls2xlsxConverts legacy Excel files (.xls), HTML tables, and single-file web…
- xlsx2csvConverts XLSX spreadsheet files to CSV format, handling large files…
Give your agent the search over MCP, or paste the wish link into any chat.
More Text Processing packages
A drop-in replacement for Python's standard `re` module that adds advanced regex features like nested sets, fuzzy matching, lookaround in conditionals, and full Unicode case-folding while maintaining backward compatibility.
pyparsing provides a library for building text parsers directly in Python code using composable grammar classes, handling quoted strings, whitespace variation, and embedded comments without regex or lex/yacc.
Install it if you need to parse text or define grammars programmatically.
fonttools manipulates font files in multiple formats (TrueType, OpenType, AFM, Type 1, Mac-specific) and includes TTX, a tool to convert fonts to and from XML text format.
Install it if you need to read, write, or manipulate fonts programmatically or via the TTX command-line tool.
Docutils converts plaintext documentation in reStructuredText format into multiple output formats including HTML, XML, and LaTeX using a modular processing system.
RapidFuzz provides fast fuzzy string matching using Levenshtein Distance and related metrics, implemented mostly in C++ with Python bindings for rapid similarity scoring and approximate string matching.
Install it if you need fuzzy string matching; it's a solid replacement for FuzzyWuzzy with better licensing and performance.
tinycss2 parses CSS strings into token and block objects, and generates CSS strings from those objects, following the CSS Syntax Level 3 specification without enforcing specific properties or values.
Install it if your project requires CSS tokenization or syntax manipulation.
See also drf-excel · xls2xlsx · xlsx2csv · tableschema-to-template · aspose-cells · aspose-cells-python · ssf · xlsxwriter · agate-excel · html-to-json