Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

convert-to-parquet

convert-to-parquet is a multi-format converter to Parquet written in Rust.

It converts CSV/TSV, JSON/JSONL/NDJSON and Excel spreadsheets (xlsx/xlsm/xlsb/xls/ods) to compressed Parquet files (ZSTD), with automatic schema inference and parallel processing.

It also supports reverse conversion: Parquet → CSV, Parquet → JSONL, Parquet → JSON (array of objects), and Parquet → XLSX (Excel workbook).

Key Features

  • Automatic type inference: Boolean, Int64, UInt64, Float64, Date32, Timestamp(ms), LargeUtf8
  • ZSTD compression (level 5) for optimized Parquet files
  • Parallelism: reading in blocks of 100,000 rows, parallel conversion (rayon), ordered writing (crossbeam)
  • Automatic detection of delimiter and header
  • Glob patterns: convert_to_parquet *.csv
  • stdin input: cat data.csv | convert_to_parquet -
  • Compressed files: .gz, .zst automatically decompressed
  • Detailed validation report for each conversion
  • Interactive mode: full-screen Parquet viewer (ratatui) with data preview and export to CSV / JSONL / JSON / XLSX
  • GUI application: graphical interface (egui/eframe) with schema editing, preview, batch conversion

Supported Formats

InputOutput
CSV, TSV, and other delimitersParquet (.parquet)
JSON, JSONL, NDJSONParquet
XLSX, XLSM, XLSB, XLS, ODSParquet (one sheet = one file)
ParquetCSV
ParquetJSONL
ParquetJSON
ParquetXLSX (Excel workbook)