BrowserLeaksUSBrowserLeaksUS

Content Chunker for LLMs

Split long content into retrieval-friendly chunks with headings, anchors, token estimates

Content

What this tool does

Splits a long article or documentation page into 150-300 word self-contained chunks with clear headings, URL anchors (kebab-case), and approximate token counts - optimized for LLM retrieval, embeddings, and Retrieval-Augmented Generation (RAG) pipelines.

Who it's for: Developers building RAG systems, knowledge bases, or embedding-based search; content strategists preparing text for vector databases.

When to use

  • •Prepare documentation for a custom ChatGPT knowledge base.
  • •Ingest articles into a vector database with consistent chunk sizes.
  • •Build a semantic search index over blog content.
  • •Create LLM-friendly support articles with stable anchor links.

How it works

  1. 1Paste 200+ characters of long-form content.
  2. 2AI splits the text at topical boundaries into self-contained chunks.
  3. 3Each chunk gets a heading, a kebab-case anchor, and a token estimate.
  4. 4Copy individual chunks or use the table of contents as navigation.

Tips

  • •Token estimates assume ~4 chars per token; actual count may vary by tokenizer.
  • •Publish each chunk with its anchor so LLMs can link to a specific section.
  • •Avoid chunks that reference earlier chunks - each should stand alone.

Using this output

How to read a chunked document

01

Why the splits landed where they did

The chunks are slices of your source aimed at retrieval: about 150 to 300 words, with a heading and, when possible, an anchor. A retrieval system that stuffs a whole article into one prompt wastes context. A system that splits every paragraph loses the point. The draft tries for the middle. Read each chunk as if it were the only text a model will see. If a chunk starts with 'this' or 'however' and never says what 'this' is, move the definition into that chunk or merge it with the previous one.

Token estimates are approximate counts for the model family the tool assumes. They are there so you can see a chunk that will blow a small context window. They are not a bill. A chunk just under the target is better than a chunk that hits the maximum by cutting a sentence in half. Headings should be unique. Two chunks titled Notes will be impossible to cite.

02

Anchors and what you should edit

The anchor is a fragment you can append to the canonical URL so a citation can point at the section. It only works if that id exists in the published HTML. If your page does not use those ids, either add them or strip the anchors before you hand the chunks to an index. Do not invent anchors the site will never serve.

Run chunking after the page is written, not before. Chunking a messy draft preserves the mess at a smaller scale. If you need the outline a model should follow, look at llms.txt Generator for the site-level index. This page is the in-document index. Keep code blocks whole when you can. A chunk that starts in the middle of a function is how wrong explanations get cited later by the Code Explainer.