devpocket.dev

Text Chunker for RAG

Preview RAG chunks by characters, estimated Tokens, separators, or Markdown headings.

Runs locally
Loading tool…

How to use

Paste a document, choose a strategy, then set chunk size and overlap. Approx. Tokens uses four characters per Token; it is a quick estimate, not model-specific tokenization. Recursive prefers paragraphs, lines, sentences, and spaces. Markdown headings keeps sections separate, then recursively splits any oversized section. Overlap is highlighted at the start of each chunk. Export the complete preview as JSON for pipeline experiments.

FAQ

What chunk size should I use for RAG?

Start around 300–800 estimated Tokens, then tune against retrieval quality and your embedding model limits.

Why add chunk overlap?

Overlap preserves context across boundaries, but too much duplicates indexed content and increases cost.

Related tools