This tool helps you break down long pieces of text into smaller chunks that are suitable for processing by Large Language Models (LLMs) like ChatGPT, Claude, etc., which often have input size limits.
1. Prompt Management (Optional)
- Save Prompts: If you frequently use the same instructions (prompts) with your text, you can save them here. Enter a Prompt Name and the Prompt Content, then click Save Prompt.
- Select & Use: Click on a saved prompt in the list to load its content into the "Prompt Content" box on the main page.
- Update/Delete: Click a saved prompt to load it. You can then modify the name or content and click Update. To delete, click the trash icon next to the prompt name.
- Limit: You can save up to 10 prompts.
- Storage: Saved prompts are stored locally in your web browser's storage (
localStorage
). They are not sent to any server.
2. Text Processing
- Input Text: Paste or type the long text you want to split into the Input Text area on the main page.
- Chunk Size: Specify the maximum desired size for each chunk in characters. The tool tries to split at natural breaks (like paragraphs) near this size. Note: The actual chunk size might vary slightly.
- Wrap with prompt tags: If checked, the content from the "Prompt Content" box will be added before each chunk, enclosed in
<prompt>
and </prompt>
tags. This is useful for giving the AI context or instructions for every piece of the split text.
- Character/Token Count: See the estimated character and token count of your input text. Tokens are how LLMs often measure text length (roughly 3-4 characters per token, but varies).
- Process Text: Click this button to split your input text based on the settings.
3. Output
- Chunks: The processed text appears on the main page, divided into numbered chunks.
- Counts: See the total number of chunks generated, and the total characters/tokens across all chunks.
- Expand/Collapse All: Show or hide the content of all chunks at once.
- Copy All: Copies the content of all chunks to your clipboard, formatted and ready to paste.
- Individual Chunk Controls: Click the header of a chunk to expand/collapse it. Use the copy icon within a chunk's header to copy only that chunk's content.
Understanding Chunks & Tokens
LLMs have limits on how much text they can process at once (context window). This tool splits your text below a specified character limit (Chunk Size
). We also show an estimated token count, as tokens are the actual units models use. By splitting text, you can feed long documents or conversations to an AI piece by piece.