Skip to content
Convertto

Split a Document into Retrieval Chunks

Chunk by tokens, sentences, paragraphs, a separator ladder or markdown headings — with overlap, token counts and embedding cost.

This chunker splits a document into retrieval-sized pieces using five strategies — a recursive separator ladder, sentence packing, paragraph packing, markdown heading sections, or fixed token windows — with configurable overlap. It reports the exact token count of every chunk, the size distribution, how much of the output is duplicated overlap, and what embedding the result would cost.

Runs in your browser
Common default
512 tokens with 64 tokens of overlap
Strategies
Recursive, sentence, paragraph, markdown and fixed
Privacy
Runs entirely in your browser — nothing is uploaded
Cost
Free, unlimited, no sign-up

Frequently asked questions

What chunk size should I use?

400–800 tokens suits most documents. Go smaller when queries are narrow and factual, larger when an answer needs surrounding context. The real test is your own retrieval evaluation — chunk size is the single parameter most worth tuning in a RAG system.

Why overlap at all?

Because a fact that straddles a boundary is unretrievable from either side. A definition at the end of one chunk and its use at the start of the next both score poorly against a query about the concept. Repeating 10–20% of the tokens fixes it cheaply.

Is my document uploaded?

No. Chunking and token counting both run in your browser, which matters because the documents people chunk are usually internal.

How to use the text chunker for rag

  1. 1Enter or paste your document.
  2. 2Choose the strategy.
  3. 3Set the chunk size.
  4. 4Set the overlap.
  5. 5Choose the count with.
  6. 6Set the drop chunks under.
  7. 7Choose the output as.
  8. 8Press Run, then download the result when it is ready.

Sources & specifications

Embed this tool

Put the working text chunker for rag on your own site. It runs in your visitors' browsers exactly as it does here — free, no account, nothing uploaded.

Share this tool

Last updated

More ai & llm tools