DEV Community

Cover image for πŸ”„ Rotate PDF: Fix the sideways scan β€” and make it stay fixed
Tomaz
Tomaz

Posted on Originally published at tooladda.online

πŸ”„ Rotate PDF: Fix the sideways scan β€” and make it stay fixed

⚑ 10-second version

Someone scanned page 3 upside down. Open tooladda.online/pdf-rotate.html, click that page's rotate button, download. The rotation is written into the file, so it's still right when the next person opens it.

❗ Important

Rotation is lossless here β€” nothing is re-rendered. Text stays selectable, image quality is untouched, and the file size barely changes.


πŸ” Why your rotation "keeps reverting"

This is the actual problem people are searching for, and it has a specific cause.

There are two completely different rotations:

Viewer rotation Saved rotation
How you do it The rotate button in Chrome's PDF viewer, Preview, or Edge A tool that rewrites the file
What changes How your screen displays it, right now The page's /Rotate property inside the PDF
Survives closing the file? ❌ No βœ… Yes
Survives emailing it? ❌ No β€” recipient sees it sideways βœ… Yes
Survives printing? Usually no βœ… Yes

Your browser's rotate button is a view setting, not an edit. It rotates the picture on your monitor and forgets the moment you close the tab. Everyone you send the file to still gets it sideways, and it still prints sideways.

This tool changes the second one. The rotation becomes part of the document.

The other thing to know: 90Β° vs 270Β°

Getting this backwards is the single most common re-do:

The page is… Rotate by
Sideways, text reads bottom-to-top (rotated left) 90Β° clockwise
Sideways, text reads top-to-bottom (rotated right) 270Β° (i.e. 90Β° anticlockwise)
Upside down 180Β°

Easier still: rotate, look at the thumbnail, and if it's wrong go the other way. The thumbnails here update live so you don't have to reason about it.


🧭 How it works

Diagram


✨ What's inside

### πŸ“„ Per-page control Rotate only page 3, or only the landscape tables, without touching the pages that are already correct. ### πŸ’Ύ Permanent, not cosmetic The rotation is written into the document, so it holds when you email it, print it, or merge it into something else.
### πŸ‘οΈ Live thumbnails See each page's orientation as you change it. No need to work out whether you want 90Β° or 270Β° β€” just look. ### πŸͺΆ Lossless and instant No re-rendering, so a 300-page document rotates in a second with zero quality change.

πŸ› οΈ Real jobs

Situation What you do
πŸ“  Scanner fed a page sideways Rotate that page, save, resubmit.
πŸ“Š Landscape tables in a portrait report Rotate just those pages so they read properly.
πŸ“± Photographed a document in landscape Fix orientation before converting or merging.
πŸ“€ Portal rejected the file Some checkers flag wrongly-oriented pages.
πŸ–¨οΈ Printing came out sideways Because the rotation was only a view setting. Fix it here.
πŸ”— Merging documents from different sources Normalise orientation before combining.

πŸ“– Four steps

1.  Open   β†’  tooladda.online/pdf-rotate.html
2.  Drop   β†’  your PDF
3.  Rotate β†’  click the pages that are wrong (thumbnails update live)
4.  Save   β†’  download β€” the rotation is now part of the file
Enter fullscreen mode Exit fullscreen mode

β–Ά Rotate now β€” tooladda.online/pdf-rotate.html

πŸ’‘ Tip

Fix rotation before you merge, compress or convert. Getting orientation right first means every downstream step inherits the correct page β€” and you don't discover the problem after building a 12-document bundle.


❓ FAQ

Is it free?

Free, no watermark, no signup, no page limit beyond your device's memory.

Why does the rotate button in my browser not stick?

Because it's a view setting, not an edit. It changes how your screen shows the page and is forgotten when you close the file. This tool writes the rotation into the document.

Does rotating reduce quality?

No. It sets a page property β€” nothing is re-rendered or re-compressed.

Can I rotate only one page?

Yes, page by page. You can also rotate everything at once.

90Β° or 270Β°?

If the text reads bottom-to-top, use 90Β° clockwise; if top-to-bottom, use 270Β°. Or just click and watch the thumbnail.

Is my file uploaded?

No β€” everything happens in your browser.


πŸ”¬ Under the hood

  • Sets each page's /Rotate value in the PDF itself, client-side in vanilla JavaScript.
  • No rasterisation, so the operation is lossless and near-instant regardless of page count.
  • Thumbnails rendered locally for live verification.
  • Works offline once loaded.

Originally published on ToolAdda, where Rotate PDF runs free in your browser β€” nothing is uploaded, nothing leaves your device.

Top comments (0)