Rotate PDF Pages
Turn pages the right way up — all of them, just the odd or even ones, or a range you type — by 90, 180 or 270 degrees.
Scans come in sideways. A phone held the wrong way, a feeder that takes the stack portrait when the pages run wide, one chapter photocopied upside down — the document is fine, it’s just facing the wrong way, and every reader after you has to tilt their head or find the rotate button themselves. This tool fixes the file, not the view: it writes a new rotation value into each page you select, so the PDF opens the right way up in any viewer, for anyone you send it to.
Rotation here changes each page's stored rotation — the instruction in the file that tells a viewer which way up to show the page. The page content itself is not redrawn or re-rendered, so text stays selectable and nothing gets blurrier. Your original file is never modified; the download is a new copy.
Quick answers
How do I rotate only some pages of a PDF?
Choose the pages by group or by name: all pages, odd pages only (1, 3, 5…), even pages only (2, 4, 6…), or a typed range like 1-3,5. Then pick 90, 180 or 270 degrees and download — only the selected pages turn.
Odd and even count from the first page of the file. That split exists for duplex scans, where one side of the paper often lands sideways and the other does not.
Does rotating a PDF reduce its quality?
No. Rotation changes a number stored on each page — its rotation value — and the page content is not redrawn. Text stays selectable, images keep their resolution, and the file size barely moves.
That’s the difference between rotating and re-rendering. Tools that rebuild pages as pictures can shrink a file, but the text becomes part of the picture; this tool never touches the content.
How do I turn a PDF page counterclockwise?
Pick 270° clockwise. A 270° clockwise turn lands a page in exactly the same place as a 90° turn the other way, so one direction of travel is enough — 90, 180 and 270 cover every way a page can sit.
If a page was already rotated before it reached you, the angles add: a page sitting at 90° that you turn by 270° ends at 0°, upright.
How to use
- Choose the PDF — the page count is shown, so you can judge what odd and even will catch.
- Pick which pages turn: all of them, the odd pages, the even pages, or a range you type, like 1-3,5.
- Pick the angle: 90° clockwise, 180°, or 270° clockwise (which is the same as 90° the other way).
- Click “Rotate & download” and open the new file to check the pages sit the way you wanted. Your original stays untouched.
About this tool
The selection is the part most rotate buttons skip. Turning every page is one click, but real documents are rarely that tidy. A duplex scan of a wide booklet often lands with only the odd pages sideways, because the backs went through the feeder the other way. A merged file might need pages 4 to 9 turned and nothing else. So you get four selections: all pages, odd pages only, even pages only, or a typed range in the same 1-3,5 style the split tool uses. Page 1 is the first page of the file, odd means 1, 3, 5 and so on, and the status line tells you exactly how many pages were turned before you trust the download.
What rotation means inside a PDF is worth knowing, because it explains why this is safe to try. Each page carries a rotation value — 0, 90, 180 or 270 — that tells the viewer how to present the page. This tool adds your angle to whatever value a page already has and writes the result back: a page already at 90° turned by another 90° ends at 180°, and four quarter turns land back at 0°. Nothing is redrawn. The words, pictures and links on the page are not re-rendered, flattened or compressed, so text stays selectable and a crisp page stays crisp. If the result is wrong, run the original through again with a different angle — the original on your disk never changes.
How it works
The arithmetic is one line per page: new rotation = (current rotation + chosen angle) mod 360. pdf-lib reads the page’s existing rotation, adds 90, 180 or 270, wraps anything past 360 back around, and writes the result with setRotation. A page at 270° turned 180° ends at 90°, because 270 + 180 = 450 and 450 − 360 = 90.
Selection is index arithmetic on the same page numbers you count with. Odd pages are the indices 0, 2, 4… in the file’s internal zero-based list, which are pages 1, 3, 5… as you count them; even pages are indices 1, 3, 5…, your pages 2, 4, 6…. A typed range is parsed into the same list — 1-3,5 becomes pages 1, 2, 3 and 5 — with duplicates removed and anything past the end of the document ignored.
What this tool can’t do
Rotation is presentational, not a rebuild: the page’s stored rotation changes, and the underlying content stream keeps its original orientation. Every normal viewer honours the rotation value, but a tool that reads raw content coordinates and ignores page rotation will still see the page as it was drawn.
Password-protected PDFs cannot be opened by pdf-lib at all, so they cannot be rotated here. This site does not offer a password-removal tool, by design.
One angle applies to the whole selection. If page 3 needs 90° and page 7 needs 180°, run the file through twice — once per group — or split the groups with a typed range each time.
Pages that arrive with a non-standard rotation (a value that is not a multiple of 90) are normalised by the addition above; pdf-lib writes only 0, 90, 180 or 270.
Worked examples
A sideways duplex scan: A 24-page landscape booklet scanned duplex comes back with every odd page upright and every even page on its side. Select “Even pages”, pick 90°, and one pass turns pages 2, 4, 6… 24 — twelve pages — while the odd pages are left exactly as they were.
One upside-down chapter: Pages 10 to 15 of a merged report were photocopied upside down. Type 10-15 as the range, choose 180°, and only those six pages flip. The status line confirms “6 of 40 pages turned”, so a typo in the range is visible before you send the file on.
A portrait file of landscape slides: A slide deck exported as portrait pages with wide content needs every page turned once. Select “All pages” at 270° — the counterclockwise quarter turn — and the whole deck sits the wide way round, text still selectable, ready to present.
Quick reference — angles and selections
| You pick | The page ends up | Typical job |
|---|---|---|
| 90° | A quarter turn clockwise | Portrait pages that should sit the wide way |
| 180° | Upside down becomes upright | A chapter fed through the scanner backwards |
| 270° | A quarter turn counterclockwise | Wide pages that should sit portrait |
Selections: “odd” is pages 1, 3, 5… and “even” is pages 2, 4, 6…, counted from the first page of the file. A typed range such as 2-4,7 turns pages 2, 3, 4 and 7. Angles add to any rotation a page already carries, wrapping at 360.
Frequently asked questions
Will the rotated file open correctly everywhere?
Yes. The rotation is stored in the PDF itself, in the standard page rotation entry every viewer reads. It isn’t a setting in this page or in your browser — email the file, open it on a phone, print it, and the pages stay turned.
What is the difference between 270° here and rotating left in a viewer?
Nothing, in the end position: 270° clockwise and 90° counterclockwise land a page in the same place. Viewers usually offer both directions as buttons; a file stores only the final value, 0, 90, 180 or 270, so this tool asks for the final turn in one direction of travel.
A page in my PDF was already rotated. What happens?
The angles add. If a page already carries a 90° rotation and you turn it by 90°, the saved page carries 180°. The tool reads the existing value first instead of assuming every page starts at 0°, which is why re-running a file does not compound into a surprise — each run adds exactly the angle you picked, and the status line says so.
Can I rotate pages in a scanned PDF?
Yes — a scanned page is a picture on a PDF page, and the page is what rotates. The scan itself is not re-sampled, so a 300 dpi scan stays a 300 dpi scan; it just displays the right way up.
Why did nothing change when I opened the download?
Two usual causes. The selection may not have covered the page you’re looking at — odd and even count from page 1 of the file, which may not be the page numbered 1 in the document’s own footer. Or the viewer had the old file cached under the same name. Check the status line’s count of turned pages, and open the download under its own name, rotated.pdf.
Is my PDF uploaded to a server for this?
No. The file is read into your browser’s memory and processed there with pdf-lib; the rotated copy is built on your device and downloaded from the page. Close the tab and nothing remains — there is no account, no history and no copy on this site.
First time embedding? Read the step-by-step guide →
More free tools
PDF Page Organizer
See every page as a thumbnail, remove the ones you do not need, drag the rest into order, and download the tidied PDF.
Add Page Numbers to PDF
Stamp page numbers where you want them — bottom centre, bottom corner or top right — as “7”, “7 of 40” or “Page 7 of 40”, with the cover page skipped if you like.
PDF Merge & Split
Combine multiple PDFs into one, or split and extract pages — right in your browser, with no upload and no sign-up.
PDF Compressor
Shrink a PDF by re-rendering its pages as compact JPEGs — best for scans and photo PDFs.
PDF to Image Converter
Turn PDF pages into PNG or JPG images — page by page, or all in one ZIP.
PDF to Text Converter
Pull the text out of a PDF — page by page, as one clean plain-text file.