HTML Table & CSV to LLM Prompt Optimizer
Raw HTML tables waste 2x–4x tokens, while raw CSV drops LLM tabular accuracy to 41–44% on wide sheets. Paste any HTML table, CSV, TSV, or JSON array below to benchmark exact local token footprints and export clean TOON, high-accuracy Markdown-KV, or schema-annotated TABLE_CONTEXT.md — without ever sending private rows to a server.
Why Format Choice Changes Both Token Cost & LLM Accuracy
TOON Cuts JSON Overhead 35–60%
Repeating JSON object keys on every row burns context budget fast. TOON (Token-Oriented Object Notation) declares the column schema once (rows[N]{col1,col2}:) and streams clean comma-separated values underneath — ideal for uniform 15+ row tables.
Markdown-KV Prevents Column Shift
In controlled tabular benchmarks (1,000-row retrieval), CSV drops to 41.1–44.3% and wide Markdown pipe tables to 51.9% because LLMs miscount delimiters. Explicit Markdown-KV blocks push accuracy to 60.7% on wide 6+ column SaaS/CRM tables.
colspan/rowspan + Local Numeric Stats
Naive converters mangle merged HTML headers and leave leading-zero SKUs broken. SheetDock unmerges colspan/rowspan matrices locally and computes exact min/max/sum stats in TABLE_CONTEXT.md so your LLM never mis-adds revenue columns.