Rotate PDF
Rotate PDF pages 90, 180, or 270 degrees. Apply to all pages or specific pages, browser-side.
Why rotate PDF pages?
PDF page rotation fixes the orientation of pages that are sideways or upside-down. Common causes: smartphone-scanned documents (some pages captured in landscape vs portrait), legacy scanners that captured pages at wrong orientation, mixed-orientation source documents merged into one PDF, or simply pages that were inserted incorrectly. Without rotation, readers have to tilt their head or print the document just to read it. Rotation is reversible and non-destructive – the content is identical, just displayed at a different angle. This tool rotates pages 90, 180, or 270 degrees (or any combination by applying multiple rotations) entirely in your browser using pdf-lib.
How to use this tool
- Upload your PDF — Click or drag a PDF file. Tool reads page count and prepares for rotation.
- Choose rotation angle — 90° clockwise (for documents tilted left), 180° (for upside-down), or 270° (90° counter-clockwise) – for documents tilted right.
- Choose scope — All pages: apply rotation to every page. Specific pages: enter page numbers/ranges like ‘1, 3-5’.
- Click ‘Rotate & Download’ — Rotated PDF downloads automatically. Original file is unchanged.
PDF rotation mechanics
PDF rotation works by setting the ‘Rotate’ property of each page. The PDF viewer displays the page rotated by that angle, but the underlying content is unchanged – same text, same images, same layout. This is fundamentally different from rotating in image editors (which physically transforms pixels).
Rotation angles:
- 0°: Normal (default)
- 90°: 90° clockwise (top of original page becomes right side)
- 180°: Upside down
- 270°: 90° counter-clockwise (or equivalently, 90° clockwise three times)
Rotations are cumulative – applying 90° twice = 180°. You can rotate a page multiple times to reach any of 4 orientations.
The library uses PDFLib.degrees(angle) to set page rotation. Existing rotations are preserved – the new rotation is added (mod 360).
Examples
- Scanned 10-page document, all sideways: Rotate all 90° clockwise to make portrait readable
- Mixed orientations – pages 1-5 normal, pages 6-10 upside down: Apply 180° to pages 6-10 only
- Smartphone scan: page 3 only is rotated: Range ‘3’ with 90° rotation
- Old book scan with right-tilted pages: Rotate all 270° (90° counter-clockwise)
- Multi-page form with landscape and portrait mixed: Identify landscape pages, rotate them 90° to portrait
Tips & best practices
- Verify by opening rotated PDF before sharing – PDF viewers respect the rotation flag
- If document looks correct in your viewer but wrong in another viewer, the issue may be the original PDF using non-standard rotation – re-rotate as needed
- Rotating doesn’t change file size or quality – the content is unchanged
- For documents needing different rotations per page (some 90°, some 180°), use the ‘specific pages’ option twice with different rotations
- Rotations are cumulative – if you rotated wrong direction, rotate twice more in the same direction (90+90+90 = 270 = -90)
- Test on a copy first if the document has digital signatures – signatures may need re-validation after rotation
Limitations & notes
Rotation is page-level only – cannot rotate individual elements within a page. For per-element rotation (e.g. rotating just a logo on a page), you need image editing or vector tools. Cannot rotate by arbitrary angles (only 90° increments). Some old PDFs may have hardcoded orientation that this tool can’t override – if rotation doesn’t take effect, the PDF may need re-saving in modern PDF format first.
Frequently Asked Questions
Why are some scanned pages always sideways?
Smartphone scanning apps may capture pages in landscape mode while you hold the phone vertically. The resulting PDF has portrait orientation expected but landscape content. Easy fix: rotate the affected pages 90° to match content orientation.
Will rotation change file size?
Minimal change. Rotation only sets a flag in the PDF page properties – actual content is unchanged. File size may vary by 1-2 KB due to PDF structure updates. No re-encoding happens.
Can I rotate just one page out of many?
Yes – use ‘Specific pages’ option, enter just the page number (e.g. ‘3’). Or specify multiple: ‘3, 5-7, 10’ applies rotation to pages 3, 5, 6, 7, and 10.
What if my pages need different rotation amounts?
Apply different rotations in multiple passes. Example: rotate pages 1-3 by 90°, then rotate pages 4-6 by 180°. Each pass creates a new output PDF; use Merge PDF if you want them combined into one.
Why is my PDF still showing wrong after rotation?
Common issues: (1) Browser caching – hard refresh (Ctrl+Shift+R) the viewer. (2) Some old PDF viewers don’t respect rotation flags. (3) The PDF was created from images with embedded rotation – may need image-level rotation. Test in multiple viewers.
Can rotation invalidate digital signatures?
Possibly – signatures may need re-validation after rotation since the PDF object structure changes. For legally-signed documents, ask the signer to re-sign after rotation if needed. Otherwise, rotate first and sign after.
Is the original file modified?
No – this tool reads the original, creates a new PDF with rotation applied, and downloads it. Original is unchanged. Always good practice to save with a new name (e.g. ‘document-rotated.pdf’).
