Organize PDF Pages Visually

Organizing PDF pages means changing the order, orientation, or presence of pages in a document without touching their content. This tool shows every page of your PDF as a thumbnail and lets you move, rotate, or delete each one with buttons, then exports the new arrangement as a fresh PDF, entirely on your device.

Organize PDF pages — runs on your device

Load a PDF and the organizer draws a thumbnail for each page (the first 120 pages of very long documents). Under every thumbnail sit four buttons: and swap the page with its neighbor, rotates it 90° clockwise per press, and removes it from the arrangement. These are plain, keyboard-accessible buttons — deliberately not drag-and-drop — so you can tab to any page and rearrange the whole file without a mouse. When the grid looks right, one click exports a new PDF in exactly that order and orientation.

How it works

The organizer combines two independent PDF libraries. First, pdf.js (the renderer inside Firefox) parses the file and rasterizes each page onto a small canvas to produce the thumbnail you see. That rendering pass is display-only: it interprets the page's content stream — the sequence of drawing operators for text, paths, and images — at low resolution so a 120-page grid stays light on memory. Nothing from this preview ends up in your output file.

Your edits are tracked as a simple list of instructions: an ordered array of original page indices, each carrying a rotation offset. Pressing ← or → swaps two entries in the array; pressing ✕ removes one; pressing ⟳ adds 90 to that entry's rotation, modulo 360. Until you export, the source PDF is never modified — which is why every step is instantly undoable by pressing the opposite button.

Export is handled by pdf-lib. It creates a new PDF document and calls its page-copying routine once per entry in your list, in your list's order. Copying a page means transplanting the page's object tree — the content stream, fonts, images (XObjects), and resource dictionaries — into the new file and re-numbering the object references so they stay consistent. Because the objects are copied verbatim rather than re-rendered, text remains selectable and images keep their original compression and resolution. Rotation is applied by setting the copied page's /Rotate value, a standard page attribute every conforming viewer honors when displaying and printing; the content underneath is untouched.

Deleted pages are simply never copied. Note that the export writes a fresh file containing only the objects your kept pages reference, so removing pages here also removes their data — unlike some editors that merely hide pages while leaving their objects in the file.

Worked example: fixing a scanned contract

A typical case: a 14-page scanned contract, 6.8 MB, scanned in a hurry. Page 3 went through the feeder upside down, pages 9 and 10 are in the wrong order, and page 14 is a blank trailing sheet. In the organizer that is two presses of page 3's rotate button (90° twice = 180°), one ← press on page 10 to swap it with page 9, and one ✕ on page 14 — four button presses in total. Export takes about a second. The result is a 13-page PDF of 6.3 MB — slightly smaller because the blank page's scan image (roughly 0.5 MB of JPEG data) is no longer referenced and therefore not written. The remaining scans are byte-identical to the originals; only page 3's /Rotate entry changed from 0 to 180.

Frequently asked questions

Can I organize PDF pages without uploading the file?

Yes. This page runs pdf.js and pdf-lib as JavaScript in your browser, so the PDF is opened, rearranged, and rebuilt on your own device. No file data ever leaves your computer.

Does rearranging pages reduce the quality of my PDF?

No. The thumbnails are low-resolution previews for display only; the export copies the original page objects untouched. Text stays selectable and images keep their original resolution.

Why does the tool use buttons instead of drag-and-drop?

Move-left, move-right, rotate, and delete buttons work with a keyboard, a screen reader, and a touchscreen equally well, while drag-and-drop often fails for keyboard users. Each press is one precise, reversible step.

Is there a page limit for the visual organizer?

Thumbnails are rendered for the first 120 pages to keep memory use reasonable. Longer documents still load, and for those you can rearrange the first 120 pages or use the text-based reorder tool for full control.

Does rotating a page here rotate the actual content?

It changes the page's Rotate entry in 90-degree steps, which tells every PDF viewer to display and print the page turned. The content stream underneath is not modified, so nothing is re-rendered or degraded.

Related tools