.csvtext/csvTabular & Spreadsheet Formats

Comma-Separated Values (CSV)

Flat spreadsheets, database imports, Excel interoperability, and quick row/column diffing across tabular exports.

Quick Answer

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.

CSV · Format specs
PropertyCSV
File extension.csv
MIME typetext/csv
Structure typeTabular
EncodingUTF-8 Text
Nesting supportNo
LLM token efficiencyMedium
Schema / typedNo
Best forFlat 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

CSV to TOON

Transform CSV or TSV spreadsheets into schema-declared TOON blocks with typed numbers and booleans for LLM prompts.

CSV to JSONL

Convert CSV/TSV tables into raw JSONL, OpenAI ChatML messages[], Alpaca, or ShareGPT fine-tuning records locally.

JSONL to CSV

Flatten nested JSONL / NDJSON records into RFC-4180 CSV with dot-notation headers and Excel UTF-8 BOM support.

Parquet SQL Query

Run live SELECT, WHERE, GROUP BY, and JOIN SQL queries over local .parquet, .csv, and .sqlite files via self-hosted WASM.

Parquet to CSV

Decode Apache Parquet columns into RFC-4180 CSV with delimiter selection and UTF-8 BOM Excel support in browser RAM.

CSV to Parquet

Infer typed schemas from CSV/TSV and write valid PAR1 Apache Parquet binaries with SNAPPY compression in browser RAM.

SQLite Viewer

Open .sqlite, .sqlite3, and .db databases locally with self-hosted sql.js WASM — inspect tables, schemas, and run live SQL.

SQLite to CSV

Extract one or all tables from .sqlite / .db files into Excel-safe UTF-8 BOM CSV or a multi-table ZIP archive locally.

JSON to CSV

Flatten nested JSON arrays into RFC-4180 CSV with delimiter selection and default UTF-8 BOM for Microsoft Excel.

CSV to JSON

Parse CSV/TSV with auto delimiter sniffing and convert numeric and boolean strings into typed JSON arrays locally.

Excel to CSV

Extract Excel worksheets into UTF-8 BOM CSV (or a multi-sheet CSV ZIP archive) completely inside browser RAM.

CSV Diff

Align two CSV/TSV exports by primary key column (e.g. sku, id) to highlight exact modified cells, added rows, and removals.

Mask CSV Data

Pseudonymize sensitive CSV columns (name, email, phone) and proportionally scale financial columns (×k) locally in RAM.

Related engineering guides

JSON vs. TOON vs. YAML: LLM BPE Token Benchmarks in 2026

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 Browser

Inspect 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 Guide

Format, 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 AI

Redact 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 Analytics

Compare 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 BOM

Stop 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 Validation

Compare 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 Limits

Inside 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 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.

OpenAI Batch API JSONL: Unwrapping, Sharding & Validation Guide

Prepare 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 Prompts

Scrub 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 Guide

Count 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 |.

Authoritative References

Explore other formats

All 14 formats →