csvkit.org
CSV (Comma-Separated Values) utilities, in the browser
Say hi →

CSV to Parquet

typed columns · per-column override · snappy / gzip / none · nothing uploaded

A CSV has no types: every value is text until something guesses. Parquet stores one type per column, so the guess has to be made once, and made right, before the file is written. Paste or drop a CSV and this tool proposes a type for every column, shows you the first value and any value that does not fit, and lets you change the type before a byte is written. The file is built in your browser; nothing is uploaded.

csv → parquet
Drop a .csv file here, or
ready

How to convert CSV to Parquet

  1. Paste the CSV or drop a .csv file. The delimiter is detected, and a file saved in Windows-1252 instead of UTF-8 is recognised and decoded correctly.
  2. Read the table that appears: one row per column, with the type the tool inferred, the number of empty cells, and the first value.
  3. Change any type you disagree with. The Check column says ok, or names the first row whose value does not fit the type you picked.
  4. Pick a compression codec and click Download .parquet. The schema of the file you got is printed underneath, one line per column with its physical and logical type.

How the types are chosen

Every non-empty value in a column is tested, not a sample of the first rows, so one odd value at row 90,000 still decides the type.

Values that do not fit are not dropped

If you set a column to integer and row 4 says n/a, the tool refuses to write the file and tells you which row and which value, rather than quietly storing a null. Either pick a looser type, fix the value, or tick NULL, NA, \N → null if those markers really mean "no value" — \N is how MySQL's SELECT … INTO OUTFILE writes NULL with its default settings.

Compression

Rows are written in row groups of 1,000 for the first group and 100,000 after that, with min/max statistics for every column, which is the default of the hyparquet-writer library that builds the file.

FAQ

Is my CSV uploaded?

No. The CSV is parsed and the Parquet file is built inside your browser tab. The only network request is the one-time download of the writer library from jsDelivr when you first click the button.

Will pandas, DuckDB or Spark read the file?

It is a standard Parquet file with standard logical types. While building this tool we read its output back with DuckDB and PyArrow and compared every value and every column type with the CSV that went in.

Why is my ID or postcode column a string?

Because at least one value starts with a zero, or one value is not a number at all. Choose integer in the table if you really want a number; leading zeros will be lost.

How big a CSV can it convert?

The whole file is held in memory while the Parquet file is built, so tens of megabytes are comfortable on a laptop. For very large files, split the CSV first and convert the parts.

Can I get nested columns (lists, structs)?

No — a CSV cell is flat, so every column is written as a flat, nullable column. If your data is nested, start from JSON Lines instead.

Going the other way? Parquet to CSV opens a .parquet file and shows its schema. To inspect the CSV before converting, Data profile reports types, fill rates and suspicious values per column.

Privacy

100% client-side. No upload. See the privacy policy.