# PDF Rotate Pages > Rotate all or specific pages in a PDF by 90, 180, or 270 degrees. **Category:** Media **Keywords:** pdf, rotate, pages, orientation, landscape, portrait, turn **URL:** https://complete.tools/pdf-rotate ## How it works The tool uses the pdf-lib library to parse the PDF file structure directly in your browser. When you upload a PDF, the tool reads the binary data and extracts the page tree, which contains each page's properties including its current rotation value. PDF pages store rotation as a dictionary entry that can be 0, 90, 180, or 270 degrees. When you apply a rotation, the tool adds your selected angle to each target page's existing rotation value, then takes the result modulo 360 to get the final orientation. For specific page selection, the tool parses your input string to handle individual page numbers, comma-separated lists, and hyphenated ranges. The modified PDF is then serialized back to binary format and offered as a download. Because rotation is a metadata-level change rather than a content transformation, the output file is virtually identical in size to the original. ## Who should use this Office administrators who receive scanned documents with inconsistent page orientations. Legal professionals who need to correct exhibit pages before filing with courts. Students who scan handwritten notes and need to fix sideways pages. Real estate agents who combine property documents from multiple scanners. Accountants who receive financial statements with mixed portrait and landscape pages that need standardization. ## Worked examples Example 1: A legal assistant scans a 45-page contract but pages 12 through 18 are landscape tables that came through rotated 90 degrees clockwise. They upload the PDF, select "Specific Pages," enter "12-18" in the page range field, choose 270 degrees rotation, and download the corrected document. All 7 landscape pages are now properly oriented while the remaining 38 pages stay untouched. Example 2: A student photographs 30 pages of lecture notes with their phone held sideways. The resulting PDF has every page rotated 90 degrees. They upload the file, select "All Pages" with 270 degree rotation, and download the corrected PDF in about 2 seconds. The entire document is now readable in standard portrait orientation. Example 3: An architect receives a 120-page building plan PDF where pages 1-5 (cover sheets) are portrait and pages 6-120 (floor plans) are landscape. The client needs everything in landscape. The architect selects pages "1-5" and applies a 90 degree rotation, converting just the cover sheets to landscape while leaving the floor plans unchanged. ## Limitations This tool rotates pages at the metadata level, which means the content dimensions stay the same and viewer software interprets the rotation flag. Some very old PDF viewers may not respect the rotation metadata correctly. Password-protected PDFs must be unlocked before rotation can be applied. The tool processes the entire PDF in browser memory, so very large files (over 200 MB) may cause performance issues or browser memory limits. Page content is not reflowed after rotation, so text that was formatted for portrait will appear in a landscape frame without re-wrapping. The tool cannot rotate individual elements within a page, only entire pages. ## FAQs **Q:** Does rotating a PDF change its file size? **A:** No. Rotation is stored as a small metadata value on each page, so the file size remains virtually identical. The actual page content, images, and fonts are not modified. **Q:** Can I rotate pages that already have a rotation applied? **A:** Yes. The tool adds your selected angle to the existing rotation. If a page is already rotated 90 degrees and you apply another 90 degrees, the result will be 180 degrees. **Q:** What happens if I enter invalid page numbers? **A:** The tool validates your input against the actual page count. Page numbers outside the valid range are ignored, and you will see a warning if no valid pages are found. **Q:** Is my PDF uploaded to a server? **A:** No. All processing happens locally in your browser using JavaScript. Your file never leaves your device, making this tool safe for confidential documents. --- *Generated from [complete.tools/pdf-rotate](https://complete.tools/pdf-rotate)*