PDF Rotator
Rotate any PDF page 90, 180 or 270 degrees — per page or all at once. Visual thumbnails. 100% in your browser.
PDF Rotator
How to rotate a PDF
Add your PDF
Drag your file onto the dropzone or click to choose. Once it loads, each page appears as a thumbnail you can preview.
Rotate pages
Use the ↺ and ↻ buttons under each thumbnail to rotate that page 90° left or right. The thumbnail updates immediately so you can see what the output will look like.
Or rotate everything at once
Use the bulk buttons at the top: All −90°, All +90°, or All +180° to flip every page at the same time. Useful for sideways scans where every page needs the same correction.
Click Apply and download
pdf-lib bakes the rotations into a new PDF and saves it as {original}-rotated.pdf. The rotation is stored in the page metadata — the file size barely changes because no content is re-encoded.
PDF rotation — a metadata operation, not a re-render
Rotation is one of the few PDF operations that doesn't actually change the rendered content of the document. The PDF specification includes a /Rotate entry on each page object — a number that's either 0, 90, 180, or 270 — that tells the viewer to display the page rotated by that many degrees. Rotating a PDF "in place" doesn't re-encode any text or images; it just updates that small piece of metadata. Which is why this tool is so fast and produces output files that are within a few bytes of the input file size.
Why the rotation often looks "wrong" until you save
Most online PDF rotators show you the rotated thumbnail but then save a file that ignores the source PDF's existing rotation. The result: you see the page rotated correctly in the preview, then open the downloaded file and it's back to its original orientation, plus or minus 90 degrees. The trap is that PDFs can carry a non-zero base rotation from the scanner or office app that created them — your "rotate 90° right" is meaningless unless the tool reads the existing rotation first and adds your change on top. This tool reads the source rotation explicitly via pdf-lib's page.getRotation() API and applies your delta on top, so the visible result matches the saved result.
90% of "PDF rotated but my Mac Preview still shows it sideways" complaints are tools that ignore the source PDF's base rotation. Fixing that bug is the entire engineering decision behind this tool.
The APAC scanning landscape
PDF rotation is one of the most-requested document operations in Singapore and Hong Kong's government workflows (mass-scanned ID and passport documents often come out sideways), in Malaysia's and Indonesia's legal sectors (multi-page evidence bundles), and across Vietnam's and the Philippines' BPO industries (client deliverables scanned from desktop scanners that don't auto-rotate). The pattern is universal: cheap office scanners default to a fixed orientation, and rotating fixes are needed before sharing.
What this tool does — and what it doesn't
This rotator handles per-page and bulk rotation in 90° increments. It preserves the PDF's text content, embedded fonts, internal hyperlinks, and form fields. What it does not do: rotate text that's been pre-rendered as part of a scanned-image PDF (it rotates the page container, which works visually, but the underlying image is unchanged), apply non-90° rotations (the PDF spec only supports 0/90/180/270 in the page metadata), or auto-detect "which way is up" (true auto-rotate requires OCR — coming as a separate tool).
10 Things to Know About PDF Rotation
PDF rotation is stored as a single integer in the page metadata — only 0, 90, 180, and 270 degrees are valid in the spec.
Rotating a PDF doesn't re-encode any text or images — the output is within a few bytes of the input. Visual rotation in Acrobat by contrast re-renders, which is far slower.
Different pages in the same PDF can have different rotations. A 50-page bundle can have 40 portrait pages and 10 landscape pages baked into the metadata.
The PDF reader composes the final orientation by rotating the page content by the /Rotate value AND any viewer-level rotation. Tools that ignore the existing value double-rotate.
Form fields, hyperlinks, and annotations are positioned in the page's pre-rotation coordinate system. They move correctly with rotation without any additional changes.
Some scanners write rotation as an EXIF-style flag on the embedded image, not as a PDF page rotation. Those need OCR-based auto-detect to fix correctly.
The PDF/A archival standard restricts rotation to multiples of 90° — so this tool is compliant with PDF/A-1, A-2, and A-3 output requirements.
Rotating an encrypted PDF requires bypassing the page-modification restriction. pdf-lib's ignoreEncryption flag handles that for most permission-locked files.
Mobile PDF readers (iOS Books, Android Drive) all respect the PDF rotation metadata. Rotations done here will display correctly on phones, tablets, and desktop readers alike.
The pdf-lib library is 380 KB of MIT-licensed JavaScript. It handles every PDF operation Adobe Acrobat does — but does it locally, in your browser, for free.
FAQ
-
No. The pdf.js library renders thumbnails in your browser; pdf-lib applies the rotation in your browser. Your PDF is read into memory, modified in memory, and saved back to your downloads. Open DevTools → Network and watch — no outbound traffic.
-
Yes. The ↺ and ↻ buttons under each thumbnail rotate that specific page. The bulk buttons rotate everything at once. You can mix — bulk rotate everything 90° right, then ↺ individual pages back if a few were correct to begin with.
-
It shouldn't — that's the bug we explicitly engineered around. This tool reads the source PDF's base rotation and adds your changes on top, so the preview matches the output. If you see a mismatch, your PDF reader may be auto-rotating in addition — try opening the file in a different reader (Chrome, Firefox, Acrobat) to confirm.
-
Barely. Rotation is a metadata-only change — no content is re-encoded. Expect the output to be within a few bytes of the input, plus pdf-lib's small metadata overhead from re-saving.
-
Yes. A scanned PDF is just a PDF where each page contains a large embedded image. Page rotation rotates the entire page container, including the image, so the rotation works as expected. Your PDF viewer will display the scan in the new orientation.
-
Not supported — the PDF spec restricts page rotation metadata to 0, 90, 180, and 270 degrees. Free-form rotation requires re-rendering the page content, which is a different operation and produces much larger files.
-
Yes. Form fields, AcroForms, annotations, and internal hyperlinks all rotate with the page. The viewer applies the rotation as a transform — clickable regions remain at the correct positions relative to the visible page content.
-
Restriction-only protection is bypassed automatically via pdf-lib's
ignoreEncryptionflag. Open-password protection (required to view the file) is not — remove the password in Adobe Acrobat or macOS Preview first. -
No hard limit. Rendering 500+ thumbnails takes 10-30 seconds on a desktop browser. On mobile, keep the document under ~100 pages for a smooth preview experience. The rotation itself takes a fraction of a second regardless of page count.
-
Yes on iOS Safari and Chrome on Android. The thumbnail grid reflows to one or two columns on phone screens. Bulk-rotate buttons are the most efficient way to use this on mobile — tapping ↺/↻ for each thumbnail of a long document is tedious on touch.
Related News
You may be interested in these recent stories from our newsroom.
-
NEXTDC Opens Peninsular Malaysia's First Tier IV Data Centre with RM2.8 Billion KL1 Launch in Petaling Jaya
NEXTDC officially opened KL1 in Petaling Jaya on 14 May 2026 — an AUD$1 billion facility that holds Peninsular Malaysia's first Uptime Insti...
-
Indonesia's INA Locks In 30% Annual Allocation for AI and Data Centre Infrastructure
Indonesia's sovereign wealth fund INA has formalised a 30% annual cap on digital sector deployment, anchored by a joint venture with Singapo...
-
Microsoft Build 2026: Project Polaris Cuts Copilot's OpenAI Dependency, Copilot Workspace Ships to GA
Microsoft confirmed at Build 2026 in San Francisco that GitHub Copilot will run on Project Polaris — its own mixture-of-experts coding model...
75 more free tools
Calculators, converters, security tools — no signup.