PDF Chunker for RAG — Free Online Tool

Split PDF text into overlapping token-sized chunks for embeddings and RAG. PDF Chunker for RAG is a free online tool from the ToolsRift PDF Tools collection. It runs entirely in your browser — nothing to install, no signup, and your data never leaves your device.

Loading PDF Chunker for RAG

How to use PDF Chunker for RAG

Upload a PDF and set your chunk size and overlap in approximate tokens. The tool rebuilds paragraphs from the PDF, packs them into chunks that stay under your size limit, and carries the tail of each chunk into the next so context is never cut mid-idea. Export as .json or .jsonl.

Frequently asked questions

Why chunk a PDF?

Embedding models have a fixed context window, and retrieval quality drops when a chunk mixes unrelated topics. Chunking on paragraph boundaries with a small overlap keeps each chunk coherent and retrievable.

How are tokens counted?

Using the standard rough estimate of about four characters per token for English prose. It is an approximation — verify against your model's own tokenizer if you are close to a hard limit.

What chunk size should I use?

512 tokens with 50 tokens of overlap is a solid default for most embedding models. Use smaller chunks for precise fact retrieval and larger ones when answers need more surrounding context.

What is the difference between JSON and JSONL?

JSON gives one array of chunk objects. JSONL puts one chunk per line, which streams better and is what most vector-database loaders expect.

More PDF Tools

PDF Blank Page Inserter
Insert one or more blank pages into a PDF at any position, sized to match or A4/Letter
PDF Page Reverser
Reverse the order of all pages in a PDF so the last page becomes the first
PDF Page Duplicator
Duplicate a chosen PDF page one or more times, inserting the copies right after it
PDF Rotate Page Range
Rotate only specific pages of a PDF by page number or range, leaving the rest untouched
PDF 2-Up (2 Pages Per Sheet)
Place two PDF pages side by side on each sheet to save paper when printing
PDF 4-Up (4 Pages Per Sheet)
Arrange four PDF pages in a 2x2 grid on each sheet for compact handouts

← View all PDF Tools