Choose Between Parquet and CSV

Parquet vs CSV: what converting actually changes, how each format holds up when shared, and which one fits analytics, exchange or human review.

CSV and Parquet both hold tabular data, but they are built for different jobs. Converting from one to the other changes more than the file extension. It changes how values are stored, what information travels with them, and who can open the result without special software. This review explains those differences so you can decide which format keeps the meaning and usability your task needs.

The short recommendation

Choose Parquet when analytics tools read the data repeatedly, when columns have meaningful types, and when the files are large enough that storage size and scan time matter. Choose CSV, or its tab-delimited cousin TSV, when people need to open the file, paste it, email it, review changes to it, or load it into systems you don't control. The deciding tradeoff is that Parquet gains typed, compressed storage where tools can read selected columns, and it pays for that with human readability and near-universal compatibility. Many workflows keep both: Parquet as the working copy and CSV as the export for people and outside systems.

What converting actually changes

CSV is plain text. Line breaks separate rows, a delimiter separates fields (a comma in CSV, a tab in TSV), and quotation marks wrap any field that contains the delimiter or a line break. Every value is just a sequence of characters. Whether 0042 is a number or an identifier, or whether 03/04/2025 means March or April, is decided by whatever program reads the file.

Parquet is an open, binary, column-oriented format maintained as an Apache project. It stores all the values of a column together within blocks called row groups. The file carries a schema that declares each column's type. It applies encodings such as dictionary and run-length encoding, can compress data with a choice of codecs, and records statistics such as minimum and maximum values for each column chunk. Because of this layout, a query engine can read only the columns a query needs, and some engines use the statistics to skip whole row groups.

The point that matters most for preserving meaning is that the conversion is where interpretation happens. A CSV has no types, so whatever produces the Parquet file must decide them, either from rules you declare or by guessing. Once a value is stored as a typed number or timestamp, the original text is gone. Leading zeros can disappear, an ambiguous date can be parsed the wrong way, and an empty field can become null or an empty string depending on the tool's settings. Converting back to CSV does not restore the original text. The tool reformats the stored values, so floating-point numbers, timestamps and time zones may print differently than they did in the source.

The following CSV fragment shows the kinds of values that are easy to misread during conversion: identifiers with leading zeros, two date styles in one column, a quoted field containing a comma, and an empty field.

order_id,zip_code,order_date,note
0042,02134,03/04/2025,"Left at door, side gate"
0043,90210,2025-04-03,

To keep the intended meaning, declare types instead of relying on inference. Here is a minimal example using the pandas library in Python. Writing Parquet with pandas also requires an engine such as pyarrow or fastparquet. With a fixed date format, the mixed dates above would raise an error rather than be silently guessed. That is usually what you want, because it shows you which source data needs cleaning.

import pandas as pd

df = pd.read_csv(
    "orders.csv",
    dtype={"order_id": "string", "zip_code": "string"},
    parse_dates=["order_date"],
    date_format="%Y-%m-%d",
)
df.to_parquet("orders.parquet", index=False)

A note on compression: you can also compress a CSV, for example with gzip. That reduces the file size, but a reader still has to decompress and parse the entire file to get at any one column. Parquet's advantage comes from its column layout and metadata, not from compression alone.

Readability and usability after copying or sharing

A CSV file can be opened in any text editor, pasted into a message, and tracked in version control with line-by-line diffs. Spreadsheet programs import it, and the recipient needs no special library. These properties make CSV the default for exchanging data with people and with systems whose capabilities you don't know.

Parquet is binary, so you cannot read it in a text editor or paste it into a document. Opening it requires a library or query engine. Common examples include pyarrow or pandas in Python, DuckDB, and Spark. Support in spreadsheet programs, business intelligence tools and databases varies by product and version. Check the documentation for your destination and test with a sample file rather than assuming that support in one tool means support everywhere.

CSV has its own sharing pitfalls, because the format is only loosely standardized and implementations differ. Watch for these:
Some locales use the comma as a decimal mark and the semicolon as the delimiter.
Character encoding varies, for example UTF-8 with or without a byte-order mark, versus legacy encodings.
Line endings differ between operating systems.
Quoted fields can contain line breaks, which simple line-based tools mishandle.
Spreadsheet programs may automatically convert long numbers, identifiers with leading zeros, and text that looks like a date.
Parquet avoids most of these because the schema and encoding are stored in the file itself.

Accessibility depends on the viewer, not only on the format. A screen reader in a text editor reads a raw CSV as a stream of values and delimiters. A spreadsheet or table view gives row and column navigation. Parquet must be rendered by some tool before anyone can read it, so its accessibility depends entirely on that tool. Treat any claim about a specific assistive technology as something to verify in your own environment.

Provide a plain-text equivalent, usually a CSV export, in these situations:
The recipient's tools are unknown.
The destination system accepts only delimited text.
People need to review or annotate the data directly.
You want the file to be readable without any particular software.
CSV carries no types, so include a short data dictionary with the export. It should list each column, its intended type, and any formats or null conventions.

Side-by-side comparison

Criterion | CSV / TSV | Parquet
Storage form | Plain text, row by row | Binary, column by column within row groups
Types and schema | None; every reader interprets the values | Schema with declared types stored in the file
Human readability | Opens in any text editor | Requires a library or engine
Copy, paste, diff | Works directly | Not practical
Reading a few columns | Must parse every row in full | Can read only the needed columns
Compression | Optional, applied to the whole file | Built-in per-column encoding and compression
Nested data | Must be flattened or embedded as text | Supports nested structures
Appending rows | Append lines to the file | Usually done by writing additional files
Cross-tool consistency | Varies with delimiter, encoding and locale | Consistent wherever a reader supports the format

Which tradeoffs change the recommendation

  • Small or one-off files: CSV is usually enough, and Parquet's tooling requirement adds friction without much benefit.
  • Large datasets queried repeatedly, especially when queries touch only some columns: Parquet's column layout and statistics are the main reason to switch.
  • Data that people edit by hand or review in version control: CSV, because Parquet cannot be meaningfully edited or diffed as text.
  • Pipelines that append rows constantly or process data line by line: delimited text is simpler, while Parquet typically collects new data in new files and compacts them later.
  • Nested or semi-structured records: Parquet can represent nesting directly, while CSV forces flattening or text-encoded cells.
  • Several teams or tools that must agree on types: Parquet's embedded schema removes the need for each reader to guess.
  • Exchange with outside parties or legacy systems: CSV, accompanied by a data dictionary, remains the safer common denominator.

How to check that a conversion kept its meaning

  • Compare row counts between the source and the converted file.
  • Compare null and empty-value counts for each column.
  • Spot-check identifiers that have leading zeros or are very long.
  • Confirm how dates and times were parsed, including the time zone.
  • Round-trip a sample from CSV to Parquet and back to CSV, then review any differences.
  • Open the output in the actual destination tool, not just the tool that wrote it.

Gaps in this review

This review is based on documented format behavior, not measurements. No benchmarks, file-size comparisons or speed tests were supplied, and none are claimed here. How much smaller or faster Parquet is depends on your data, compression codec, row group settings and query engine, so measure on a representative sample of your own data. Compatibility with specific spreadsheet, business intelligence or database products was not tested and should be confirmed against each product's documentation.