How to Rotate PDF Pages Permanently and Save the Change

Rotating a PDF in a viewer often isn't saved. Learn how PDF page rotation works and how to fix sideways or upside-down pages for good on any device.

Updated September 29, 2026 5 min read

Use the free Rotate PDFRotate one page or all pages of a PDF by 90, 180 or 270°

You open a scanned document and every other page is lying on its side. Or a landscape spreadsheet printout sits sideways in the middle of a portrait report. You click the rotate button in your PDF viewer, the page turns, and you think the problem is solved, until the recipient opens the file and sees it sideways again.

That happens because many viewers rotate only the view, not the file. This guide explains how rotation is stored inside a PDF, why the view-only button misleads people, and how to rotate one page or all pages so the change is saved permanently.

How rotation works inside a PDF

Every PDF page has a small instruction called the rotation attribute. It tells viewers to display the page turned by 0, 90, 180 or 270 degrees clockwise. The page content itself, the text and images, is not redrawn. A viewer reads the attribute and turns the page before displaying it.

This design has two useful consequences:

  • Rotation is lossless. Changing the attribute does not re-compress images or touch text, so quality is identical and text stays searchable.
  • Rotation is only in quarter turns. You cannot straighten a page scanned at a slight 3-degree tilt this way; that needs image editing before the PDF is made.

View rotation versus saved rotation

Browser PDF viewers and many reader apps have a rotate button in the toolbar. In most of them it changes only how the page is shown to you right now. Close the file and the rotation is gone, because nothing was written back to the document. To make the change permanent, you need a tool that updates the rotation attribute and saves a new file.

Why scans come out sideways

Scanners and phone apps decide orientation from sensors or automatic text detection. A landscape page fed into a portrait scanner, a phone held at an angle, or a page with little text can easily confuse them. Double-sided scans often produce alternating upside-down pages when the paper was turned the wrong way for the back sides.

Rotate pages in your browser and save them

Our Rotate PDF tool shows a thumbnail of every page so you can see exactly which ones need turning.

  1. Open Rotate PDF and drop your file.
  2. To turn the whole document, use the buttons under Rotate all pages: 90° right, 180° or 90° left (270°).
  3. To turn individual pages, use the two rotate buttons under each thumbnail. Each click turns that page a quarter turn left or right, and the thumbnail updates immediately.
  4. Rotated pages are highlighted and captioned with the extra angle, for example "+90°". A line at the bottom shows how many pages will be rotated.
  5. Made a mess? Click Reset to undo all rotations.
  6. Click Download rotated PDF. The file is saved with -rotated added to its name.

The tool adds your rotation to any rotation the page already had, so a page that was stored at 90° and turned another 90° ends up at 180°. Only the rotation attribute changes, so the output is the same quality and almost the same size as the input.

Other ways to rotate a PDF permanently

Mac Preview

Open the PDF, show thumbnails, select the pages and press Command+R (right) or Command+L (left). Preview does save rotation when you save or export the file, which makes it a good offline option on a Mac.

Windows

Windows has no built-in PDF editor. The Edge and Chrome viewers rotate only the view. Your options are a browser-based tool, a desktop PDF editor, or printing to "Microsoft Print to PDF" after rotating the view, which flattens the document and can make text unsearchable, so it is best avoided.

iPhone and iPad

In the Files app, open the PDF, and use the page thumbnails; long-pressing a thumbnail typically offers rotate options. Menu labels change between iOS versions, so look for a rotate icon in the markup or page menu.

Command line

The open-source tool qpdf rotates pages losslessly and is ideal for batches:

# rotate pages 1 to 3 by 90 degrees clockwise
qpdf --rotate=+90:1-3 input.pdf output.pdf

# rotate every page 180 degrees
qpdf --rotate=180 input.pdf output.pdf

The + adds to the current rotation; without it the rotation is set to the given value.

Tips and troubleshooting

Rotated in the viewer but not in the file

If the page is correct on your screen but wrong for others, the rotation was view-only. Re-do it in a tool that saves the file and send the new copy.

A page looks right but prints sideways

Some printer drivers apply "auto-rotate and centre" settings on top of the PDF's own rotation. Check the print dialog for an auto-rotate option before blaming the file.

Mixed portrait and landscape pages

It is perfectly normal for a PDF to contain both. A wide table can stay landscape while the report around it stays portrait. Rotate only pages whose content is actually sideways when read on screen.

Also need to reorder or remove pages?

If a scan is both sideways and out of order, Organize PDF lets you rotate, drag and delete pages in one pass. To remove blank backs from a double-sided scan, Remove Blank Pages from PDF finds them automatically, and Delete PDF Pages removes any you pick by hand.

Rotating images, not PDFs

If your pages are still photos that you plan to turn into a PDF, it is simpler to fix them first with Image Rotator and then convert.

Frequently asked questions

Why doesn't my PDF stay rotated after I close it?

Your viewer rotated only the display. Use a tool that saves the rotation into the file, then share the saved copy.

Can I rotate just one page of a PDF?

Yes. Use the rotate buttons under that page's thumbnail and leave the others alone; only that page changes.

Does rotating a PDF reduce its quality?

No. Rotation changes a single instruction on each page and does not touch the images or text, so the quality is unchanged.

Can I rotate a PDF by 45 degrees?

Not with the page rotation setting, which only supports multiples of 90 degrees. Straighten tilted scans as images before converting them to PDF.

Standard rotation keeps them, because the page content is not redrawn. Viewers position fields and links according to the rotation.

Try it now: Rotate PDF

Loading tool…