Menu
Advertisement

Rotate PDF Online

Turn a sideways page upright, or the whole document, and download a PDF that opens the right way up everywhere.

By Nethanel Bar, Co-founder & CEO

Last updated

Advertisement

Ready to actually learn to code?

Coddy teaches you by writing real code in your browser - interactive lessons, instant feedback, and AI help when you get stuck.

How to rotate a PDF and keep it that way

A scanned page that comes out sideways is annoying, and turning it in your viewer rarely sticks: the next person who opens the file sees it sideways again. This tool changes the page rotation stored in the PDF itself, so the file opens the right way up in every viewer, on every device.

Click a page to turn it 90 degrees clockwise. Each page also has buttons to rotate left and right, and Rotate all left and Rotate all right turn every page together. The thumbnails show the result straight away. When they look right, click Download PDF: the file, named after yours with -rotated at the end, downloads right away.

The file is read and rewritten in your browser, so nothing is uploaded and nothing is added to the pages. No sign-up is needed. To also change the order of pages or remove some, use organize PDF pages.

What to know about page rotation

  • A PDF page has a rotation value, in steps of 90 degrees. Turning a page changes that value, not the drawing on it.
  • Because only a number changes, rotating is fast and loses no quality at all.
  • Rotating twice by 90 degrees gives 180, and four turns bring a page back to 0. The values wrap around at 360.
  • Clockwise is positive. A turn to the left is the same as adding 270, or subtracting 90.

How to rotate a PDF

  1. Open your PDF

    Drop the file on the page or choose it. If it needs a password to open, type it when asked.

  2. Turn the pages

    Click a page to turn it 90 degrees clockwise, or use the rotate left and right buttons under it. Click again to keep turning.

  3. Or turn them all

    Rotate all left and Rotate all right apply to every page at once, which is handy for a scan that is all sideways.

  4. Click Download PDF

    The new PDF downloads right away, with the rotation saved in the file and -rotated.pdf at the end of its name. If your browser holds it back, click Download PDF again on the result.

Rotation quick reference

How a page turns for each action.

ActionTurnUse it when
Click the page90 degrees clockwiseA page is a quarter turn off
Rotate right90 degrees clockwiseThe top of the page points left
Rotate left90 degrees counterclockwiseThe top of the page points right
Rotate right twice180 degreesA page is upside down
Rotate all left or rightEvery page by 90 degreesThe whole scan is sideways

Rotations to try

A scan where every page is on its side

Steps

Rotate all right Download PDF

One click turns all pages. If the text now reads upside down, use Rotate all right once more.

One landscape table in a portrait report

Steps

Click page 6 once Download PDF

Only page 6 is turned, so the table reads comfortably and the other pages stay as they are.

Do the same in Python

rotate.py
from pypdf import PdfReader, PdfWriter
reader = PdfReader("scan.pdf")writer = PdfWriter()
for page in reader.pages:    page.rotate(90)  # clockwise, in multiples of 90    writer.add_page(page)
with open("scan-rotated.pdf", "wb") as f:    writer.write(f)

page.rotate(90) adds to the page rotation value, which is exactly what the tool does when you click a page.

Common mistakes

  • Rotating the page in a viewer and assuming the file changed. Most viewers only turn what you see, so save a rotated copy instead.
  • Clicking a page and not noticing it already turned. Each click adds another 90 degrees.
  • Turning the wrong way. If the page now looks worse, use the opposite rotate button.
  • Closing the page before clicking Download PDF. The thumbnails show your changes, but the file is only made when you click it.
  • Expecting a scanned page to become searchable. Rotation does not read text from a picture.

Rotate PDF FAQ

How do I rotate a PDF and save it?

Open the file, turn the pages you want and click Download PDF. The rotated file downloads right away, with the rotation stored in it.

Will it open rotated in other programs?

Yes. The rotation is written into the PDF, so it shows the same way in other viewers, on phones and in print.

Can I rotate only one page?

Yes. Click that page, or use its rotate buttons. The other pages stay as they are.

Can I rotate all pages at once?

Yes. Use Rotate all left or Rotate all right, then click Download PDF.

Is my PDF uploaded anywhere?

No. Rotating runs in your browser, so the file never leaves your device and nothing is stored on a server.

Does rotating reduce quality?

No. Only the rotation value of each page changes, so text, images and vector drawings stay as they were.

Can I open a password-protected PDF?

Yes. If the file needs a password to open, the tool asks for it and opens the file once you type it. The password stays in your browser, and the saved PDF has no password.

What is the saved file called?
Your file name with -rotated added, for example scan-rotated.pdf.

Other developer tools

Coddy programming languages illustration

Learn to code with Coddy

Get started