Runs in your browser with pdf.js and pdf-lib
Rotate PDF Pages Online — one page, a range, or the whole file
Turn sideways scans upright and flip upside-down pages. Every page is shown large enough to read, so you can see which way is up before you save.
- PDF files aren't uploaded to our server
- Open any page full size
- Undo any change
- Free, no account
Turn every page the right way up
Add a PDF, rotate pages in bulk or one at a time, and open any page full size to check it.
Drop your PDF here
or browse — one PDF, any number of pages
2. Rotate them
3. Or match a shape
Turns only pages with the wrong shape, 90° clockwise. It can't tell which way is up, so check those pages afterwards.
Pages
Click a page to see it full size.
What this tool actually does
Rotation changes a page's angle — not its content
Every PDF page stores a rotation value: 0°, 90°, 180° or 270°. This tool changes that value and leaves the text and images exactly as they were.
Why pages come out sideways
A phone photo taken in landscape, a booklet scanned with alternate pages turned, a landscape table in a portrait report. The content is fine; only the angle is wrong.
Load the PDF and every page appears large enough to read, with a full-size view one click away. pdf.js draws the previews and pdf-lib writes the new angles into a fresh copy — both run in your browser tab, so your PDF isn't uploaded to our server.
What you can do before saving
Rotate in bulk
All pages, odd, even, or typed pages like 2-5, 9-. One click turns the whole group.
Rotate one page
Each page card and the full-size view have their own left and right buttons.
Read before you save
Switch previews between Small, Medium and Large, or open any page full size and page through with the arrows.
Undo and reset
Undo steps back one change at a time; Reset rotations returns every page to how it was loaded.
How to rotate PDF pages in four steps
Change more pages after saving and save again — your PDF stays loaded.
Add your PDF
Drop a PDF onto the upload area, or click Select PDF. Page previews draw as you scroll, so long documents open quickly.
Use Large previews to read page text without opening each one.
Rotate the pages
Pick the pages, then a direction:
- All, odd, even, or typed pages like 2-5, 9-.
- Left 90°, Right 90°, or Upside down (180°).
- Or fix single pages with the buttons under each one.
Check, then save
Changed pages are outlined and labelled with their new angle. Open any page full size to be sure, then click Save rotated PDF.
Your PDF isn't uploaded to our server.
Preview and download
Page through the saved file, which is drawn from the new PDF itself, rename it if you like, and download.
A mixed scan, set upright
Sideways and upside-down pages fixed with a mix of 90° and 180° turns.
Which button fixes your document
Common orientation problems and the quickest setting for each.
| Situation | What's wrong | What to click |
|---|---|---|
| Whole scan sideways | Every page is turned the same way. | All pages, then Left 90° or Right 90°. |
| Whole scan upside down | The stack went into the feeder the wrong way round. | All pages, then Upside down (180°). |
| Booklet scan | Every second page came out upside down. | Even (or Odd), then Upside down (180°). |
| Landscape tables in a report | A few wide pages read sideways. | Pages… with their numbers, e.g. 14, 22-23, then Right 90°. |
| Slides exported as portrait | Pages should all be wide. | Landscape, then open a few pages full size to check direction. |
| Phone photos turned into a PDF | Each page sits at its own angle. | The buttons under each page, using Large previews. |
| One page from a fax | A single page arrived sideways. | Open it full size and click Left or Right there. |
| Rest of the file after page 9 | Everything from one page on is turned. | Pages… with 9-, then the direction. |
What each control actually does
Directions are as you look at the page on screen.
Left 90°
A quarter turn counter-clockwise. Use it when the top of the text points to the right.
- Four clicks bring a page back to where it started
Right 90°
A quarter turn clockwise. Use it when the top of the text points to the left.
- Left 90° undoes it in one click
Upside down (180°)
A half turn. The page keeps its shape, so this is the only fix for an upside-down page.
- Same as two quarter turns
Portrait / Landscape
Turns only pages whose shape doesn't match, 90° clockwise. Pages that already match are left alone.
- Can't see which way is up, so check the turned pages
How angles add up
The rules behind every turn
Four facts that explain every result you'll see.
Turns stack
Two Right 90° clicks make 180°; four make a full circle and the page is back to normal. Each card shows the total turn, e.g. Turned 90° right.
Existing angles are respected
If a page already has a rotation saved in the PDF, your turn is added to it. The preview always shows the page the way readers will.
Shape is not direction
Portrait and Landscape compare width and height only. A page turned clockwise to portrait may end up upside down — click Upside down (180°) on those.
Page numbers are checked
In the Page numbers field, a reversed range like 10-5 or a page past the end is named, and nothing turns until it's fixed. 9- means 9 to the end.
When a page won't turn the way you expect
Identify the problem, then use the matching fix.
A page turned the wrong way
Left and right are easy to mix up on a sideways page.
Click Undo, or click the opposite direction once.
Portrait made a page upside down
Portrait always turns mismatched pages clockwise; it can't read the text to know which way is up.
Open that page full size and click 180°.
Portrait didn't change a page
The page is already taller than it is wide, even if it's upside down.
Use Upside down (180°) for pages with the right shape but the wrong direction.
The rotation hit the wrong pages
A different page group was still selected in step 1.
Click Undo, pick the right group, and rotate again. The status bar names the pages each action changed.
The Page numbers field turns red
A part is reversed, past the last page, or not a number. The message names it.
Correct that part. Use 9- for "page 9 to the end".
Previews appear slowly on a long PDF
Previews are drawn as you scroll to keep memory low. Heavy scans take longer per page.
Switch to Small previews to scan quickly; rotations apply even to pages not drawn yet.
A password-protected PDF won't open
Most encrypted PDFs can't be opened by the in-browser PDF libraries.
Remove the password with Unlock PDF, then add the unlocked copy.
Every page upright the first time
A working order that avoids a second round.
Fix the common problem first
If most pages share one problem, rotate All pages once, then correct the few exceptions one by one.
Use Large previews for text-heavy pages
When the difference is subtle, like a landscape table, Large previews let you read headings without opening each page.
Check pages after Portrait or Landscape
These buttons fix shape, not direction. Open the turned pages full size and flip any that came out upside down.
Page through the saved preview
The preview after saving is drawn from the new file itself, so what you see there is what readers will see.
Rotate before merging
Fixing angles in each source first means the merged file comes out consistent without a second pass.
Name the result clearly
A name like contract-signed-upright.pdf is easier to tell apart from the original later than a generic name.
Common questions about rotating PDFs
If something's not covered here, the troubleshooting section above likely has it.
Does this tool upload my PDF?
No. The PDF is processed in your browser: pdf.js draws the page previews and pdf-lib saves the rotated copy. Your PDF is not uploaded to our server.
How do I read a page before deciding how to rotate it?
Switch the previews to Large, or click any page to open it full size. The full-size view has its own rotate buttons and arrows to move to the next page.
Can I rotate only some pages?
Yes. Choose Odd, Even, or Pages and type numbers like 2-5, 9-, where 9- means page 9 to the end. You can also use the buttons under any single page.
Why did Portrait leave a page upside down?
Portrait and Landscape compare a page's width and height and turn mismatched pages 90 degrees clockwise. They can't read the text, so a page can end up upside down. Turn it with Upside down (180°).
Does rotating a PDF reduce its quality?
No. Rotation changes the angle stored for each page; text, images and vector graphics are copied into the new file without being re-rendered or recompressed.
Can I undo a rotation?
Yes. Undo steps back one change at a time, and Reset rotations returns every page to how it looked when you loaded the file. Nothing is final until you save.
Does it work with password-protected PDFs?
Usually not. Most encrypted PDFs can't be opened by the in-browser PDF libraries, so the tool tells you when you add one. Remove the password first, then rotate the unlocked copy.
Build notes
The write-up on rotating PDFs in the browser
Because the rotation runs client-side, I wrote a tutorial on building a browser-based PDF rotator with JavaScript.
How to Build a Browser-Based PDF Rotator Using JavaScript
A step-by-step tutorial on rotating PDF pages client-side with JavaScript.