Markdown for spreadsheets.
A line-oriented plain-text format for full-fidelity workbooks. An AI can write it reliably, you can edit it in any text editor, and a database can address it block by block. It round-trips to XLSX and ODS with nothing silently dropped.
Why a new format
Serialisation today forces a bad trade.
Every existing option gives up something essential. GridMD keeps the formulas, the formatting and the diff. One populated cell costs one line, and a .gmd file still renders fine in any Markdown viewer.
| Full fidelity | Readable & diffable | LLM-authorable | |
|---|---|---|---|
| OOXML / ODS | ✓ | ✕ | ✕ |
| CSV / MD tables | ✕ | ✓ | ~ |
| JSON models | ~ | ✕ | ✕ |
| GridMD | ✓ | ✓ | ✓ |
Design goals · in priority order
LLM-authorable. Low nesting, line-oriented, no escape-character hell; an XLSX formula pastes in verbatim.
Human-parsable. Hand-editable in any text editor; renders passably as Markdown.
Database-friendly. Block-addressable: one block is one row; concurrent edits to different blocks merge cleanly.
Concise. A populated cell costs one line; dense data costs about what CSV would; empty cells cost nothing.
Full XLSX fidelity. Everything’s representable, natively or through the {raw} escape hatch. The no-silent-loss rule is absolute.
The directive catalogue
Feature surfaces live in fenced, typed blocks with YAML bodies. Sparse cells stay one-line @ directives.
The formula ⇄ cached-value pair =F :: V means consumers without a calc engine still read correct values.
The specification
Four documents. One linter with the final say.
The reference parser and strict-mode linter check every document against the grammar. The worked example lints clean: 5 sheets, 140 defined cells, 0 errors, 52 tests.
Document model, cell grammar, @ directives, formula canon, conformance, mini-EBNF.
The full directive catalogue, from {table} to the {raw} escape hatch.
Style properties, number formats, theme colours, the built-in style catalogues, icon sets.
XLSX ⇄ GridMD feature map, fidelity classes F0–F3, storage model, diff / merge, security.
Open source
On GitHub, MIT-licensed.
Free. Open. No Pro tier; the format is the point.
GridMD is MIT-licensed: spec, parser and linter. It’s also the native tongue of Lattice. When its AI drafts a workbook, it streams GridMD, and the grid renders it live.
Get in touch
Implementing GridMD?
Spec questions, interop findings, linter bugs; the maintainers read everything.