A team wants a repeatable workbook of Contact Form 7 inquiries, with a definitions sheet, readable columns and a summary for the weekly review. The missing component may be a library that writes XLSX files, rather than another spreadsheet application. ExcelJS, SheetJS, openpyxl, XlsxWriter and PhpSpreadsheet serve that programming task in different runtimes.

This comparison concerns custom report generation from an authorized data source. None of these libraries is presented as a native CF7 connector, and their presence does not establish that a particular form plugin exports the fields you need. We reviewed official documentation and licenses on November 1, 2026; we did not run comparative performance benchmarks.
Decide what the report generator must preserve
Start with three questions: which runtime your team maintains, whether the job creates a new workbook or modifies a template, and which workbook features recipients actually need. A plain review table and a highly formatted template have different acceptance requirements.
Write a data contract before choosing a writer. Reference numbers and phone numbers usually need text semantics; genuine amounts need explicit numeric treatment; timestamps need a stated timezone. Visitor-entered strings must remain data rather than formulas. A familiar-looking workbook can still be wrong if types or row coverage changed.
| Library | Runtime and useful fit | Boundary to review | Core license |
|---|---|---|---|
| ExcelJS | JavaScript workbook creation and styling | Streaming commits restrict later edits | MIT |
| SheetJS | JavaScript data interchange across formats | Community Edition and Pro differ | Apache-2.0 for CE |
| openpyxl | Python creation and existing OOXML workbooks | Round-trip preservation is incomplete | MIT/Expat |
| XlsxWriter | Python generation of new XLSX reports | Cannot read or modify an existing workbook | BSD-2-Clause |
| PhpSpreadsheet | PHP spreadsheet reading and writing | Check value binding and format support | MIT |
ExcelJS
ExcelJS reads, manipulates and writes spreadsheet data and styles in JavaScript. It is a reasonable candidate when a maintained Node.js worker already assembles the report and the team wants programmatic control over worksheets, columns and presentation.
Strengths: a single runtime can transform approved inquiry records and generate the workbook. Its document and streaming approaches offer different construction models. The streaming writer disposes of committed rows, which is useful to consider for sequential output rather than retaining every row object indefinitely.
Limitations: committed streaming rows are no longer available for later edits, and the documentation lists other differences from the document model. Plan summaries and layout before choosing that path. Do not assume a browser build exposes every Node.js feature.
Cost and fit: the core is MIT-licensed. Select it for a JavaScript-owned workbook pipeline after checking the exact features against a representative fixture. The absence of a core subscription fee does not remove maintenance, storage or delivery costs.
SheetJS
SheetJS Community Edition emphasizes extracting spreadsheet data and generating files across many spreadsheet formats. That can suit a JavaScript adapter receiving source files from several business tools before producing a normalized inquiry workbook.
Strengths: the data-interchange focus is useful when the challenge is getting records into a consistent worksheet structure. For a CF7 reporting workflow, the important question is whether the supported input and output formats match the actual systems involved, rather than how elaborate the final colors look.
Limitations: Community Edition and the commercial Pro offering have different scope. The official overview places advanced styling, complex template editing, images, graphs and formula evaluation among Pro capabilities. Do not promise those as CE features merely because the overall SheetJS brand advertises them.
Cost and fit: CE uses Apache-2.0. Pro is separately commercial; obtain current terms for the required scope. Choose CE for documented data interchange when it meets the requirement, and assess the commercial edition explicitly if richer presentation or calculation is essential.
openpyxl
openpyxl is a Python library for reading and writing Office Open XML workbooks, including XLSX and related formats. It fits a Python reporting job that needs to open an existing workbook as well as create a new one.
Strengths: the tutorial documents loading workbooks and options governing formulas, cached values and macro preservation. A team with an established review template can evaluate whether that workflow preserves the specific objects its readers rely on.
Limitations: loading and saving is not a promise of lossless round-tripping. The documentation warns that some workbook objects, including shapes, can be lost. Preserving VBA elements does not make them editable. Save a reviewed output separately and compare the template’s meaningful features before adopting the process.
Cost and fit: the documented core license is MIT/Expat. Choose openpyxl when Python and existing-workbook handling are central, with an explicit preservation check. Do not select it simply because an XLSX file opens successfully; inspect the resulting workbook too.
XlsxWriter
XlsxWriter creates new XLSX files from Python and supports formatting, charts, images, autofilters and other report features. It suits a generator that rebuilds the reporting artifact from approved source records each time.
Strengths: a fresh-output workflow makes the report definition explicit. The source table, summary and explanatory notes can all be regenerated rather than inheriting accidental edits from last week’s workbook. That is a useful fit judgment for a recurring CF7 briefing with controlled definitions.
Limitations: XlsxWriter cannot read or modify existing XLSX workbooks. If the real requirement is to open a complex template and replace selected cells, evaluate another approach. Support for writing formulas also should not be confused with evidence that every receiving application will calculate and display results identically.
Cost and fit: its core license is BSD-2-Clause. Choose it for new Python-generated reports when required presentation features are documented. Treat recipient-application compatibility as an acceptance check, not a benchmark inferred from the feature list.
PhpSpreadsheet
PhpSpreadsheet reads and writes several spreadsheet formats in PHP. It is a natural candidate when the reporting code is already maintained in PHP and introducing another worker runtime would create unnecessary operational work.
Strengths: its documented cell APIs support explicit types. The cell-value documentation explains value binding and forcing a string type, which matters for identifiers and visitor-entered values that resemble formulas. Make the intended field type part of the report mapping.
Limitations: default binding may interpret strings as numbers or formulas. Reading and writing support also varies by file format and feature. Review the actual runtime requirements and dependencies before installing it in an existing WordPress environment; a PHP library is not automatically a ready-made CF7 export plugin.
Cost and fit: the core license is MIT. Choose it for a PHP-owned pipeline when its feature matrix and resource needs fit. Keep expensive report generation outside a visitor’s submission request where your architecture supports background work.
Run one workbook acceptance exercise
Create a small synthetic dataset with a leading-zero reference, international phone text, an accented name, a multiline message, an empty optional field and a string beginning with an equals sign. Verify stored cell types, visible values, row counts and worksheet names. Check that user text remains literal and that only developer-owned cells contain intended formulas.
Add a definitions sheet with the reporting period, timezone, source, exclusions and generation timestamp. Open the result in the recipient’s actual spreadsheet application. If a template is involved, compare its required shapes, charts, formulas and other objects before and after generation.
For larger workloads, measure the actual pipeline with representative synthetic data and the selected construction mode. Include file finalization, storage and download behavior. This comparison provides no measured speed or memory ranking.
Choose for the maintained workflow
Favor ExcelJS for JavaScript workbook construction, SheetJS CE for its documented interchange scope, openpyxl for Python workflows involving existing workbooks, XlsxWriter for newly generated Python reports, and PhpSpreadsheet for a PHP-owned generator. Verify the selected version and dependency notices when packaging the implementation.
Use our monthly report definitions and identifier preservation guide before designing the workbook. We publish CF7 Analytics; our free Svetlik Analytics for Contact Form 7 documents submission trends and statistics. Confirm your actual export source separately instead of assuming it supplies every field discussed here.
