Skip to content

4 min read · Updated 2026-09-19

How to rotate PDF pages

A viewer rotation is a temporary view setting. Writing the rotation into the page is what makes every reader see it the right way up.

Sideways pages come from scanners fed the wrong way and from documents where a wide table was placed on a landscape sheet without the rotation being recorded. The fix is to change a property of the page itself rather than to tell your own viewer to turn it, which is the distinction that decides whether the correction survives being sent to someone else.

4 steps

The procedure

Steps for a MyPDFilles tool run in your browser tab. When a guide directs you to external software, its own privacy and security practices apply.

  1. 01

    Add the PDF

    Drop in the document. Note which pages are wrong and in which direction, since rotation is applied per page rather than guessed.

  2. 02

    Choose the rotation

    Ninety degrees clockwise turns a left-lying landscape page upright. Two hundred and seventy clockwise — the same as ninety anticlockwise — turns a right-lying page upright. One hundred and eighty is for pages fed into the scanner upside down.

  3. 03

    Choose which pages it applies to

    Leave the pages field empty to rotate everything, or list the ones that need it as 3, 7, 11-14. Mixed problems need more than one pass, because one rotation value is applied per run.

  4. 04

    Rotate and download

    Run it and save. Open the result in a different viewer than the one you were using, which confirms the rotation is in the file rather than in your session.

Beyond the steps

What is actually happening

01

The rotate button in your viewer does not change the file

Most PDF readers have a rotate-view control, and it does what it says: it rotates the view. The bytes on disk are unchanged, so the page is still stored sideways and everyone else still receives it sideways. Some readers remember the setting per document in their own preferences, which is worse, because the page then looks correct to you and wrong to every recipient.

What this tool changes is the page dictionary, where a /Rotate entry records a multiple of 90 degrees that any conforming viewer must apply when displaying that page. Once it is written, the orientation is a property of the document.

The practical test is to open the saved file somewhere you have not touched — a different browser, a phone, a colleague. If it looks right there, the rotation is in the file.

02

Rotation is metadata, so it is lossless and reversible

Setting /Rotate does not touch the page content stream. The glyph runs and images keep their original coordinates and their original data; only the instruction about how to present them changes. Nothing is re-rendered and no quality is lost, and the file size changes by a handful of bytes.

That also makes it perfectly reversible. Rotating by 90 and then by 270 returns to the original value with no accumulated degradation, unlike rotating a raster image, where each turn can resample the pixels.

One consequence to expect: because /Rotate is presentation and the MediaBox is unchanged, the page dimensions as stored stay as they were. A rotated A4 page still reports 595 × 842 points while displaying as 842 × 595, which occasionally matters to software reading the geometry directly.

03

Knowing which way to turn, and the mixed-orientation case

Look at where the top of the text points. If the text reads bottom-to-top — its top edge on the left of the screen — you need 90 degrees clockwise. If it reads top-to-bottom with its top edge on the right, you need 270. If the words are legible but inverted, it is 180.

Scanned batches often need more than one value, because sheets went through the feeder in different orientations. Handle it as two or three runs: list the pages needing 90 and rotate them, then take that output and list the pages needing 270. It is not elegant but it is exact, and per-page rotation is why the pages field exists.

If a page looks tilted a few degrees rather than turned a quarter, rotation is the wrong tool. /Rotate only takes multiples of 90, and a small skew from a crooked scan is a deskew problem, not a rotation one.

While you follow this

MyPDFilles tools process files in this browser tab.

For a MyPDFilles tool, your document is read from your disk into this browser tab and the result is handed to your browser’s download mechanism. We do not make the same claim for external applications discussed in educational guides; check their own privacy and security information before using them.

Verify MyPDFilles requests in your Network panel

Questions about this task

Why did my rotation disappear when I sent the file?

Because you rotated the view in your reader rather than the page in the document. That setting lives in your application, not in the file. Rotating with this tool writes the orientation into the page so it travels with the document.

Does rotating reduce quality?

No. It sets a page property and leaves the content stream untouched, so there is no re-rendering and no re-compression. It is lossless and reversible.

Can I rotate different pages by different amounts in one go?

Not in a single run, since one rotation value applies to the pages you select. Do it as successive runs, rotating each group in turn.

My page is slightly crooked rather than sideways. Can this fix it?

No. PDF page rotation is limited to multiples of 90 degrees. A small skew from a scan needs deskewing, which resamples the image rather than setting a flag.