Split long text without losing its structure

Text Chunking Workbench

Cut documents into RAG-, translation- or review-ready chunks. See every chunk coloured over the text, with overlaps shaded, then export JSONL, CSV, ZIP and more. Exact reconstruction is verified every time.

  • Runs in your browser
  • 5 boundary strategies
  • Chars · words · ≈tokens
  • Lossless round-trip
Live result
0chunks
Waiting for text Sizes of every chunk, in order.
  • Source–
  • Average chunk–
  • Smallest / largest–
  • Overlap share–
  • ≈ Tokens total–

Source text

0 characters

Boundary strategy

Size & overlap

Up to 250,000 input characters and 2,000 chunks. Maximum: 100–20,000 characters, 1–20,000 words or 25–20,000 tokens. Overlap must be smaller. Jobs stop after 60 seconds; manifests up to 5 MB.

Presets

Compare strategies

Same text and size, every strategy. Click a row to switch.

StrategyChunksHard cutsSize spread

Restore a saved manifest

Rebuilds the exact source from offsets, checks overlaps agree and the SHA-256 hash matches.

Download & share

Data
Visual

GIF and video show the document being sliced into its chunks.

Chunk map

chunk colouroverlaphard cut

Loading the sample…

Size distribution

Chunks

Offset table (UTF-16 ranges)
ChunkUTF-16 range (end excluded)Code pointsText

How to chunk and restore text

  1. Paste or open text. Choose a boundary strategy, a size unit, a maximum and an overlap.
  2. The map colours each chunk over the source; striped areas are overlaps repeated in the next chunk; a red tick marks a hard cut where no boundary fitted.
  3. Download chunks as JSONL for embeddings, CSV for spreadsheets, a ZIP of .txt files plus the manifest, or a visual PDF, GIF or video.
  4. Restore a manifest to check overlap consistency and its UTF-8 SHA-256 hash, then download the reconstructed text.

Chunking never trims whitespace or changes line endings. Size counts Unicode code points; words count whitespace-separated runs; tokens are an estimate of 4 characters per token, not a model tokenizer. Overlaps intentionally duplicate text, so use manifest offsets (not concatenation) for reconstruction. The manifest contains the whole text; treat it as sensitive as the source.

Related: Text Line Wrapper · UTF-8 Byte Offset Inspector · Binary File Splitter

Using Text Chunking Workbench

Split long text into bounded, overlapping sections and preserve enough information to reconstruct it exactly.

  1. Paste or open text, or load the sample document.
  2. Choose a boundary strategy (headings, paragraphs, sentences, words or exact characters), a size unit (characters or estimated tokens), a maximum and an overlap, or use a preset such as RAG 256 tokens.
  3. Chunk & verify. The map colours each chunk over the source; striped areas are overlap repeated in the next chunk, and a red tick marks a hard cut where no boundary fitted.
  4. Download JSONL for embeddings, a manifest, CSV, TXT, Markdown, a PNG map, PDF, GIF or video, or a ZIP. Restore a saved manifest to check it and download the reconstructed text.

Example

Load the sample document and pick the RAG 256 tok preset.
Compare strategies shows how headings, paragraphs and sentences split the same text.

Questions & answers

Are token counts exact?

No. The token unit is an estimate of four characters per token, which is close for English prose. Exact counts depend on each model's tokenizer.

Can chunks rebuild the original?

Yes. The manifest keeps each chunk's offsets and text. Restoring it checks the overlaps and a SHA-256 hash of the text, then rebuilds the original.

What happens to very long paragraphs or sentences?

When no boundary of the chosen kind fits, the chunk is cut at the size limit and the map marks the hard cut in red.

Does the manifest contain my text?

Yes. It includes every chunk, so treat manifests and ZIPs as sensitively as the original text. Nothing is stored automatically.

Help improve this tool

Report a problem or suggest an improvement

Describe the issue without pasting private tool input. Feedback goes to our admin inbox.

Find another tool · Read practical guides