PDF Organize Pages
Reorder, move, and rearrange PDF pages with drag-and-drop. Visual page thumbnails for easy organization. All processing in your browser.
How to Use
Organize PDF pages in four steps:
- Upload your PDF — Drag and drop or click to browse. The tool renders thumbnail previews of every page directly in your browser.
- Rearrange pages — Use the arrow buttons to move pages up or down in the order. Click Reverse Order to flip the entire document.
- Rotate or delete pages — Click the rotate button to turn individual pages 90° clockwise. Click the delete button to remove unwanted pages (you can undo this before processing).
- Save and download — Click Organize Pages to build the new PDF. Download the reorganized document when processing completes.
All processing runs in your browser using pdf-lib and PDF.js. No files leave your device.
About This Tool
Page organization is one of the most common PDF editing tasks. Whether pages were scanned in the wrong order, a section needs to be moved, or blank pages need removal, this tool provides a visual interface for restructuring PDF documents without specialized software.
How pdf-lib copies and reorders pages
The tool creates a new empty PDF document and uses copyPages() to transfer selected pages from the source document in the desired order. This method preserves all page content — text, images, annotations, form fields, and embedded fonts — by copying the complete page object tree. Unlike approaches that rasterize pages, copyPages() maintains full vector fidelity and text searchability.
Page rotation in the PDF specification
PDF pages have a /Rotate entry in their page dictionary that specifies a clockwise rotation in degrees. Valid values are 0, 90, 180, and 270. This rotation is applied by the PDF viewer at render time — the actual page content stream remains unchanged. This means rotation is non-destructive and can be reversed without any quality loss. The tool uses page.setRotation(degrees(90)) to set this value after copying.
Thumbnail generation with PDF.js
Page thumbnails are rendered using Mozilla's PDF.js library. Each page is rendered to a small canvas element (150 pixels wide, height proportional) at a reduced scale factor. The canvas is then converted to a data URL via canvas.toDataURL('image/jpeg', 0.7) for efficient memory usage. For large documents, thumbnails are generated progressively — visible pages first — to keep the interface responsive.
Page tree structure and cross-references
A PDF document organizes pages in a tree structure where the root /Pages node contains references to individual /Page objects. Page order is determined by the order of these references, not by the physical byte position in the file. When pdf-lib adds copied pages via addPage(), it appends them to the page tree in the calling order. Shared resources like fonts and images are de-duplicated automatically — if multiple pages reference the same font, only one copy is stored.
All processing happens client-side in your browser. For extracting specific pages into a separate file, use PDF Extract Pages. To merge pages from multiple PDFs, try PDF Merge. To remove only blank pages automatically, use Remove Blank Pages.
Why Use This Tool
Reorganizing PDF pages addresses common document management challenges:
- Scan correction — Documents scanned in the wrong order, or with pages accidentally skipped and re-scanned at the end, need reordering to match the original document structure.
- Presentation assembly — Combining slides from multiple presentations requires reordering pages to create a coherent narrative flow.
- Legal document preparation — Court filings, contracts, and discovery documents require specific page ordering. Exhibits must follow a prescribed sequence, and extraneous pages must be removed.
- Portrait/landscape correction — Scanned documents often contain pages in mixed orientations. Individual page rotation corrects display without re-scanning.
- Blank page removal — Duplex scanning frequently produces blank backs. While Remove Blank Pages automates this, manual deletion gives precise control over which pages to keep.
- Report customization — Removing irrelevant sections from a standard report before sharing with specific stakeholders ensures recipients see only relevant content.
Processing locally is critical for document reorganization — the files being edited often contain confidential business, legal, or personal information that should never be uploaded to third-party servers.