PDF Rotate Pages
Rotate all or selected PDF pages by 90, 180, or 270 degrees. Enter page ranges like "1,3,5-7" to rotate only specific pages — everything runs in your browser.
Reviewed by the ToolNestr Editorial Team — July 2026
How PDF page rotation works
PDF page rotation changes the displayed orientation of each page without modifying the underlying content. When you rotate a page by 90 degrees, the text, images, and vector graphics all remain exactly as they were — they are simply presented at a different angle. This is different from physically re-rendering the content; the PDF specification stores a rotation value per page that tells PDF readers how to display it, and modifying this value is what the tool changes.
The tool uses the pdf-lib JavaScript library to read the PDF file, access its internal page tree, and set a new rotation value for each selected page. The rotation value is stored in the PDF's page dictionary as an integer representing degrees clockwise: 90, 180, or 270. A value of 0 (or absent) means the page is in its natural orientation. Since rotation is a property of the page itself, it is respected by all PDF viewers including Adobe Acrobat, browser PDF viewers, and mobile document readers.
One important detail is that rotation is cumulative with any existing rotation already set on a page. If a page was scanned at a 90-degree angle and already has a rotation value of 270 degrees to correct it, applying another 90-degree rotation will produce a 360-degree rotation — effectively returning it to 0 degrees. The tool applies the rotation as an absolute new value, not an increment, so each page ends up at exactly the angle you select regardless of any pre-existing rotation.
A page through four rotation states
Common use cases for PDF rotation
Fixing scanned documents that came out sideways is the most frequent reason people reach for a PDF rotation tool. Scanners and multi-function printers sometimes misdetect page orientation, especially when scanning documents with mixed portrait and landscape pages. A stack of printed forms fed through an automatic document feeder might have every other page rotated 90 degrees because the original sheets were stapled at different orientations. Rather than re-scanning all the pages individually, you can upload the resulting PDF and rotate the misaligned pages in seconds without losing scan quality.
Correcting landscape pages in an otherwise portrait document is another everyday scenario. Presentation slides exported to PDF often come out in landscape orientation while the rest of the document (notes, appendices, or cover pages) remains in portrait. A single mixed-orientation PDF looks unprofessional when emailed to stakeholders or printed for a meeting. With the page range feature, you can select only the landscape pages and rotate them to portrait (or vice versa) without affecting the rest of the document, producing a consistent reading experience throughout.
Adjusting presentation slide decks exported from PowerPoint, Google Slides, or Keynote is a related use case. Sometimes slides export at the wrong orientation, especially when switching between 16:9 and 4:3 aspect ratios or when using presenter notes that get wrapped into the PDF output. A quick batch rotation of all pages by 90 degrees can salvage a deck that was exported incorrectly, saving you from re-exporting from the source application. This is particularly useful when you have already added annotations, bookmarks, or form fields to the PDF and want to preserve that work rather than starting from scratch.
E-book publishers and digital content creators use PDF rotation to optimise reading experiences across devices. A PDF formatted for desktop viewing might need all pages rotated to landscape for better tablet reading, or a book scanned in portrait might benefit from two-up landscape rotation for side-by-side reading on a widescreen monitor. The ability to rotate the entire document with a single click makes it practical to prepare the same content for different viewing environments without maintaining multiple source files.
Archivists and document digitisation teams processing large batches of scanned historical records often encounter pages with inconsistent orientation. Bound volumes scanned page by page may have fold-out pages, maps, or illustrations oriented differently from the main text. Using the custom page range input, an archivist can precisely target these outlier pages — for example, "12,45,78-82,120" — and rotate them individually without processing the entire document. This targeted approach is far more efficient than opening each page in a PDF editor and rotating it manually.
Tips for using page ranges
Page range syntax
Use comma-separated numbers and hyphens for ranges. For example, 1,3,5-7 selects pages 1, 3, 5, 6, and 7. Ranges are inclusive on both ends. The order of pages does not matter — they are always processed in document order.
Valid range examples
1 — single page, 1-10 — first ten pages, 5,10,15 — three specific pages, 1,3,5-7,10 — mixed single pages and a range, 1- — from page 1 to the end (not supported, use the total page count).
Invalid ranges are skipped
If a page number exceeds the total page count, it is silently ignored. Ranges that overlap or are out of order (e.g. 7-5) are corrected automatically. If every page in your range is invalid, no rotation occurs and the tool will show a warning.
Use "All pages" for bulk rotation
If every page in your PDF needs the same rotation, simply leave the selector on "All pages." This is faster and avoids the overhead of enumerating every page number in the range input.
How to use the PDF page rotator
Upload a PDF
Click the upload area and select the PDF whose pages you want to rotate.
Choose angle and pages
Pick 90, 180, or 270 degrees, and choose whether to rotate all pages or a custom range.
Download the rotated PDF
Click "Rotate → Download" and your reoriented PDF saves automatically.
| Use case | Typical angle | Pages affected |
|---|---|---|
| Scanned document rotated wrong | 90° or 270° | All pages or specific |
| Landscape page in portrait PDF | 90° | Specific pages only |
| Presentation slide deck correction | 90° or 180° | All pages |
| Tablet reading optimisation | 90° or 270° | All pages |
| Fold-out page in historical scan | 90° | Single page |
| Upside-down scan correction | 180° | All pages or specific |
Client-side processing with pdf-lib
This tool processes your PDF entirely in the browser using the pdf-lib JavaScript library. When you upload a file, it is read into memory on your device and never transmitted anywhere. The library loads the PDF structure, iterates through every page that matches your selection, and sets the new rotation value on each page's dictionary entry. The original content — text, images, fonts, annotations, form fields, and metadata — remains completely untouched.
The rotation operation is one of the fastest PDF modifications because it does not re-encode or re-render any page content. It simply changes a single integer value in the page object's dictionary. A 200-page PDF with dozens of high-resolution images takes roughly the same time to rotate as a 10-page text-only document because no content processing is involved. The save operation writes out a new PDF file with the updated rotation values applied.
Because everything runs client-side, there are no file size limits imposed by a server, no queue times, and no privacy concerns. Your document never appears in server logs, never gets cached in a cloud bucket, and never passes through a third-party API endpoint. Once you close the browser tab, all traces of your file are cleared from memory. This makes the tool suitable for sensitive documents including legal contracts, medical records, financial statements, and confidential business proposals.
Related tools
Frequently asked questions
Can I rotate specific pages only?
Yes — enter page ranges like "1,3,5-7" to rotate only specific pages. Leave it on "All pages" to rotate every page in the document.
Is the original file modified?
A new rotated PDF is downloaded; the original is never modified.
Does it work for scanned PDFs?
Yes — rotation works on the page level regardless of content type. Scanned pages, text pages, and mixed documents all rotate the same way.
Is my file uploaded?
No — everything runs in your browser using pdf-lib. Your file never leaves your device.
Can I undo a rotation?
Upload the rotated PDF and rotate it back by the complementary angle (e.g. 90° becomes 270°) to restore the original orientation.
What angles are supported?
90 degrees (clockwise), 180 degrees (upside down), and 270 degrees (counter-clockwise / 90 degrees anticlockwise).