Skip to content
tokentight Shrink Prompts. Lower Bills.

Fewer tokens in. Same code and logs out.

1,910 tokens58 tokens

tokentight strips comments, blank lines, and repeated log lines before your paste reaches an LLM. Nothing leaves your browser. Real, measured savings, not a flattering average.

Supports: Code • Logs • JSON • TXT • MD • PDF • DOCX • CSV

Console

idle
  • Reading document…
  • Removing redundancy…
  • Optimizing context…
  • Building AI package…

Choose Optimization Level

Standard Aggressive Hyper-Packed

Near-Duplicate Line Detection

Collapse scattered near-identical lines (not just consecutive runs) into a single marker with a repeat count. Logs and prose only - in structured formats, near-identical lines are usually genuinely different records

Original File
Original Tokens 0
Optimized Output
Optimized Tokens 0
Savings 0%

Counted with the same tokenizer OpenAI's GPT models use (cl100k_base). This is a real count, not an estimate. Other model families like Claude, Gemini, and Llama tokenize slightly differently, so treat this as a solid reference point, not an exact figure for every model.

Lifetime tokens saved on this device 0

What changed

Load a file or paste text to see what gets optimized.

Everything happens locally. Nothing leaves your device.

One real example, Hyper-Packed level

Before · 24 tokens

function greet(name) {
    // say hello to the user
    console.log("Hello, " + name);
}

After · 13 tokens

function greet(name){console.log("Hello, " + name);}

46% fewer tokens on this snippet. Commented, whitespace-heavy code does best; see for where this tool barely helps at all.