Fix a PDF where every other page is upside down

When every other page of a PDF is upside down — the classic result of scanning double-sided paper in a stack feeder — the fix is to rotate the alternate pages by 180 degrees in one pass. This tool does exactly that: it turns every second page (or the odd pages, if your flip pattern starts there) by 180, 90, or 270 degrees, losslessly and entirely in your browser. The scan images themselves are never re-rendered.

Rotate alternate pages — runs on your device

How it works

The upside-down-backs problem has a mechanical cause. A duplex sheet feeder reads the reverse of each sheet with a second sensor mounted the opposite way, and a single-sided scanner forces you to re-feed the flipped stack for the backs. Both routes deliver the reverse sides rotated 180 degrees relative to the fronts — a perfectly regular pattern: pages 2, 4, 6, … wrong, pages 1, 3, 5, … right (or the mirror image if the first sheet went in back-first).

Because the pattern is deterministic, no detection is needed — the tool simply walks the page tree and edits the /Rotate entry of every targeted page. /Rotate is a display instruction in the page dictionary that tells viewers to turn the page by a multiple of 90 degrees before showing it; the tool adds your chosen angle to whatever value each page already has, modulo 360. The page's content stream and images are untouched, which is why the edit is instant even on huge scans and why quality cannot degrade: not a single pixel is decoded or re-encoded. This is the key difference from auto-rotate scans, which renders pages and runs OCR to find irregular orientation errors — the right tool when there is no pattern, but slower and English-text-dependent.

Three angles cover the real-world cases. 180 degrees fixes the standard upside-down backs. 90 and 270 handle landscape jobs where the two sides come out a quarter-turn apart in opposite directions. And the odd/even toggle handles the two possible phases of the pattern. If your problem is not alternating at all — the whole file is sideways, or just a few known pages — rotate PDF pages is the simpler fit. If the pages are out of order as well as flipped (fronts 1–5 then backs 10–6), fix the order first with interleave two PDFs.

Illustrative example: a 48-page duplex contract scan

Illustrative scenario, not a recorded benchmark. File sizes, timings and results depend on the input and device. Try the reproducible samples.

A 24-sheet, double-sided contract goes through an office feeder and comes out as a 48-page, 31 MB PDF in which pages 2, 4, 6, … 48 are all upside down. Rotating page by page in a viewer would mean 24 separate operations.

Here, the fix is one pass: target "even pages", angle "180°", apply. The tool rewrites 24 /Rotate values and saves — under two seconds even at 31 MB, because no image data is touched. The output is the same 48 pages at the same 31 MB (give or take a few hundred bytes of rewritten dictionaries), now reading top-side-up throughout. A spot check of pages 2, 24, and 48 confirms the pattern held for the whole file.

Frequently asked questions

Why is every second page of my scanned PDF upside down?

Sheet-fed scanners read the back of each sheet with a second sensor facing the opposite way, or the stack is flipped to scan the backs. Either way the reverse sides land 180 degrees rotated, so pages 2, 4, 6 and so on appear upside down.

Can I rotate the odd pages instead of the even ones?

Yes. If your scan started with a back side, the odd pages are the flipped ones, and the tool can target them instead. The angle options are the same: 180, 90, or 270 degrees.

Does rotating alternate pages reduce scan quality?

No. The tool changes each affected page's /Rotate value, which is a display instruction, and never re-renders the page image. The pixels in the file are byte-for-byte the ones your scanner produced.

When should I use auto-rotate instead of this tool?

Use this tool when the problem is a regular pattern — every second page flipped the same way. Use auto-rotate scans when orientation errors are scattered unpredictably, since it detects each page's orientation by OCR instead of following a pattern.

Why would I rotate alternate pages by 90 degrees rather than 180?

Landscape documents scanned double-sided often come out with fronts turned one way and backs the other, needing a quarter turn in a consistent direction. Rotating every second page by 90 or 270 degrees squares those files up.

Related tools