XLSX-to-CSV Conversion — Lessons from Reddit

November 23, 2026 · XLSX.now Editorial · Reddit Guides

An evidence-led XLSX guide distilling genuine Reddit experiences, technical limits, privacy checks, and a reproducible workflow.

An XLSX workbook is a compressed archive of XML parts. A CSV file is a single table of untyped text. Moving from one to the other is not a save-as operation; it is a lossy extraction that discards formulas, types, formatting, and structure. The failure modes are well-defined, and they surface only when the downstream system rejects the file, misreads the values, or silently corrupts the data.

Formulas, Cached Values, and the Calculation Gap

Inside xl/worksheets/sheet1.xml, a cell can contain both a formula element (<f>) and a cached value element (<v>). The cached value is the last result Excel computed when the workbook was saved. A converter that reads only the cached value will produce a CSV with numbers that may be stale. A converter that attempts to evaluate the formula inherits a different problem: it must handle external references, array formulas, volatile functions, and circular dependencies without the full calculation engine that a spreadsheet application provides.

The r/excel community has documented cases where converters returned cached values that no longer matched the visible data because the workbook had been opened in an application that did not recalculate before saving. The operational rule is straightforward: if the workbook contains formulas, open it in a desktop spreadsheet application, confirm that calculation is complete, save, and then export. This guarantees that the cached values reflect the current state of every cell. Converters that claim to evaluate formulas on the fly should be treated as unreliable unless they can prove they replicate the workbook’s exact calculation chain.

How Dates Become Unrecoverable Noise

XLSX stores dates as serial numbers—floating-point values that count days from a base date, typically December 30, 1899, with the well-known Lotus 1-2-3 compatibility bug that treats February 29, 1900, as a valid date. The Microsoft Open Specifications document for XLSX (learn.microsoft.com) defines the serial number system in detail. A CSV file has no date type; every value is a string. The converter must choose whether to write the raw serial number (45234) or a formatted string (2023-10-15), and that choice is often undocumented.

If the receiving system expects an ISO 8601 date and the converter writes a locale-specific format—10/15/2023 or 15/10/2023—the import will misinterpret months and days for any date where the day is 12 or below. If the converter writes the serial number, the receiving system may interpret it as an integer with no relationship to a calendar. The only reliable verification is to open the resulting CSV in a plain-text editor and inspect a sample of date cells before ingestion.

Hidden Content, Structural Collapse, and Stripped Identifiers

A workbook can contain multiple sheets, and a converter may export only the active sheet, the first sheet, or every sheet concatenated into a single file. A discussion on r/Office365 (link) surfaced cases where hidden sheets containing lookup tables or validation rules were silently dropped. No warning was given; the CSV simply lacked the data.

Merged cells introduce another structural mismatch. XLSX records merged ranges in a <mergeCell> element. CSV has no spanning mechanism. Some converters duplicate the merged value into every constituent cell; others place it only in the top-left cell and leave the remainder blank. Neither behavior is standardized, and the receiving system may interpret blank cells as missing data.

Leading zeros in identifiers—ZIP codes, employee IDs, account numbers—are preserved in XLSX when the cell is formatted as text or stored as a shared string in xl/sharedStrings.xml. A converter that outputs numeric values will strip those zeros. The original text is lost in the CSV and cannot be reconstructed from the file alone. The r/excel privacy discussion (link) noted that users who uploaded workbooks to online converters received CSVs with mangled identifiers and no recovery path.

What Online Converters Actually Receive

Uploading an XLSX to a browser-based converter sends the entire archive to a remote server. The file contains more than the visible grid. Deleted cells, revision logs, external link caches, and metadata can persist in the XML parts. Hidden rows and columns are included. If the workbook has ever contained personally identifiable information, proprietary formulas, or financial data, that data may still be present in the file’s internal structures even if it is not visible in the application.

The same r/excel thread captured a recurring concern: users had no visibility into whether the server cached the file, logged its contents, or exposed it through a misconfigured endpoint. For any workbook that contains confidential material, offline conversion is the only defensible choice. LibreOffice Calc, Python with openpyxl, and Microsoft Excel itself all perform the conversion locally without network exposure. Online converters are appropriate only for workbooks that contain no sensitive data and that the owner is willing to treat as public.

Encoding, Delimiters, and the Missing Standard

CSV has no single specification. RFC 4180 provides a baseline, but real-world systems diverge on delimiters (comma vs. semicolon), line endings (LF vs. CRLF), and encoding (UTF-8 with or without a BOM, UTF-16, Windows-1252). XLSX uses UTF-8 internally for its XML parts. A converter that defaults to the system locale may transcode characters incorrectly, replacing accented letters or non-Latin scripts with question marks or mojibake.

The failure is often invisible in a quick preview. A text editor that auto-detects encoding may display the file correctly, while the target import tool reads the same bytes as garbled text. Verifying encoding requires opening the file in a hex editor or a viewer that displays raw bytes, then confirming that multi-byte characters are intact.

A Repeatable Conversion Sequence

A reliable workflow avoids guesswork. First, identify the exact worksheet, delimiter, and encoding the receiving system expects. Make a copy of the original XLSX file; never convert the only copy. Open the copy in a desktop spreadsheet application. Inspect hidden sheets and note any merged cells. Export to CSV, explicitly setting the delimiter, encoding, and date format rather than accepting defaults. Open the resulting CSV in a plain-text editor. Check date strings, leading zeros, and special characters. Only then import into the target system.

For automated pipelines, Python with openpyxl provides cell-level control. A script can read shared strings directly, format dates to an explicit pattern, preserve leading zeros by treating identifiers as text, and write the CSV with a declared encoding. This removes the undocumented assumptions that packaged converters introduce.

When CSV Is the Wrong Target

Some workbooks should not be converted to CSV. If the downstream system requires relationships between tables, computed values, or conditional formatting, CSV cannot carry that information. Excel’s XLSX format can export to other structured formats—XML, JSON via Power Query, or direct database connections—that preserve more semantics. CSV is appropriate only for flat, tabular data that can stand alone without formulas, styles, or multiple sheets. If the conversion process requires extensive work to preserve behavior that the workbook depends on, the output format itself is the problem.