PDF Rotator
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
The tool sets the /Rotate value of each page you turned and saves the file as {original}-rotated.pdf. No content is re-encoded or re-rendered, and pages you did not turn are left exactly as they were. The creation date and author are kept; the Producer field and modification date are updated. If you click Apply without turning anything, it tells you so instead of saving an identical copy.
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 — the number of degrees to turn the page clockwise when it is shown or printed, which "shall be a multiple of 90" (ISO 32000-1). Rotating in place re-encodes no text or images; it changes that number. The file is re-saved by pdf-lib, so its size can move a little either way: on 5 November 2026, turning every page of a 1,000-page, 1.07 MB test file changed it by 22 bytes.
Why the rotation often looks "wrong" until you save
A rotator that ignores the page's existing /Rotate value produces a familiar bug: 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 each page's effective rotation with pdf-lib, which follows the value up the page tree when the page has none of its own, and adds your turn to it, so the visible result matches the saved result. A value that is not a multiple of 90 is not allowed by the standard but does turn up; pdf.js, which draws the thumbnails, treats it as 0, and so does this tool, so the preview and the file still agree. Until 5 November 2026 such a value was rounded to the nearest 90 instead, and a page with /Rotate 45 was previewed upright and saved a quarter turn off.
A page can already be rotated before you touch it. Read that value first and add your turn to it, and the saved file matches the preview.
Why scans come out sideways
A flatbed or sheet-fed scanner writes each page the way the paper went in, so a landscape page fed portrait, or a sheet turned over, comes out sideways or upside down. Rotation fixes the page's orientation without re-scanning, and leaves any text layer the scanner's OCR added intact.
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, form fields and bookmarks, because it changes the original document rather than copying its pages. 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 allows multiples of 90 in the page metadata), or auto-detect "which way is up", which needs OCR.
One integer in the page metadata, and why rotating re-encodes nothing
PDF rotation is stored as a single integer, /Rotate, which ISO 32000-1 says "shall be a multiple of 90" — clockwise, default 0. So −90 and 450 are legal too; they mean 270 and 90.
Turns add up and wrap: a page already at 90° turned left 90° is saved at 0°, not 360°, and its card shows "−90° → 0°".
/Rotate is inheritable: a page with no value of its own takes its parent's, so a tool has to read the effective value before adding to it. Pages you leave alone keep inheriting it.
A page scanned upside down has its image upside down: rotating the page turns the image with it, but nothing in the file says which way is up.
Rotation needs no new content, so the page's text stays selectable and searchable after turning — unlike re-scanning or flattening.
An encrypted file cannot be rotated here — including one that opens without a password but restricts printing or editing, because its contents are still encrypted. Remove the protection first; this tool does not remove it for you.
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: the only requests are for the tool's own scripts and pdf.js's character maps, from this domain, and none of them carries your file.
-
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. The tool reads each page's existing rotation the way pdf.js, which draws the thumbnails, reads it, and adds your turn on top, so the thumbnail shows what is saved. The one case where readers can genuinely disagree is a page whose stored /Rotate is not a multiple of 90, which the standard does not allow: pdf.js and this tool treat it as 0, and turning that page writes a legal value. If you see a mismatch on an ordinary file, open it in a second reader to check, and report it.
-
Barely. Rotation changes one number per page — no content is re-encoded. Re-saving through pdf-lib can move the size slightly either way: turning every page of a 1,000-page, 1.07 MB test file on 5 November 2026 changed it by 22 bytes.
-
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 standard requires a page's /Rotate to be a multiple of 90, which comes down to 0, 90, 180 or 270 degrees. Any other angle means redrawing the page content inside a transformed frame, a different operation that this tool does not do.
-
Yes. The tool edits the document you loaded rather than copying its pages, so form fields, annotations, internal hyperlinks and bookmarks all stay, and they turn with the page because the viewer applies the rotation to the whole page. The exception is by design: an annotation flagged NoRotate, as some sticky notes are, keeps its appearance upright whatever the page rotation (ISO 32000-1 Table 165).
-
No — not even one that opens without a password. "Restriction-only" protection (an owner password that blocks printing or editing) still encrypts the file's text and images, and pdf-lib, the library this tool uses, cannot decrypt them, so anything it saved would be broken. Since 30 September 2026 the tool says so as soon as you add such a file, instead of rotating a copy that will not open. Save an unprotected copy first, in software that has the password.
-
No hard limit. Rendering the thumbnails is the slow part and grows with page count, especially on a phone. 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.
Method & sources
How it computes
Sets /Rotate only on the pages you turn: new value = (effective /Rotate + your turn) mod 360, the effective value read with inheritance and, like pdf.js, a value that is not a multiple of 90 read as 0. The page is not re-rendered; untouched pages, the creation date and the author are left as they were.
What this tool implements
- ISO 32000-1 Table 30: /Rotate is "(Optional; inheritable) The number of degrees by which the page shall be rotated clockwise when displayed or printed. The value shall be a multiple of 90. Default value: 0." Annotations flagged NoRotate (Table 165) keep their appearance upright by design.
- An illegal value is read the way pdf.js 4.10.38 reads it (Page.rotate: not a multiple of 90 → 0; negative or ≥ 360 wrapped), because pdf.js draws the thumbnails the reader turns. Checked 2026-11-05 against pdf.js on a fixture with no /Rotate, an inherited 90, -90, an illegal 45 and 180: the base the page reads equals what pdf.js shows on every page, and the saved file reads back as each turn added to it.
- Corrected 2026-11-05: an illegal /Rotate was snapped to the nearest 90 (45 → 90) while the preview showed it as 0; every page was rewritten whether turned or not; the creation date was overwritten with the time of saving; pdf-lib added its own Creator to files with none; Apply with nothing turned saved an identical "-rotated" copy; a quarter-turned thumbnail was cropped by its card.
- Measured 2026-11-05: turning every page of a 1,000-page, 1,065,044-byte test file changed its size by 22 bytes (pdf-lib re-saves the file; nothing is re-encoded).
Sources
- ISO 32000-1:2008, Document management — Portable document format — Part 1: PDF 1.7, free copy published by Adobe: §7.7.3.3 Table 30 (Rotate), §12.5.3 Table 165 (annotation flags, NoRotate). https://opensource.adobe.com/dc-acrobat-sdk-docs/pdfstandards/PDF…
- Mozilla. pdf.js v4.10.38, src/core/document.js — Page.rotate (normalisation of /Rotate). https://raw.githubusercontent.com/mozilla/pdf.js/v4.10.38/src/cor…
- Hopding A. pdf-lib v1.17.1 (2021), README "Encryption Handling": loading with ignoreEncryption "does not decrypt the document". https://github.com/Hopding/pdf-lib/releases/tag/v1.17.1
What can make this go out of date
- None at runtime: pdf-lib 1.17.1 and pdf.js 4.10.38 are vendored copies served from this domain, and the PDF is never sent anywhere.