Skip to content
HandfulTools

How to rotate a PDF and save it permanently

Rotate one page or a whole PDF and save the change for good, see why a page looks straight in one viewer and sideways in another, and fix sideways scans.

· 6 min read

Rotating a PDF does not turn the page's contents around. Every page carries a /Rotate property — a number that must be 0, 90, 180 or 270 — and rotating sets that number, which tells every reader how far to turn the page before drawing it. The text, the images and the page box stay exactly where they were, so quality cannot change and text you could select before is still selectable afterwards.

The quickest route here: open Rotate PDF, drop the file, and use Rotate all right (90°), Rotate all left or Rotate all 180° for the whole document. To fix individual pages, click the rotate button under a thumbnail — each click adds 90° clockwise, so three clicks give 270°. The thumbnails redraw as you go, Reset rotations undoes everything, and Apply rotation writes the result to a file you download. Nothing is uploaded, and files up to 200 MB are accepted.

The three ways to rotate, and when each one makes sense

Method Good for Watch out for
A browser tool like this one Mixed scans where only some pages are wrong, on any device Very long documents are slower to preview on a phone
Desktop software (Acrobat, PDFsam Basic, qpdf, LibreOffice Draw) The same correction every week, or a scripted batch Acrobat's page tools are in the paid version; LibreOffice re-writes the file on export
Built-in OS features One file already open in front of you Most viewers rotate the view only, not the file

On macOS, Preview does save rotation: select the pages in the thumbnail sidebar, use Tools → Rotate Left or Rotate Right (⌘L and ⌘R), then ⌘S. On Windows, there is no built-in editor — Microsoft Edge has rotate buttons in its PDF toolbar, but they turn the view for that session; reopen the file and it is sideways again. On iPhone, recent iOS versions let you open the PDF in the Files app, show the page thumbnails, press and hold a page and choose Rotate Left or Rotate Right, then tap Done to save. On Android, it depends on the app you installed; Google Drive's built-in viewer rotates the view and does not write the change back.

From a terminal, qpdf --rotate=+90:1-z sideways.pdf fixed.pdf turns every page, and --rotate=+180:4,7 turns only pages 4 and 7.

Why a page looks straight in one app and sideways in another

This is the confusion worth understanding, because it decides which fix you need.

  • A rotation flag is what this tool writes. The image inside the page is untouched; the page simply carries an instruction to display it turned. Every conforming reader obeys it, so the page looks the same everywhere.
  • A rotated image is what some scanners produce instead. The scan is stored already turned, and /Rotate stays at 0. The page looks correct, but if you extract the image or print through an unusual path it can come out differently.

The mismatch people actually hit is a third case: a viewer's own rotate button, which changes nothing in the file. That is why a colleague sees a sideways page in an email preview after you "fixed" it on your screen. Close the file, reopen it, and see whether the orientation stuck — that one test settles it every time.

What rotating does to your file

  • No re-encoding. Images are not recompressed, so no new artefacts and no loss of resolution.
  • Almost no size change. One number per page is rewritten.
  • Rotations accumulate. The tool adds your rotation to whatever the page already carried, then normalises the result to 0–270. Two clicks of 90° give 180°; four bring you back to the start.
  • Page order is untouched. Rotating never moves, adds or removes a page.
  • Text and links keep working. Selection, search and annotations survive, because nothing is redrawn.
  • The original file is untouched. You download a copy named …-rotated.pdf.

Scans that come out on their side

Sideways pages are almost always a scanning artefact, and the cause tells you the fix:

  • A landscape page in a portrait stack. A wide table or chart is printed across the sheet and fed in the same direction as the rest, so it arrives lying down. Rotate only those pages.
  • Sheets fed upside down. A page put in the tray the wrong way up comes out at 180°. Half a duplex batch can arrive like this when the second side is scanned in reverse.
  • A phone that guessed. Scanner apps infer orientation from the phone's position, and holding it flat above a desk gives them nothing to work with. Correct the affected pages afterwards.

One thing rotation cannot fix: a page that is slightly crooked. PDF rotation works in quarter turns only, so a scan that is three degrees off has to be straightened by the scanning software — most scanner drivers and phone scanning apps have a deskew or auto-crop option — or scanned again.

Common problems, and what they mean

The page turned but the content now looks cut off. Rotation turns the whole page including its box, so nothing can be lost. What you are seeing was already outside the page area in the original scan. Crop PDF adjusts the visible area; if the content is genuinely missing from the file, rescan it.

Only some pages need turning and I rotated everything. Use Reset rotations and start again, rotating page by page from the thumbnails. Nothing has been written to a file until you click Apply rotation.

The PDF asks for a password. An encrypted file cannot be read page by page. If you know the password, make an open copy with Unlock PDF, rotate it, and protect it again afterwards if it holds personal data.

The pages are also in the wrong order. Rotating will not help with that. Rotate first — upright thumbnails are far easier to read — then open the result in Organize PDF to move, duplicate or delete pages.

A photo, not a PDF, is on its side. Use Rotate Image instead, which turns the pixels rather than setting a flag.

Questions people ask

Can I rotate by an angle other than 90°? Not in the PDF itself. The format stores the rotation as one of four values, so anything in between has to be baked into the page content by an editor or fixed at the scanning stage.

Does rotating reduce quality? No. Only one property per page changes; nothing is redrawn or recompressed.

Will the rotation hold up when I print? Yes. Printers read /Rotate like any other reader. If a print comes out in the wrong orientation, check the print dialog's own page-orientation and scaling settings.

Can I rotate several files at once? Not here — one document at a time. You can merge the files first and rotate the combined document in one pass, which is often quicker for a scan that arrived in several batches.

Does the rotation survive merging or reordering? Yes. The rotation lives in the page itself, so it travels with that page when it is copied into a merged, split or reordered document.

Next steps

Tools used in this guide

← All guides