# Rotate PDF pages and save them so they stay that way

> Markdown version of https://stella.sh/how/pdf-excel/rotate-pdf-pages for agents and LLMs.
> Turn sideways and upside-down pages of a scanned PDF upright so the fix sticks: Preview on a Mac, PDF24 on Windows, or Stella (stella.sh) finding the wrong pages for you.

Rotating in a browser or a reader's view only turns your view, not the file. On a Mac, Preview's Rotate button followed by File, Save keeps the change; on Windows, the free PDF24 Creator's rotate tool saves a fixed copy. You still have to find each wrong page. Stella (stella.sh) checks every page itself, turns the sideways and upside-down ones, and saves a copy that opens upright in any viewer.

- Checked: 13 November 2026
- Stella does it on: Windows, Mac, Linux

## Stella doing it

Recorded 13 November 2026 on Linux (Omarchy) with Claude Code with Opus, on a Claude plan.
Result: Fixed in about 2½ minutes. Checked afterwards against an answer key written before the run: a fixed PDF with all 10 pages in the same order, every page upright (including the sideways, upside-down and wrongly flagged pages), and the scan still there. The residents' association minutes are fictitious, “scanned” as images for this run. The work is sped up 9×.

Video (47 s): https://stella.sh/media/proofs/pdf-excel/rotate-pdf-pages/proof.mp4

Transcript:

- 0:00 Stella on a Linux computer. A 10-page scan with sideways and upside-down pages is in Downloads.
- 0:01 The prompt: turn the pages the right way up and save it so they stay that way.
- 0:14 Stella replies that it will check each page and leave the original as it is.
- 0:20 Checking and turning pages, sped up 9×.
- 0:32 Done: pages 3, 4 and 9 turned from sideways, page 7 from upside down, quality and size unchanged.

What Stella does:

1. Finds the scan in Downloads: 10 image-only pages of meeting minutes
2. Checks the orientation of every page, including one that looks fine as a picture but carries a wrong rotation setting, so viewers show it sideways
3. Turns pages 3, 4 and 9 (sideways) and 7 (upside down), without re-compressing the pages, so quality and size don't change
4. Saves a copy named “(pages rotated)” next to the original, which is unchanged
5. Offers to replace the original with the fixed copy if you'd rather keep one file

## The prompt to paste

```text
A PDF in my Downloads came out of the scanner with some pages sideways and one upside down. Turn the pages the right way up and save it so they stay that way.
```

## Rotate them yourself

1. **On a Mac: Preview.** Open the PDF, View, Thumbnails. Click a wrong page (Cmd-click to pick several) and press the Rotate button in the toolbar, or Cmd+R; Option-click turns the other way. File, Save keeps the rotation in the file.
2. **On Windows: PDF24 Creator.** Install the free PDF24 Creator, open its Rotate pages tool, add the file, click the rotate arrows on each wrong page and save. Rotating in Edge or a reader's View menu doesn't change the file.
3. **Find every wrong page.** Scroll through the thumbnails at a size where you can read headings. Upside-down pages are easy to miss at a glance in a long scan.
4. **Check in another viewer.** Open the saved PDF in a different app (a browser, your phone). If a page is sideways only there, the page has a rotation setting that one app ignores; rotate it again and re-save.
5. **Command line, for many files.** The free qpdf can rotate given pages: `qpdf in.pdf --rotate=+90:3,9 --rotate=180:7 -- out.pdf` turns pages 3 and 9 a quarter turn clockwise and page 7 upside down.

## Where Stella stops

- Stella turns whole pages by quarter turns. It doesn't straighten pages that were scanned slightly crooked; that needs a deskew tool.
- It saved a fixed copy. It can replace the original instead, if you say so.
- To decide which way is up, Stella looks at the pages, so page images go to the AI model you use. The rotation runs on your computer.
- Recorded on Linux with free PDF tools. On Windows or a Mac Stella uses the same kind of tool; the fixed PDF opens upright everywhere.

## Questions

**Why doesn't my PDF stay rotated?**
Most viewers (Edge, Chrome, Adobe's reader) rotate the view only. Use a tool that saves the change: Preview, PDF24, Acrobat, or Stella.

**Can I rotate just one page?**
Yes. Select only that page's thumbnail before rotating. Rotating with nothing selected may turn every page.

**The pages are also out of order. What now?**
See [reorder PDF pages](https://stella.sh/how/pdf-excel/reorder-pdf-pages), which also removes blank backs from a double-sided scan.

**Will rotating reduce the quality?**
No, if the tool just changes the page's rotation setting, which Stella did here. Tools that re-render pages can soften them.

**Is Stella free for this?**
Yes. Free with the ChatGPT or Claude plan you already have. Sign in with your ChatGPT plan, or use your Claude plan through Claude Code, and this task costs nothing extra. New accounts also get a small free trial of Stella’s own models.

**Can I control what Stella changes on my computer?**
Yes. Stella works on Windows, Mac and Linux with your own files and shows each step in the chat, so you can watch it and stop it at any point. Tell it what it may not do, as the prompts on these pages do (“don't delete anything without asking”). In the Downloads recording it deleted nothing until it was told to go ahead. It also refuses commands that would wipe a whole disk, your home folder or system folders.

Sources: [Apple: Rotate a PDF in Preview](https://support.apple.com/guide/preview/prvw11567/mac), [PDF24 Creator (free, offline, Windows)](https://tools.pdf24.org/en/creator), [qpdf manual: page rotation](https://qpdf.readthedocs.io/en/stable/cli.html).

## Related problems

- [Reorder the pages of a double-sided scan and remove the blanks](https://stella.sh/how/pdf-excel/reorder-pdf-pages.md)
- [Make a scanned PDF searchable](https://stella.sh/how/pdf-excel/make-scanned-pdf-searchable.md)
- [Convert a PDF to JPG, one sharp picture per page](https://stella.sh/how/pdf-excel/convert-pdf-to-jpg.md)
- [Convert bank statement PDFs to Excel](https://stella.sh/how/pdf-excel/bank-statement-pdf-to-excel.md)
- [Reduce PDF file size when it's too large to email](https://stella.sh/how/pdf-excel/compress-pdf-too-large-to-email.md)
- [Combine multiple Excel files into one sheet](https://stella.sh/how/pdf-excel/combine-excel-files-into-one-sheet.md)

Get Stella: https://stella.sh/download. Free with the ChatGPT or Claude plan you already have.
