Skip to content
Processing locally — files never leave your device

Rotate PDF Pages Online

Rotate one page, a range, or every page in a PDF by 90°, 180°, or 270° to fix sideways scans and photos taken in the wrong orientation. Preview the result and download the corrected file — the PDF is processed entirely in your browser and is never uploaded to a server.

How to use Rotate PDF

  1. Open the PDF whose pages are sideways; pdf-lib loads it in-tab and lists how many pages it has.
  2. Pick the rotation amount: 90° clockwise, 180° (upside down), or 270° (90° counter-clockwise).
  3. Choose "All pages" to rotate everything, or "Specific pages" and list them (e.g. 1, 3, 5-7).
  4. Click "Rotate" — pdf-lib updates each page's rotation, adding to any rotation already present.
  5. The rotated PDF downloads automatically with a "-rotated" suffix; your original is untouched.

How to rotate pages in a PDF

Sideways and upside-down pages are one of the most common PDF annoyances — a scanner feeds a page the wrong way, a phone photo of a document lands rotated, or a landscape spreadsheet ends up in a portrait document. This tool fixes orientation cleanly and losslessly, either across the whole file or on just the pages that need it, without uploading anything.

How PDF rotation works

Every page in a PDF carries a rotation value — 0, 90, 180, or 270 degrees — that tells the viewer how to display it. This tool simply changes that value with pdf-lib; it never re-renders the page content. That is why rotation is instant and completely lossless: the text stays crisp, images stay sharp, and the file size barely moves. Your chosen angle is added to whatever rotation the page already had.

Rotate everything or just specific pages

Use All pages when an entire document came in sideways — for example a landscape report saved in portrait. Use Specific pages when only a few pages are wrong; enter them as a comma-separated list with ranges, such as 2, 4, 9-11. The tool validates your list against the real page count so you can't reference a page that doesn't exist.

When you'll reach for this

  • Straightening scanned pages that the document feeder pulled in the wrong way.
  • Turning a landscape chart or table upright within a portrait report.
  • Fixing a phone-captured document page before sharing or printing it.
  • Correcting one stray upside-down page (use 180°) without touching the rest.

A change too small to need a server

Rotation is the lightest edit a PDF can take: the tool loads the file, adjusts one rotation value per affected page, and re-serialises. No content is re-encoded, so there is nothing for a server to do that your browser cannot do instantly — which is exactly why this runs locally and a sideways scan of a passport or a signed form never has to leave your computer to be set straight.

If a viewer ignores the rotation

Standard-compliant viewers honour the rotation flag, but a handful of older tools display the page unrotated. When you need the orientation permanently fixed for every possible viewer, pass the file through the Compress PDF tool, which flattens each page into an image and bakes the rotation in — at the cost of selectable text.

Related PDF tools

  • Compress PDF — bake rotation in permanently by rasterizing pages.
  • Merge PDF — combine documents after fixing each one's orientation.
  • Split PDF — pull out the page that needs rotating into its own file.
  • Delete PDF Pages — remove a stray sideways scan entirely instead.

Frequently asked questions

Which way do the rotation options turn the page?
90° rotates clockwise (a page lying on its left edge stands upright), 180° flips it upside down, and 270° rotates clockwise by three-quarters, which is the same as 90° counter-clockwise. If a scan came out sideways, 90° or 270° fixes it depending on which way it was fed.
Can I rotate only some pages?
Yes. Switch to "Specific pages" and enter a comma-separated list with optional ranges, e.g. "1, 3, 5-7". This is ideal for documents where a single landscape table or scanned page is sideways while the rest are fine.
Does rotating re-encode or degrade the PDF?
No. Rotation is stored as a property on each page — pdf-lib simply sets the page's rotation angle. The actual page content (text, images, vectors) is never re-rendered, so there is zero quality loss and the file size stays essentially the same.
Does the new rotation add to existing rotation?
Yes. The tool reads each page's current rotation and adds your chosen angle on top, wrapping around at 360°. So applying 90° to a page already rotated 90° results in 180°. Apply the same rotation repeatedly to step through orientations.
Why does the page look correct in one viewer but not another?
Virtually every modern PDF viewer respects the rotation flag, but a few old or non-conformant viewers ignore it and show the unrotated page. If you must guarantee the rotation is "baked in" for such a viewer, run the file through the Compress PDF tool, which rasterizes pages and permanently fixes their orientation.
Will rotation affect text selection or links?
No. Because only the rotation property changes, selectable text, hyperlinks, and form fields all continue to work exactly as before — they are simply displayed at the new angle.
Does the file get uploaded while it is rotated?
No. The change is tiny — one number per page — and pdf-lib writes it in the tab's memory, never over the wire. There is genuinely nothing to upload here: the page pixels are not even touched, only the flag that tells a viewer which way up to draw them.

More tools you might find useful in the same flow.

Built by Muhammad Tahir · About