HandyBench

Rotate PDF

Fix sideways or upside-down PDF pages.

How to use the Rotate PDF

  1. 1 Upload your PDF.
  2. 2 Pick 90° clockwise, 180° or 90° counter-clockwise, then leave "Rotate all pages" ticked or untick it and enter pages like 1-2, 4.
  3. 3 Click Rotate PDF to download rotated.pdf.

Rotation is a page flag, not a redraw

Every page in a PDF carries a /Rotate entry. It tells a viewer to turn the page clockwise by a multiple of 90 degrees when displaying or printing it. Rotating here only edits that entry, using pdf-lib's setRotation. The page's text, images and fonts are never touched, which is why nothing is re-compressed and text remains selectable. The viewer does the turning.

The calculation is cumulative. For each target page the tool reads the current rotation and applies (current + angle) % 360. This matters because many scanned files already carry a rotation flag.

Worked example

Page's existing /RotateOption chosenNew /Rotate
090° clockwise90
9090° clockwise180
27090° clockwise0
090° counter-clockwise270
180180°0

The "counter-clockwise" option is simply a 270-degree clockwise turn, so rotating the same page twice with it takes you to 180.

Choosing pages and avoiding surprises

With "Rotate all pages" ticked, every page is turned. Untick it to type a selection like 1-2, 4; pages outside the document are ignored and duplicates are removed. The output is always downloaded as rotated.pdf.

  • Only the fixed page changes. A scanned stack with one sideways sheet needs only that page number, not the whole file. Rotating everything would flip the good pages sideways.
  • Apply it once per direction. Because rotation accumulates in the saved file, running a 90-degree turn twice on purpose gives 180 degrees. Reload the original if you want to start over.
  • Viewers differ on "wrong" flags. A page can look upright in one reader and sideways in another when its content is drawn sideways and the flag compensates. Check the result in the viewer your recipient will use.
  • Encrypted PDFs fail. You will get "Could not rotate this PDF" until the password is removed.

Once pages are upright, you can join documents with Merge PDF or trim them with Extract PDF Pages.

Examples

  • ▸ Turning one sideways page of a scanned stack upright by unticking "Rotate all pages" and entering 3 with 90° clockwise.
  • ▸ Flipping a whole upside-down scan right side up with 180°.
  • ▸ Rotating a landscape-scanned 10-page report with 90° counter-clockwise.

Frequently asked questions

Will rotating reduce quality?

No. Rotation only changes the page's /Rotate setting, so text and images stay crisp with no re-compression. The viewer turns the page when it displays or prints it.

What happens if a page is already rotated?

The new angle is added to the existing one, modulo 360. A page already turned 90 degrees and rotated 90° clockwise again ends up at 180, and one at 270 returns to 0.

Why does the rotated page look different in another PDF viewer?

Some files draw the page content sideways and rely on a rotation flag to compensate, and viewers can disagree about odd flags. Check the result in the viewer your recipient will use.

Can I rotate just one page?

Yes. Choose to rotate all pages or enter specific page numbers, so you can fix a single sideways scan without touching the rest.

Are my PDFs uploaded to a server?

No. Rotation runs entirely in your browser, so your documents never leave your device.