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
Chunk Markdown or text by headings, words or characters with overlap and metadata for RAG. Export JSON. Free and client-side — no uploads. RAG Text Chunker runs in the browser on DevTools. There is no signup, and your input stays on this device unless the tool explicitly performs a live network lookup.
What this tool does not do
- RAG Text Chunker is a free in-browser utility, not a hosted API. It does not keep server-side history and is not a substitute for production verification in your own stack.
How do I use this tool?
How do I use RAG Text Chunker?
Open RAG Text Chunker, enter or paste your input, and copy the result. The page works without an account.
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