RAG Text Chunker
Split Markdown or text into retrieval-ready chunks by headings, words or characters — with overlap and metadata, in your browser
Input
Sections split at heading boundaries; any section larger than the max is further split by characters.
Examples
Split by Markdown headings
# API Reference
Base URL: …
## Authentication
Use a bearer token.
## Errors
Returns JSON.
→ 3 chunks:
[0] API Reference
[1] API Reference > Authentication
[2] API Reference > ErrorsEach heading starts a new chunk; the source path keeps the hierarchy so retrieval knows where a chunk lived.
Fixed size with overlap
Strategy: fixed-words · max 200 · overlap 30
→ adjacent chunks share their last/first 30 words, smoothing context transitions.Overlap prevents a concept that straddles a boundary from being split across two unrelated chunks.
Export for embeddings
[
{ "index": 0, "heading": "Intro", "content": "…", "tokens": 128 },
{ "index": 1, "heading": "Setup", "content": "…", "tokens": 95 }
]Download the chunks as JSON — index, heading, content and token estimate — ready for a vector database.
About this tool
RAG Text Chunker runs entirely in your browser on DevTools — no signup, no upload.
What this tool does not do
- RAG Text Chunker is a free in-browser utility, not a hosted API, and keeps no server-side history.
How to use this tool
Using RAG Text Chunker
Open RAG Text Chunker, enter or paste your input, and copy the result.
Related guides
Related tools
Agent Tool Flowchart Builder
Design agentic tool-call DAGs with decision branches and bounded loops. Validates reachability, cycle handling, and emits clean Mermaid flowcharts — fully in your browser.
AI Agent Memory & Buffer Simulator
Compare sliding window, summary buffer, and vector memory strategies
AI API Client SDK Generator
Generate typed API client SDK files from OpenAPI specifications or cURL requests
AI Code Explainer
Explain code snippets with grounded cloud AI
AI Code Security Auditor
Scan source code for high-confidence OWASP Top 10 vulnerabilities
AI Code Translator
Translate code into idiomatic implementations in another language