What Is the RAG Chunk Simulator?
The RAG Chunk Simulator is a free browser tool that shows how your text will be split into chunks before it is embedded and stored in a vector database. You paste your document, choose a chunking strategy and settings (chunk size, overlap), and the simulator displays every chunk with its token count so you can tune your RAG pipeline before writing code.
- Input: raw text + chunking parameters
- Strategies: Fixed Size, Sentence, Paragraph, Recursive
- Output: visual chunk previews with token counts and overlap highlighting
- Processing: all local in browser, no text sent to any server
- Free, no sign-up required
How to Use the RAG Chunk Simulator
Paste your source text
Type or paste your document, article, or any text into the input area. The stats bar shows character and estimated token counts in real time.
Choose a chunking strategy
Select Fixed Size, Sentence, Paragraph, or Recursive. Each strategy splits text differently — fixed cuts at token boundaries, others respect linguistic units.
Set chunk size and overlap
Adjust the chunk size slider (in tokens) and the overlap slider. Overlap determines how many tokens are shared between consecutive chunks.
Inspect the chunk previews
Review each chunk with its token count. Green highlights indicate overlapping content shared with the adjacent chunk.
500-Token vs 1000-Token Chunks: Trade-offs
Chunk size is one of the most impactful parameters in a RAG pipeline. Here is how the two most common sizes compare on the same document:
- Higher retrieval precision — smaller, focused passages
- More chunks to embed and store
- May split mid-concept at arbitrary boundaries
- Lower per-query token cost when retrieving top-K chunks
- More context preserved per retrieval — fewer boundary splits
- Fewer chunks, lower embedding storage cost
- May retrieve irrelevant content alongside the relevant passage
- Higher per-query token cost when retrieving top-K chunks
Use Cases
Visualize how different chunk sizes split your actual documents before writing embedding or retrieval code.
See how Fixed Size, Sentence, Paragraph, and Recursive strategies produce different chunk boundaries on the same text.
Visualise exactly where your text splits to find mid-concept cuts that cause the retriever to return incomplete or irrelevant passages.
Total chunks × average tokens per chunk gives you the embedding token count — multiply by your provider's per-token price to estimate ingestion cost.
Frequently Asked Questions
RecursiveCharacterTextSplitter.