pipr.tools
Pipes
Clean Email Strip formatting from pasted email for clean plain text Clean AI Output Clean plain text from ChatGPT or AI output Decode & Format JWT Decode a JWT and pretty-print header and payload Word Frequency Count word frequency in text

Fit Context Window

Clean HTML and truncate to fit an LLM token budget

Analyze
Input523 chars
Output0 chars

Examples

Clean a documentation page to fit a 30-token LLM prompt

Usage
"<article><h2>Getting Started with React</h2><p>React is a Ja..." | html-to-text | squeeze | token-truncate --max=4096

Strip blog HTML and extra whitespace for an API summary call

Usage
"<div class="post"><span class="meta">Posted by admin &bull; ..." | html-to-text | squeeze | token-truncate --max=4096

Convert a status page table to clean text for an incident prompt

Usage
"<table><tr><th>Name</th><th>Status</th></tr><tr><td>API Gate..." | html-to-text | squeeze | token-truncate --max=4096