tokentrim
Local-first prompt preparer

Less noise.
More signal.

Redact secrets, compress repetitive logs, and turn scattered files into a clean prompt — before a single byte reaches your model.

100% offline Zero dependencies No uploads, ever

Prompt workbench

RUNNING IN YOUR BROWSER
Input0 chars
Drop files to build a promptText, code, logs, Markdown & JSON · click to browse
Clean prompt
Before tokens
—
After tokens
—
Tokens saved
—
Size delta
—
Local heuristic estimate · not model-specific● Ready

Privacy pipeline

Redact sensitive data

Reduce noise

Strip ANSI color codes
Collapse consecutive duplicate logs
Minify valid JSON

File packing

Include line numbers
Files attached0

Plain, XML, and Markdown preserve file boundaries for clearer model context.

Your context stays yours. All processing happens locally in this browser tab. No server, analytics, CDN, font request, or network call. Disconnect your Wi-Fi and keep working.

A cleaner context in three steps.

Built for debugging, code review, and prompt engineering.

01 /

Bring the raw material

Paste a messy log or drop multiple source files. Text stays on your device from start to finish.

02 /

Trim what models don't need

Mask credentials and personal identifiers, remove terminal escapes, and flatten repeated noise.

03 /

Copy, pack, and prompt

Choose a prompt-friendly format, compare local token estimates, then copy or download the result.