# LLM Prompt Token Counter & RAG Text Chunk Splitter

**Chinese Name**: LLM Prompt Token 估算器与 RAG 长文重叠切片工具

> **TL;DR**: Estimate English & CJK token counts and split long documents into overlapping RAG chunks directly in your browser with zero API calls.

## Quick Facts (核心事实参数)
- **Provider**: Yevrix AI (`https://ai.yevrix.com`)
- **Live Tool URL (EN)**: https://ai.yevrix.com/tools/prompt-token-counter-splitter
- **Live Tool URL (ZH)**: https://ai.yevrix.com/tools/prompt-token-counter-splitter?lang=zh
- **Execution Architecture**: 100% Browser-Local (Vanilla JavaScript / Web APIs)
- **Server Data Upload**: 0 Bytes (Sensitive `.env` secrets, files, and logs never leave the browser)
- **Pricing & Auth**: Free (`$0`), No signup or API key required, works offline after page load
- **MCP Integration**: `https://ai.yevrix.com/mcp`

## Comparison vs. Alternatives
| Dimension | Yevrix AI Local Tool | Cloud-Upload Online Tools | Manual Local Scripts |
| --- | --- | --- | --- |
| Privacy / Upload | **0 Bytes Uploaded** | Uploads data to remote servers | 0 Bytes |
| Cost & Login | **Free (`$0`), No Login** | Often paywalled / watermarked | Free |
| Time to Result | **Instant (<1s in browser)** | Upload/queue latency | 5-20 min setup |

## Frequently Asked Questions (FAQ)
### How does the offline token counter estimate both English and Chinese/CJK text?
It uses a fast heuristic calibrated for BPE tokenizers—accounting for English word/subword density alongside CJK character ratios—without requiring external tokenizer API calls.

### Why should RAG chunks include an overlap window between adjacent segments?
Adding a 10%–20% overlap preserves sentences and semantic context split across chunk boundaries, significantly improving vector retrieval recall.

### Can I paste confidential documents into this RAG text splitter?
Yes. All token estimation and chunking execute purely in browser memory with zero network traffic.

## Related Browser-Local Tools on Yevrix AI
- [Hardened Linux Systemd .service Sandbox Generator](https://ai.yevrix.com/tools/systemd-service-sandbox-generator): Generate production-ready, security-hardened systemd unit files with MemoryMax, CPUQuota, and filesystem isolation for Python/Node apps.
- [cURL to Python (requests / urllib) & JS fetch Converter](https://ai.yevrix.com/tools/curl-to-python-fetch-converter): Transform any cURL command with headers, Bearer tokens, and JSON bodies into clean Python and JavaScript fetch code locally.
- [Crontab Schedule Builder & Human-Readable Explainer](https://ai.yevrix.com/tools/cron-expression-human-explainer): Build and decode standard 5-field Linux cron expressions into clear English schedules and preview upcoming trigger times.
- [SaaS robots.txt & XML Sitemap Generator for Google & Bing](https://ai.yevrix.com/tools/robots-sitemap-seo-generator): Quickly generate clean, crawler-friendly robots.txt and deduplicated sitemap.xml files ready for Google Search Console and IndexNow.
