KitBench

Document Splitter

Split PDFs by exact page ranges or divide Markdown, TXT, HTML, and DOCX documents by headings or custom section markers into a ZIP.

Privacy Notice: Runs locally in your browser without uploading files to external servers or requiring an account.

Interactive Browser Workspace

Loading the interactive Document Splitter workspace. Enable JavaScript in your browser to run calculations and conversions locally.

How to Use Document Splitter

  1. Upload a PDF for exact page-range extraction, or upload/paste Markdown, TXT, HTML, or DOCX text.
  2. Choose splitting by # / ## headings or a custom divider marker such as ---.
  3. Preview detected sections and download all parts as a ZIP archive (or extracted PDF).

Methodology & Accuracy

Uses pdf-lib for exact PDF page slicing and deterministic heading/marker segmentation with JSZip bundling for reflowable text formats.

Examples

  • Split a 10-chapter Markdown handbook into 10 numbered files packaged inside a single ZIP.

Scope & Limitations

  • Reflowable formats like DOCX and Markdown do not have fixed print pages, so they split by structural headings or markers rather than page numbers.

Frequently Asked Questions

Why does DOCX split by headings instead of page numbers?

Word page breaks vary by installed fonts and printer margins; splitting by headings or markers guarantees clean section boundaries.

Can I download all split sections together instead of clicking one by one?

Yes. Split sections can be downloaded individually or packaged into a single ZIP archive with clear section filenames.

Does splitting alter the formatting inside each extracted section?

Paragraphs, headings, and lists inside each split chunk are preserved cleanly in the newly generated output files.

Related Tools

  • Document Merger - Combine multiple TXT, Markdown, HTML, DOCX, or PDF documents in your chosen order and download a merged PDF, DOCX, or Markdown file.
  • Split PDF - Split a PDF into individual single-page PDFs or custom page-range files in a ZIP archive.
  • Table of Contents Generator - Extract headings from Markdown or HTML documents to build indented tables of contents with anchor links in Markdown, HTML, or plain text.
  • Document Page Counter - Count exact PDF pages, PPTX slides, and XLSX sheets locally, plus stored or word-based page estimates for DOCX, Markdown, and TXT.