The spreadsheet format for the AI era.
CSVX is a human- and AI-readable spreadsheet format: CSV-shaped tables that retain types, formulas, formatting, comments, structured annotations, and sheets as plain text.
CSVX is an open, community-driven proposal for tabular data and spreadsheet workbooks. It can be understood in two complementary ways:
- A readable spreadsheet format: a plain-text representation of useful workbook features that humans and AI systems can inspect, edit, review, and convert without handling a binary XLSX package.
- An expressive CSV-shaped table: a familiar delimited grid that can carry types, formulas, display information, comments, structured annotations, multi-line cells, and multiple sheets without abandoning readability.
Status: draft proposal · Specification: SPEC.md (v0.2.0-draft) · Roadmap: ROADMAP.md · Examples: samples/ · License: dual; see LICENSE.md
CSVX occupies the space between a minimal delimited export and an opaque workbook file. CSV is excellent for a rectangular grid, but it does not carry spreadsheet context. XLSX carries that context, but it is not designed for a meaningful text diff or direct review.
| Capability | CSV | CSVX | XLSX |
|---|---|---|---|
| Plain text; editable in any editor | Yes | Yes | No |
| Useful diffs, search, and code review | Yes | Yes | Limited |
| Clear to people and AI systems | Limited | Yes | No |
| Types and display formats | No | Yes | Yes |
| Formulas preserved verbatim | No | Yes | Yes |
| Styles, comments, and annotations | No | Yes | Yes |
| Multi-line cells | Limited | Yes | Yes |
| Multiple sheets in one file | No | Yes | Yes |
| Vendor-neutral source representation | Yes | Yes | No |
CSVX does not evaluate formulas or replace spreadsheet applications. It stores formula text and workbook context so dedicated tools can preserve them during conversion and spreadsheet applications can evaluate them in their native environment.
A plain CSV value such as 03/04/2025 is ambiguous. A value beginning with
= might be a formula, or it might be text. A note, style, link, validation
rule, and formula normally require separate application state—or disappear in
a CSV export.
CSVX writes that context next to the data while keeping the grid recognizable:
workstream|owner|planned :int:|actual :int:|variance :int:|status
Research|Ada|12|10|-2 `=D2-C2` [[color: #b42318;]] /*confirm remaining budget*/|On track
Implementation|Grace|18|21|3 `=D3-C3`|At risk
Data cleanup|Lin|8|7|-1 `=D4-C4`|On track
Security review|Mina|10|10|0 `=D5-C5`|Complete
Documentation|Noor|6|5|-1 `=D6-C6` {{link: 'https://example.com/guide'}}|In review
The header declares integer columns once. Each variance cell preserves both its displayed value and its exact formula. The first row also demonstrates an inline style and a spreadsheet comment; the final row carries a structured link annotation. None of those require a sidecar file or a hidden workbook object.
Long text remains readable through continuation staircases rather than raw newlines inside quoted CSV fields:
ticket|owner|summary|status
SUP-17|Mina|+|+
Customer sees "payment declined"+|+
after a card update.|Investigating
SUP-21|Noor|+|+
First paragraph of the handover.+|+
+|Waiting for logs
Second paragraph follows the blank line.
Here + continues a whole cell on the next physical line. A line containing
only + contributes an empty segment, producing a blank line inside the
cell; ordinary blank lines remain layout and are ignored.
- Optional, self-describing frontmatter — default tables need no frontmatter. Add YAML or flow-YAML only for non-default syntax, schemas, named styles, sheet configuration, custom types, or document metadata.
- Types that propagate — declare
:int:or:date(dd.MM.yyyy):in a header or schema; data cells inherit the type while explicit cell types win. - Formula fidelity —
`=SUM(B2:B3)`is stored byte-for-byte. CSVX does not re-quote, evaluate, or rewrite the formula. - Structured annotations —
{{...}}carries schema-free YAML/JSON-like metadata;[[...]]carries inline CSS, named styles, or CSS classes; and/*...*/carries spreadsheet comments/notes. - Readable multi-line cells — continuation markers represent long text without literal newlines inside fields and without escape-heavy encoding.
- Multi-sheet workbooks —
---separates sheets. Names and intrinsic table/schema overrides live in the one document frontmatter. - Spreadsheet special values —
:nan:,:inf:,:na:,:div0:,:err(#VALUE!):, and:periodic(3):represent values that ordinary CSV cannot distinguish reliably. - Safety and interoperability — data is inert on read; formula export is explicit; UTF-8 is required; syntax, formula language, and annotation format are declared once per file when defaults are not enough.
A default file is intentionally short. Its frontmatter can be omitted:
name|team|score :int:
Ada|Research|42
Grace|Platform|73
When configuration is needed, the flat frontmatter remains compact:
---
delimiter: ","
quote: "'"
formula_language: openformula
table:
header: false
---
Ada,42,active
Grace,73,active
csvx/
├── SPEC.md The normative format specification
├── ROADMAP.md Design and implementation epochs
├── schema/ JSON Schema for optional frontmatter
├── samples/ Realistic canonical, configuration, and edge examples
├── benchmarks/ Reproducible escaping and LLM benchmarks (planned)
├── implementations.md Reference and community implementation index
├── docs/adr/ Decision records
├── tools/csvx-py/ Pre-alpha Python reference parser and XLSX converter
├── skills/csvx/ Portable agent skill for CSVX authoring and conversion
├── tests/cases/ Growing syntax/conformance corpus
└── tests/samples/ Reviewed real-workbook conversion fixtures
Start with samples/README.md for a guided set of use cases, then consult SPEC.md for normative syntax, semantics, escape rules, and round-trip requirements.
The proposal and its initial design decisions are documented in
SPEC.md. An alpha Python reference implementation is available as
csvx-py, with a parser, canonical
renderer, csvx check / csvx format, and extension-driven XLSX conversion:
python -m pip install csvx-py
csvx convert workbook.xlsx -o workbook.csvx --report import-report.json
csvx convert workbook.csvx -o rebuilt.xlsx --report export-report.jsonFor development, install the package from tools/csvx-py/ with its development
extras.
It preserves the grid, sheet names, exposed formula text, comments, hyperlinks,
and available formula caches. It never evaluates formulas. Recognized lossy
features are reported and rejected by --strict; support for advanced OOXML
features is still incomplete. See the tool README and
reviewed conversion fixtures for the current
fidelity boundary.
Several decisions remain deliberately evidence-driven: token and escaping trade-offs will be benchmarked, and date/number format validation will be settled with the converter fidelity contract. See ROADMAP.md for the complete plan.
CSVX is open and community-driven. Useful contributions now include:
- Review the specification — identify ambiguities, missing use cases, or design trade-offs in SPEC.md.
- Contribute real data — unusual values that stress escaping, quoting, continuations, and spreadsheet conversion are valuable benchmark material.
- Improve examples and schema — propose concise, realistic cases that make the format easier to understand and implement.
- Improve the reference tooling — style mapping, merge handling, validations, and broader conformance coverage are the current critical path; see CONTRIBUTING.md.
- Specification text, documentation, schema, and samples: CC-BY-4.0
- Reference implementations and benchmark code: Apache-2.0
See LICENSE.md. “CSVX” remains a working title pending availability and trademark checks before ratification.