.csvtext/csvTabular & Spreadsheet FormatsComma-Separated Values (CSV)
Flat spreadsheets, database imports, Excel interoperability, and quick row/column diffing across tabular exports.
CSV (RFC 4180) is the universal plain-text tabular format for spreadsheets and analytics pipelines, though lack of native types and missing UTF-8 BOM headers often cause Excel encoding garble.
| Property | CSV |
|---|---|
| File extension | .csv |
| MIME type | text/csv |
| Structure type | Tabular |
| Encoding | UTF-8 Text |
| Nesting support | No |
| LLM token efficiency | Medium |
| Schema / typed | No |
| Best for | Flat spreadsheets, database imports, Excel interoperability, and quick row/column diffing across tabular exports. |
Strengths
- Opens everywhere: Excel, Google Sheets, SQLite, pandas, Polars, and every BI platform
- Zero structural key repetition compared to JSON — compact and easy to inspect in plain text
- Streaming-friendly line layout makes row diffing and delimiter parsing fast
Trade-offs
- Everything is untyped text — leading zeros (
00123) and dates can be silently mangled by Excel - Windows Excel garbles non-ASCII CJK/accented CSVs unless prepended with a UTF-8 BOM (
EF BB BF) - Cannot represent nested objects or arrays without flattening headers with dot notation
Convert & inspect CSV locally
Transform CSV or TSV spreadsheets into schema-declared TOON blocks with typed numbers and booleans for LLM prompts.
CSV to JSONLConvert CSV/TSV tables into raw JSONL, OpenAI ChatML messages[], Alpaca, or ShareGPT fine-tuning records locally.
JSONL to CSVFlatten nested JSONL / NDJSON records into RFC-4180 CSV with dot-notation headers and Excel UTF-8 BOM support.
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 columns into RFC-4180 CSV with delimiter selection and UTF-8 BOM Excel support in browser RAM.
CSV to ParquetInfer typed schemas from CSV/TSV and write valid PAR1 Apache Parquet binaries with SNAPPY compression in browser RAM.
Open .sqlite, .sqlite3, and .db databases locally with self-hosted sql.js WASM — inspect tables, schemas, and run live SQL.
Extract one or all tables from .sqlite / .db files into Excel-safe UTF-8 BOM CSV or a multi-table ZIP archive locally.
Flatten nested JSON arrays into RFC-4180 CSV with delimiter selection and default UTF-8 BOM for Microsoft Excel.
CSV to JSONParse CSV/TSV with auto delimiter sniffing and convert numeric and boolean strings into typed JSON arrays locally.
Excel to CSVExtract Excel worksheets into UTF-8 BOM CSV (or a multi-sheet CSV ZIP archive) completely inside browser RAM.
CSV DiffAlign two CSV/TSV exports by primary key column (e.g. sku, id) to highlight exact modified cells, added rows, and removals.
Pseudonymize sensitive CSV columns (name, email, phone) and proportionally scale financial columns (×k) locally in RAM.
Related engineering guides
Compare GPT-4o o200k_base BPE token counts across formatted JSON, minified JSON, YAML, CSV, and TOON—plus how TOON cuts prompt array tokens 40%–60%.
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.
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.
Zero-Upload PII Redaction & Reversible Restore Before Sending Data to AIRedact emails, phone numbers, API keys, DB URIs, and salaries locally in browser RAM using [[TYPE-NN]] placeholders—then restore AI replies cleanly.
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.
Excel XLSX & CSV Encoding Guide: Fixing Garbled Characters with UTF-8 BOMStop Microsoft Excel from garbling Chinese, Japanese, Korean, and European accented CSVs—learn how UTF-8 BOM works and convert XLSX/CSV safely locally.
Structural JSON Diff & Primary-Key CSV Diff for Data ValidationCompare API payloads and database table exports cleanly using key-order-normalized structural JSON diff and primary-key-aligned CSV diff locally.
Browser WASM & SQLite Architecture: Zero-Upload Privacy & Memory LimitsInside DataTo's Dedicated Web Worker architecture: self-hosted 688 KB sql.js WASM, Parquet range reads, Worker recycling, and how to stay safe on huge datasets.
Convert HuggingFace Parquet Files to JSONL & CSV Without PythonConvert 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.
OpenAI Batch API JSONL: Unwrapping, Sharding & Validation GuidePrepare OpenAI Batch API JSONL files locally: unwrap nested JSON arrays, deduplicate lines, split shards into ZIP archives, and flatten results to CSV.
Sanitize Server Logs, Webhook JSON & Payroll CSV Before AI PromptsScrub DB URIs, Bearer JWTs, AWS keys, and IPs from logs, mask JSON keys validly, scale CSV salaries by ×k, and lock sessions in AES-256-GCM .redactkey.
Offline LLM BPE Token Counting & Prompt Cost Optimization GuideCount exact o200k_base and cl100k_base BPE tokens offline, visualize token boundary segments, prune null JSON fields, and cut prompt API costs locally.
Related Comparisons
CSV frequently asked questions
Why does Excel show garbled characters when opening a UTF-8 CSV?
Legacy Excel defaults to local ANSI codepages unless the CSV begins with a 3-byte UTF-8 Byte Order Mark (\uFEFF). DataTo enables UTF-8 BOM by default on CSV exports.
How do I preserve numbers and booleans when converting CSV to JSON?
Enable Parse numeric strings and Parse true/false in DataTo CSV to JSON so numeric and boolean columns emit native JSON primitives.
Can DataTo detect semicolons or tabs automatically?
Yes. CSV tools default to auto delimiter sniffing across comma ,, semicolon ;, tab \t, and pipe |.