Scrapers / Developer & File Tools

Text Splitter & Chunker for RAG / LLM Embeddings
hipersoft/text-splitter-chunker
Split long text into clean overlapping chunks for RAG, vector embeddings and LLM pipelines. Recursive boundary-aware or fixed-size splitting, by characters, words or approx tokens, with adjustable overlap. Each chunk includes char/word/token counts and offset. Output JSON, CSV or Excel.
Total users
2Monthly users
1Total runs
41Per chunk created
$0.0002Last rebuilt
Oct 26, 2026Overview
Split long text into clean, overlapping chunks ready for RAG (retrieval-augmented generation), vector embeddings and LLM pipelines with the Text Splitter & Chunker. Paste an article, document or transcript and get back well-sized chunks — by characters, words or approximate tokens — with adjustable overlap, exported as JSON, CSV or Excel.
Chunking is the first step of almost every AI knowledge base, semantic search and chatbot build: documents must be broken into pieces that fit an embedding model's context and retrieve cleanly. This tool does exactly that, with no setup and no code.
What it does
- ✂️ Smart recursive splitting — keeps paragraphs, sentences and words intact wherever possible, so chunks stay readable and meaningful.
- 📏 Size in your unit — set chunk size in characters, words or approximate tokens (~4 chars each).
- 🔁 Overlap control — carry a slice of the previous chunk into the next so context isn't lost at the seams (standard practice for RAG).
- 🧱 Fixed-size mode — need exact, uniform chunks? Switch to a hard fixed-size split.
- 🗂️ Batch documents — chunk many texts in one run; each is chunked independently and labelled by document.
- 📊 Useful metadata — every chunk includes character, word and approximate token counts plus its start offset.
- 📤 Export anywhere — JSON, CSV or Excel, ready to feed into an embedding step, a vector database, or an n8n / Make / Zapier workflow.
Example output
{
"documentIndex": 0,
"index": 2,
"text": "…the second half of the section, kept whole at a sentence boundary…",
"charCount": 812,
"wordCount": 137,
"approxTokens": 203,
"startOffset": 1588,
"unit": "tokens",
"strategy": "recursive"
}
How to use it
- Paste your text (or add several texts in the list).
- Choose a chunk size and overlap, and the unit (characters, words or tokens).
- Pick a strategy — Recursive (recommended) or Fixed.
- Run, and download the chunks as JSON, CSV or Excel.
Tip for embeddings: a common starting point is ~800–1,000 tokens per chunk with ~100–200 tokens of overlap. Smaller chunks improve retrieval precision; larger chunks keep more context per chunk.
Input fields
| Field | Description |
|---|---|
| Text | The text to split. |
| Multiple texts | Optional list of separate documents to chunk in one run. |
| Chunk size | Target maximum size of each chunk, in the chosen unit. |
| Chunk overlap | How much each chunk overlaps the previous one. |
| Size unit | Characters, words, or approximate tokens. |
| Split strategy | Recursive (boundary-aware) or Fixed size. |
| Trim whitespace | Trim each chunk's leading/trailing whitespace. |
| Max chunks | Maximum number of chunks to output (0 = no limit). |
Output fields
documentIndex, index, text, charCount, wordCount, approxTokens, startOffset, unit, strategy, collectedAt.
Popular use cases
- RAG knowledge bases — chunk docs before embedding for a chatbot or assistant.
- Vector search — prepare uniform, overlapping passages for a vector database.
- LLM context prep — break long inputs into model-sized pieces.
- Semantic search indexing — split articles and manuals into retrievable passages.
- Workflow automation — a chunking step inside an n8n, Make or Zapier pipeline.
- Dataset preparation — turn raw documents into a clean chunk dataset for ML.
FAQ
Do I need an account or key? No. Paste your text, choose the settings, and run.
How are tokens counted? Token counts are an estimate using the common ~4-characters-per-token heuristic for English. They're ideal for sizing chunks to an embedding model without exact tokenizer setup.
What does "recursive" splitting mean? It tries to split on the largest natural boundary first (paragraphs), then lines, sentences and finally words — so chunks rarely cut a sentence in half. Fixed mode cuts at exact sizes instead.
Why use overlap? Overlap repeats a little context between neighbouring chunks so that answers spanning a boundary are still retrievable. It's a standard RAG technique.
Can I export to Excel or Google Sheets? Yes — results download as JSON, CSV or Excel and integrate with Sheets, vector databases and automation tools.
Turn long documents into clean, overlapping, embed-ready chunks — boundary-aware, sized your way, and exported for any RAG or LLM pipeline.
Input
| Field | Type | Description |
|---|---|---|
textText | string | The text to split into chunks. Paste an article, document or transcript here. For multiple documents, use the list below. |
textsMultiple texts | array | Optional — a list of separate texts/documents to chunk in one run. Each is chunked independently. |
chunkSizeChunk size | integer | Target maximum size of each chunk, in the unit chosen below. Default: 1000 |
chunkOverlapChunk overlap | integer | How much each chunk overlaps the previous one (same unit). Overlap preserves context across chunk boundaries — common for RAG. Default: 100 |
unitSize unit | string · characters, words, tokens | Measure chunk size in characters, words, or approximate tokens (~4 chars each). Default: "characters" |
strategySplit strategy | string · recursive, fixed | Recursive keeps paragraphs/sentences/words intact where possible (recommended). Fixed cuts at exact sizes. Default: "recursive" |
trimTrim whitespace | boolean | Trim leading/trailing whitespace on each chunk. Default: true |
maxItemsMax chunks | integer | Maximum number of chunks to output (0 = no limit). Default: 0 |
API
curl -X POST "https://api.apify.com/v2/acts/hipersoft~text-splitter-chunker/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"text": "Apify is a cloud platform for web scraping and browser automation. Developers build Actors that extract structured data from websites, monitor prices, and feed machine learning pipelines. In 2024 the company expanded its Store with thousands of ready-made tools used by businesses in Europe, North America and Asia.Apify is a cloud platform for web scraping and browser automation. Developers build Actors that extract structured data from websites, monitor prices, and feed machine learning pipelines. In 2024 the company expanded its Store with thousands of ready-made tools used by businesses in Europe, North America and Asia.Apify is a cloud platform for web scraping and browser automation. Developers build Actors that extract structured data from websites, monitor prices, and feed machine learning pipelines. In 2024 the company expanded its Store with thousands of ready-made tools used by businesses in Europe, North America and Asia.",
"texts": []
}'from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("hipersoft/text-splitter-chunker").call(run_input={
"text": "Apify is a cloud platform for web scraping and browser automation. Developers build Actors that extract structured data from websites, monitor prices, and feed machine learning pipelines. In 2024 the company expanded its Store with thousands of ready-made tools used by businesses in Europe, North America and Asia.Apify is a cloud platform for web scraping and browser automation. Developers build Actors that extract structured data from websites, monitor prices, and feed machine learning pipelines. In 2024 the company expanded its Store with thousands of ready-made tools used by businesses in Europe, North America and Asia.Apify is a cloud platform for web scraping and browser automation. Developers build Actors that extract structured data from websites, monitor prices, and feed machine learning pipelines. In 2024 the company expanded its Store with thousands of ready-made tools used by businesses in Europe, North America and Asia.",
"texts": []
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item)import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('hipersoft/text-splitter-chunker').call({
"text": "Apify is a cloud platform for web scraping and browser automation. Developers build Actors that extract structured data from websites, monitor prices, and feed machine learning pipelines. In 2024 the company expanded its Store with thousands of ready-made tools used by businesses in Europe, North America and Asia.Apify is a cloud platform for web scraping and browser automation. Developers build Actors that extract structured data from websites, monitor prices, and feed machine learning pipelines. In 2024 the company expanded its Store with thousands of ready-made tools used by businesses in Europe, North America and Asia.Apify is a cloud platform for web scraping and browser automation. Developers build Actors that extract structured data from websites, monitor prices, and feed machine learning pipelines. In 2024 the company expanded its Store with thousands of ready-made tools used by businesses in Europe, North America and Asia.",
"texts": []
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);Pricing
| Event | Price | Paid plans from |
|---|---|---|
| Chunk created Charged for each text chunk produced. | $0.0002 | $0.0001 |
You pay only for what the run returns. Set a maximum cost per run and it stops cleanly at that limit.
Related scrapers
Bulk Image Downloader
Download thousands of images from a list of URLs and store each in the key-value store with a public link. Returns content type, size, dimensions and SHA-256 per image. Bulk-ready. Great for datasets, backups and media pipelines.
8,102 runs · 103 users · $0.056 / url processedText to Speech
Convert any text to natural-sounding speech as an MP3 download. 300+ premium neural voices across 70+ languages, adjustable rate, pitch and volume. Great for voiceovers, videos, accessibility and audio content. No setup.
278 runs · 22 users · $0.01 / audio generatedGoogle Maps Email Extractor
Search Google Maps for businesses, then crawl each business website to extract emails, social profiles and extra phone numbers. Turns any Maps search into a ready lead list. No setup.
159 runs · 8 users · $0.006 / business lead scrapedWebsite Screenshot
Capture full-page or viewport screenshots of any URL as PNG or JPEG, at any device size. For monitoring, previews, thumbnails and automation workflows.
156 runs · 3 users · $0.004 / screenshot capturedBulk URL Status Checker
Check thousands of URLs over plain HTTP: status codes, broken links (404/410/5xx), full redirect chains, response time, content type, page title and SSL certificate expiry.
154 runs · 13 users · $0.002 / url checkedGoogle Search Scraper
Scrape Google Search results (organic listings) for any query: title, URL, displayed URL, snippet and position. Multi-query, per-country/language, pagination. Uses Google SERP proxy — reliable, no captcha, no setup.
121 runs · 8 users · $0.001 / result scrapedSend the site and the fields. We build it and you get it first.