Engineering Guides5 min readUpdated: 2026-11-24

Convert HuggingFace Parquet Files to JSONL & CSV Without Python

Convert HuggingFace Parquet shards to JSONL, JSON, or UTF-8 BOM CSV locally in browser RAM using hyparquet and sql.js WASM—zero Python or uploads required.

Quick Answer

You can convert HuggingFace Parquet to JSONL without Python or pyarrow by opening the .parquet shard locally in DataTo. A pure-JavaScript hyparquet range reader decodes UNCOMPRESSED, SNAPPY, GZIP, and ZSTD columns via a Snappy/Zstd Parquet converter local Web Worker, lets you extract HuggingFace Parquet rows with SQLite WASM SQL, and exports clean NDJSON streams or UTF-8 BOM CSV directly from browser RAM.

How HuggingFace Parquet shards decode cleanly inside browser RAM

Open-weight training and evaluation datasets on HuggingFace commonly ship as .parquet shards compressed with SNAPPY or ZSTD. When you want to convert HuggingFace Parquet to JSONL without Python, installing pyarrow or DuckDB just to inspect columns and pull a training slice adds unnecessary setup.

DataTo validates the leading and trailing PAR1 magic bytes and wraps local File handles in a File.slice() AsyncBuffer so hyparquet and hyparquet-compressors read footer schemas, row-group counts, compression codecs, and requested row ranges strictly in a Dedicated Web Worker.

  • Supports UNCOMPRESSED, SNAPPY, GZIP, and ZSTD Parquet column chunks natively in JavaScript
  • Normalizes 64-bit INT64 BigInt values and Date timestamps cleanly into JSON-safe primitives
  • Supports rowLimit (default 5,000 in Parquet to JSONL, up to 200,000) and dropNullFields to strip null properties per line

Inspect Parquet schema & row groups →

Browser hyparquet + sql.js WASM vs. Python pyarrow workflows

For ad-hoc dataset slicing, schema checks, and JSONL extraction on laptops or locked-down workstations, browser WebAssembly matches local Python scripts on privacy while removing virtualenv and dependency management.

CapabilityDataTo (hyparquet + sql.js WASM)Python (pyarrow / pandas)
Setup & DependenciesZero install — runs in browser RAMPython env + pip install pyarrow
Compression CodecsUNCOMPRESSED, SNAPPY, GZIP, ZSTDAll codecs via C++ libparquet
Pre-Export SQL FilteringBuilt-in sql.js SELECT / WHERE / JOINRequires DuckDB or pandas logic
Data ResidencyDedicated Web Worker; 0 bytes uploadedLocal OS process; scales to host RAM

Filter Parquet rows with SQL locally →

Step-by-step: SQL filter, JSONL stream, and ChatML fine-tuning prep

Drop a downloaded shard into Parquet SQL Query to filter rows or join multiple tables under the data table alias, or drop one or more shards straight into Parquet to JSONL for streaming NDJSON output (auto-bundled into a ZIP when processing multiple files).

Toggle Drop null properties (dropNullFields) to omit null columns from every emitted record, or hand off your JSONL output locally via IndexedDB into OpenAI Fine-Tune Converter and JSONL Validator.

SELECT id, instruction, output
FROM data
WHERE split = 'train' AND LENGTH(output) > 40
LIMIT 5000;

Convert Parquet to JSONL locally →

Exporting ChatML JSONL or writing back to PAR1 Parquet binaries

After converting HuggingFace columns to JSONL, normalize instruction/input/output fields into OpenAI messages[] records with OpenAI Fine-Tune Converter, or convert edited CSV and JSON tables back into spec-compliant PAR1 binaries using CSV to Parquet and JSON to Parquet (with SNAPPY, GZIP, or UNCOMPRESSED output).

{"id":"ex-01","instruction":"Summarize Q3 revenue","output":"Revenue grew 14% YoY across NA and EMEA."}

Format JSONL into OpenAI ChatML →

Tools used in this guide

AI JSONL →

Related formats

Related Comparisons

Frequently asked questions

Can I convert SNAPPY or ZSTD compressed HuggingFace Parquet shards in Chrome?

Yes. DataTo bundles hyparquet and hyparquet-compressors inside Dedicated Web Workers to decode UNCOMPRESSED, SNAPPY, GZIP, and ZSTD columns offline.

How do I omit null columns from each exported JSONL line?

Enable Drop null properties in Parquet to JSONL so null and undefined keys are stripped from every newline-delimited JSON record.

Can I convert filtered CSV or JSON back into a valid Parquet binary in the browser?

Yes. CSV to Parquet and JSON to Parquet infer column types (INT32, INT64, DOUBLE, BOOLEAN, TIMESTAMP, STRING) and write PAR1-verified .parquet files via hyparquet-writer.

Authoritative References

More engineering guides