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?
Why overlap at all?
Is my document uploaded?
How to use the text chunker for rag
- 1Enter or paste your document.
- 2Choose the strategy.
- 3Set the chunk size.
- 4Set the overlap.
- 5Choose the count with.
- 6Set the drop chunks under.
- 7Choose the output as.
- 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
Related tools
Embedding Similarity CalculatorPaste embedding vectors and get every pairwise cosine, dot product, Euclidean and Manhattan distance, ranked.Semantic Search & SimilarityEmbed a list of sentences with a real model and rank them by meaning — or find the near-duplicates in a list.Chat with Any DocumentAsk questions about a PDF, Word file, spreadsheet, CSV, Markdown or text file and get answers with the passage each came from.Chat with PDFAsk questions about any PDF and get answers with the page each one came from. The model runs in your browser — the file is never uploaded.Context Window CalculatorPaste a document and see which models it fits inside, how much of each window it fills, and what is left for the reply.AI API Cost CalculatorWork out what a prompt costs per call, per day and per month, and compare the same workload across every major model.
Last updated
More ai & llm tools