# Konverter: Cut LLM Tokens on Excel, CSV & JSON

> Cuts the tokens your agent spends on spreadsheets: converts Excel, CSV and JSON tables into the leanest format (CSV, TOON, Markdown or JSON) before they enter the context. Typically 40–60% fewer tokens than JSON. Local, deterministic, no API key.

Konverter: Cut LLM Tokens on Excel, CSV & JSON is a paid AI agent skill on Agensi by brainbooth, in LLM Ops. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $7 (one-time purchase)
- Creator: [brainbooth](https://www.agensi.io/creators/brainbooth)
- Category: [LLM Ops](https://www.agensi.io/skills/llm-ops)
- Version: 1.3
- Last updated: 2026-12-03
- Security: scan passed (2026-12-03); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/konverter-cut-llm-tokens-on-excel-csv-json
- Tags: llm-ops, productivity, database, node-js, tokenization, excel-conversion, token-optimization, context-window

## What it does

- Shrinks spreadsheets and data tables into the format that costs your AI the fewest tokens
- Tests every format on your actual file and picks the smallest one automatically
- Shows how many tokens you saved compared with your original file
- Warns when a table is too big for the AI to read at once, and suggests filtering or splitting it instead
- Reads Excel files cleanly: real dates, stored values instead of formulas, all sheets
- Keeps your files on your computer: no uploads, no account, the same result every time

## Who it's for

- **Excel and office users:** Ask questions about large spreadsheets without the AI running out of room. Try: "Which product had the highest sales in sales.xlsx?"
- **Developers building AI agents:** Smaller prompts and lower cost for every call that includes table data. Try: "Prepare customers.csv for a prompt with as few tokens as possible."
- **Teams paying for AI by usage:** Lower bills on table-heavy work, with the saving shown each time. Try: "How many tokens does orders.xlsx cost, and how can I make it cheaper?"
- **Researchers and students:** Survey and study data that fits into the conversation and is analysed from the real numbers. Try: "Summarise the main results in survey.xlsx"

## About this skill

Your agent reads a spreadsheet, and half the tokens go to repeated JSON keys, quotes and braces instead of your data.

Konverter fixes that before the data reaches the context window. It converts Excel (.xlsx/.xls), CSV and JSON tables into CSV, TOON, Markdown and JSON, counts the tokens of each with the real tokenizer, and hands your agent the smallest one. On typical tables that is 40–60% fewer tokens than JSON: more rows per context window, lower cost per call, same information.

### What your agent gets

Automatic format choice: no single format is always best, so every option is measured on your actual data.
An honest report: the saving is measured against the format you actually had. If your file is already optimal, it says so (±0%).
A context-window guard: if a table is too large for the model, the agent is told not to load it and offers to filter, split or compute key figures instead.
Clean Excel handling: dates become ISO text, formulas are read as values and never executed, all sheets are read.

### Built to be trusted

Runs 100% locally. Your files never leave your machine: no uploads, no network calls, no telemetry.
Deterministic: the same input always produces byte-identical output. The conversion is plain code, not an AI guess.
No dependencies to install: one self-contained script, readable and unminified.
Safety limits against oversized or hostile files (size, row and column limits).
Token accuracy GPT counts are exact (o200k for GPT-4o/GPT-5/o-series, cl100k for GPT-4). Claude counts are a local estimate, because Anthropic publishes no offline tokenizer. They are clearly marked as approximate, and your agent is instructed to say so.
Clear warnings instead of silent mistakes: duplicate column names, wrong character sets, total rows, footnotes or Excel errors are flagged, so your agent never calculates with bad data.

Requirements: Node.js 20 or newer. Supports Excel, CSV (comma, semicolon or tab; UTF-8, Windows-1252 or UTF-16) and JSON arrays of flat objects. Nested JSON is rejected with a clear message, never silently flattened.

## Requires

- Node.js 20+

No npm install needed. In default permission mode your agent asks once before running the local node script.

## Known limitations

Requires Node.js 20+. Tabular data only: no nested JSON, PDFs, images or free text. Claude token counts are local estimates (GPT counts are exact). Default input limit 50 MB per file (adjustable), max. 1,000,000 rows and 10,000 columns. Empty Excel sheets are skipped.
Text outside the table (titles, footnotes, side notes) is flagged but not removed.

## Technical details

Built and tested for Claude Code; works with any agent that supports SKILL.md skills and can run a shell command. Requires Node.js 20+. No npm install, no API key, no network access.

Files: SKILL.md (instructions for the agent), scripts/konverter.mjs (one self-contained, unminified ES module, about 4.6 MB because it bundles the tokenizer vocabularies), LICENSE.txt, THIRD_PARTY_NOTICES.txt.

Usage: node scripts/konverter.mjs <file> [-m claude|gpt-4o|gpt-4] [-f auto|csv|toon|markdown|json] [-o out.txt] [--report] [--max-size MB] [--from csv|json] [--safe-csv]

Input: .xlsx, .xls, .csv (comma, semicolon or tab, auto-detected), .json (arrays of flat objects). Several files or sheets become named sections. Nested JSON is rejected, never flattened.

Output: converted data on stdout only; savings report, data notes ("Data note"), context-window note and errors on stderr. Exit code 0 on success (also with notes), 1 on error.

Tokenizers: gpt-tokenizer (o200k for GPT-4o/GPT-5/o-series, cl100k for GPT-4), exact. Claude counts are a local estimate derived from o200k and marked as approximate.

Limits: 50 MB per file by default (adjustable), 1,000,000 rows, 10,000 columns. Excel formulas are read as stored values and never executed.

Deterministic: same input and options give byte-identical output. Bundled: gpt-tokenizer 4.1.2 (MIT), SheetJS xlsx 0.20.3 (Apache-2.0).

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Konverter: Cut LLM Tokens on Excel, CSV & JSON skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What does konverter do?

It converts tabular files (Excel, CSV, JSON) into the most token-efficient text format before your agent reads them. It measures CSV, TOON, Markdown and JSON with the real tokenizer and picks the smallest, typically 40–60% fewer tokens than JSON.

### Which AI agents support konverter?

Any agent that supports SKILL.md skills and can run a command with Node.js 20+. Tested with Claude Code, where the agent picked the skill on its own for spreadsheet questions. It counts tokens for Claude, GPT-4o/GPT-5 and GPT-4.

### What specific file formats can this skill handle and produce?

The skill produces optimized text outputs in CSV, TOON, Markdown, or JSON formats based on which one uses the fewest tokens. It can process Excel files, standard CSVs, and flat JSON arrays, providing a deterministic output that is ready for analysis or prompt injection.

### How do I use konverter?

Install the skill and ask your agent about a spreadsheet as usual, e.g. "Which product has the highest stock in sales.xlsx?". The agent converts the file first, then works with the lean version and tells you how many tokens were saved. In default permission mode your agent asks once before running the converter script.

### Does my data leave my computer?

No. Conversion and token counting run locally in a Node.js process. There are no network calls, no uploads and no API keys.

### Is the output always the same?

Yes. The conversion is deterministic code, not an AI model: the same file with the same options gives byte-identical output.

### How accurate are the token counts?

Exact for GPT models. For Claude they are a local estimate marked with "≈", because Anthropic does not publish an offline tokenizer. The format ranking and the saving are a reliable guide.

### What if my file is too large for the context window?

Konverter warns your agent instead of flooding the context. The agent then looks only at the structure and offers options: key figures via a small script, filtering columns or rows, or working through the data in parts.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
