PDF Tool

Rotate PDF

Rotate individual pages or all pages at once — left, right, or 180°. Live thumbnail preview, text always stays selectable.

Advertisement
Advertisement
📋

About This Tool

Rotate PDF rotates individual pages or all pages in a PDF by 90°, 180°, or 270° — with a visual thumbnail grid for page-by-page control. Download the result as a standard PDF.

🛠

How to Use

  1. Upload a PDF.
  2. Thumbnails of all pages appear — click ↺ or ↻ to rotate each page.
  3. Use "Rotate All Left/Right" for bulk rotation.
  4. Page thumbnails show the current rotation visually.
  5. Click Apply & Download to save the rotated PDF.
⚙️

Logic & Algorithm

Thumbnails are rendered using PDF.js with CSS transform: rotate() applied for live preview (no re-render needed per click). On save, pdf-lib loads the original bytes fresh, iterates all pages, and calls page.setRotation(degrees(originalAngle + userDelta)). Using a fresh load prevents rotation values from stacking on repeated saves.

Frequently Asked Questions

Does rotating a PDF upload my file anywhere?
No. Everything runs locally in your browser using PDF.js (for thumbnails) and pdf-lib (for applying rotations). Your file never leaves your device.
Will text stay selectable after rotating?
Yes. pdf-lib encodes the rotation as metadata without rasterizing any content. Text, hyperlinks, vector graphics, and fonts are all preserved exactly as in the original.
Can I rotate just some pages and leave the rest?
Yes. Use the ↺ or ↻ buttons on individual page cards. Only the pages you rotate will be changed — pages with no rotation badge keep their original orientation.
Can I rotate a password-protected PDF?
No. Use the PDF Password Remover to unlock the file first, then rotate it here.
Why are thumbnails still loading after I open the PDF?
Thumbnails are rendered page-by-page in the background using PDF.js. You can start rotating pages immediately — the rotation controls work independently of thumbnail loading.