← Terse Blog
Output Costs

The Markdown Token Tax

By ·Founder, Terse·Updated

Markdown makes AI answers readable, but every formatting character is a billable token: headers, bold markers, bullet symbols, table pipes, code fences. In a long, heavily formatted response, syntax alone can be 8–12% of the output tokens. The rule of thumb: keep markdown for humans, strip it for machines.

Where the Tax Hides

Formatting characters are invisible to a reader skimming a nicely rendered answer, and very visible to the billing meter. The worst offenders:

On a long formatted answer, the difference is measurable: a response that is 4,200 tokens with full markdown formatting typically carries the same content in about 3,700 tokens as plain text. Across heavy output days that gap is worth roughly $90 a year — and more if formatted output gets fed back into the model, where it is billed again as input on every subsequent turn.

Keep Markdown for Humans, Strip It for Machines

The decision rule is about who consumes the output:

Small Data Doesn't Need a Table

A surprising share of the table tax comes from tables that never needed to exist. Two or three values do not need pipes and a separator row — a sentence is cheaper and just as clear:

Table (≈60 tokens):
| Metric  | Value |
|---------|-------|
| Latency | 42ms  |
| Errors  | 0.2%  |

Sentence (≈14 tokens):
"Latency 42ms, error rate 0.2%."

The same instinct applies to output you request: telling the model "answer in one paragraph, no headings" for a simple question routinely halves the response size. Verbose formatted output is also a compounding cost in agent history — the model re-reads its own decorations on every turn. This is the same economics that drives telegraph compression on the input side: strip what carries no meaning, keep everything that does. For how the tokenizer actually prices those # and | characters, see Tokenization 101.

Strip the Syntax Automatically

Terse's Aggressive mode removes markdown overhead from anything you feed back into a model — while never touching the code inside fences. On-device, free to start.

Download Terse

Frequently Asked Questions

How many tokens does markdown formatting add?

In long, heavily formatted responses, syntax characters — headers, bold markers, bullet symbols, table pipes, fences — typically account for 8-12% of output tokens. Tables and deeply nested lists are the biggest contributors.

Should I always ask AI models for plain text?

No. Keep markdown when a human reads the answer — formatting aids comprehension. Ask for plain text when the output feeds a script, a pipeline, or another prompt, where formatting is pure cost.

Does stripping markdown risk breaking code blocks?

Not with a rule-based stripper that treats fenced content as immutable. Terse simplifies the fences themselves but never modifies the code inside them — code, quoted strings, and URLs are protected regions.

Further Reading