482 scrapers live47.7K runs1,562 usersRebuilt in the last 30 days: 482 of 482

Scrapers / Developer & File Tools

Text Splitter & Chunker for RAG / LLM Embeddings logo

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

2

Monthly users

1

Total runs

41

Per chunk created

$0.0002

Last rebuilt

Oct 26, 2026

Overview

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

  1. Paste your text (or add several texts in the list).
  2. Choose a chunk size and overlap, and the unit (characters, words or tokens).
  3. Pick a strategy — Recursive (recommended) or Fixed.
  4. 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

FieldTypeDescription
text
Text
stringThe text to split into chunks. Paste an article, document or transcript here. For multiple documents, use the list below.
texts
Multiple texts
arrayOptional — a list of separate texts/documents to chunk in one run. Each is chunked independently.
chunkSize
Chunk size
integerTarget maximum size of each chunk, in the unit chosen below.
Default: 1000
chunkOverlap
Chunk overlap
integerHow much each chunk overlaps the previous one (same unit). Overlap preserves context across chunk boundaries — common for RAG.
Default: 100
unit
Size unit
string · characters, words, tokensMeasure chunk size in characters, words, or approximate tokens (~4 chars each).
Default: "characters"
strategy
Split strategy
string · recursive, fixedRecursive keeps paragraphs/sentences/words intact where possible (recommended). Fixed cuts at exact sizes.
Default: "recursive"
trim
Trim whitespace
booleanTrim leading/trailing whitespace on each chunk.
Default: true
maxItems
Max chunks
integerMaximum 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": []
}'

Pricing

EventPricePaid 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 processed

Text 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 generated

Google 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 scraped

Website 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 captured

Bulk 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 checked

Google 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 scraped
Need a source that isn't here?

Send the site and the fields. We build it and you get it first.

Request a build