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.
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
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.
| Capability | DataTo (hyparquet + sql.js WASM) | Python (pyarrow / pandas) |
|---|---|---|
| Setup & Dependencies | Zero install — runs in browser RAM | Python env + pip install pyarrow |
| Compression Codecs | UNCOMPRESSED, SNAPPY, GZIP, ZSTD | All codecs via C++ libparquet |
| Pre-Export SQL Filtering | Built-in sql.js SELECT / WHERE / JOIN | Requires DuckDB or pandas logic |
| Data Residency | Dedicated Web Worker; 0 bytes uploaded | Local OS process; scales to host RAM |
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;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."}Tools used in this guide
AI JSONL →Stream Apache Parquet rows directly into newline-delimited JSONL for LLM fine-tuning and evaluation pipelines in browser RAM.
Parquet ViewerView Parquet table rows, column schema types, row-group counts, and Snappy/Zstd compression metadata in a virtualized grid.
Parquet SQL QueryRun live SELECT, WHERE, GROUP BY, and JOIN SQL queries over local .parquet, .csv, and .sqlite files via self-hosted WASM.
Decode Apache Parquet rows, nested structs, and arrays into formatted JSON records locally in browser memory.
OpenAI Fine-Tune ConverterConvert Alpaca, ShareGPT, CSV, or prompt/completion pairs into validated OpenAI ChatML messages[] fine-tuning JSONL.
Audit every JSONL line for syntax errors, OpenAI ChatML role alternation, missing assistant turns, and per-line BPE token limits.
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
Prepare OpenAI Batch API JSONL files locally: unwrap nested JSON arrays, deduplicate lines, split shards into ZIP archives, and flatten results to CSV.
OpenAI & Anthropic Fine-Tuning JSONL Dataset Preparation GuideFormat, convert, validate, deduplicate, and shard ChatML JSONL fine-tuning datasets from CSV, Alpaca, ShareGPT, or Parquet locally in browser RAM.
How to Inspect & Query Apache Parquet with SQL in Your BrowserInspect Apache Parquet schemas and run full SELECT, JOIN, and GROUP BY SQL queries locally in browser RAM using hyparquet and self-hosted sql.js WASM.
Parquet vs. CSV vs. SQLite: Choosing the Right Format for Browser AnalyticsCompare Apache Parquet, CSV, and SQLite 3 by file size, compression, column pruning, SQL querying, and WASM browser memory behavior.