Go to example tasks

RAG Text Chunker (Markdown to Chunks, Token Counts)

Split Markdown or text into RAG-ready chunks with exact OpenAI token counts (o200k/cl100k): heading-aware, code blocks kept whole, sentence-boundary overlap, heading path on every chunk. Chunks any dataset from Website to Markdown, PDF to Markdown or your own texts.

Try for free
RAG Text Chunker (Markdown to Chunks, Token Counts)
RAG Text Chunker (Markdown to Chunks, Token Counts)webdatatools/rag-text-chunker
Document
#
Section
Tokens
+1 field
Text
Number
Boolean
List
Object

Input

Texts:# Guide First section text. ## Details More text here.
Chunk size (tokens):500
Overlap (tokens):50
Tokenizer:o200k_base
Start a chunk at each section:true
Section heading level:2
Heading path in chunk text:true

Output fields

Document
#
Section
Tokens
Text

How it works

Sign up on Apify01

Create your Apify account to access the RAG Text Chunker (Markdown to Chunks, Token Counts).

Start the run02

The Actor will start running based on the input automatically.

Receive the output03

Monitor the progress in real-time. You will be notified as soon as your dataset is complete and ready for review.

Integrate into your workflow04

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow.

Image

Integrate Actor directly into your workflow

Choose from one of 100+ integration options we provide or integrate via API

Webhook

Webhook

n8n

n8n

Make

Make

Zapier

Zapier

Airbyte

Airbyte

Keboola

Keboola

IFTTT

IFTTT

Hubspot

Hubspot

GDrive

GDrive

Gmail

Gmail

Apify MCP

Apify MCP

GitHub

GitHub

Slack

Slack

LangChain

LangChain

LlamaIndex

LlamaIndex

Flowise

Flowise

Pinecone

Pinecone

OpenAI

OpenAI

Mastra

Mastra

Clay

Clay