Skip to main content
Online PDF Editor Team

How to Rotate a PDF (Fix Upside-Down Pages) — Instant Fix

Rotate PDF pages — 90°, 180°, 270°, or auto-detect. Batch rotate scans, fix sideways pages. Free, private, browser-based.

rotate pdfrotate pdf pagesfix upside down pdfpdf rotationbrowser-based
PDF page being rotated from sideways to upright orientation

Why Pages End Up Sideways

PDF pages have a rotation property (0, 90, 180, 270 degrees). It's metadata — the page content doesn't change, just the "view this way" flag. But viewers don't always respect it, and creators don't always set it.

Common Causes

  • Scanner feed: Document fed sideways → pages saved at 90° or 270°
  • Phone camera: Photo of document held in portrait → landscape PDF
  • Mixed sources: Merging PDFs with different rotations
  • Print-to-PDF: Driver sometimes writes wrong rotation
  • Viewer bugs: Some viewers ignore rotation flag

Our Rotate PDF tool fixes the rotation flag (and optionally rewrites content streams for stubborn viewers). Client-side, free, batch-capable.

How to Rotate a PDF Online

Step-by-step

  1. Open onlinepdfeditors.com/rotate-pdf
  2. Drag your PDF in
  3. Thumbnails load — see current orientation
  4. Select pages:
    • All pages (default)
    • Click thumbnails to select specific pages
    • Shift+click for range, Ctrl/Cmd+click for multi-select
  5. Choose rotation:
    • 90° CW (clockwise)
    • 90° CCW (counter-clockwise)
    • 180° (upside-down → right-side-up)
    • Auto-detect (reads content orientation)
  6. Click Rotate PDF
  7. Download

Rotation Options

90° CW / CCW

Standard quarter-turn. Fixes landscape↔portrait mismatches. CW = right turn, CCW = left turn.

180°

Upside-down → right-side-up. Common with duplex scans where back side feeds inverted.

Auto-Detect

Analyzes page content (text direction, image orientation) and applies the rotation that makes text readable. Works on text pages. Less reliable on image-only pages.

Rewrite Content Streams (Advanced)

Some viewers (older, non-standard) ignore the rotation flag. "Rewrite" physically rotates the page content stream (glyphs, images, vectors) and resets rotation to 0°. Guaranteed to display correctly everywhere. Slightly slower, larger output (content streams duplicated). Use if rotated PDF still shows sideways in a specific viewer.

Batch Rotate Scans

50-page scan, every other page upside-down (duplex feeder quirk). Rotate PDF handles it:

  1. Load 50-page PDF
  2. Select all (Select All button)
  3. Choose 180° (if every page upside-down) or select odd/even pages for alternating fix
  4. Rotate → single operation, 50 pages fixed in milliseconds

Auto-Detect Orientation

Mixed batch: some pages portrait, some landscape, some upside-down. Auto-detect analyzes each page:

  • Text pages: detects dominant text baseline angle
  • Image pages: uses EXIF orientation if present, else analyzes image content
  • Applies per-page rotation

Not 100% perfect (abstract images confuse it), but 95%+ on typical documents. Review thumbnails after — manual override for any mistakes.

Fixing Printing Orientation Problems

"My PDF prints sideways!" Usually one of two issues:

1. PDF Rotation Flag Wrong

Printer driver reads rotation flag, rotates page. If flag says 90° but content is already upright → double rotation = sideways. Fix: Rotate PDF with "Rewrite Content Streams" → resets flag to 0°, content physically rotated.

2. Page Size Mismatch

PDF page is 11×8.5 (landscape) but printer expects 8.5×11 (portrait). Driver rotates to fit. Fix: ensure page size matches content orientation. Rotate PDF doesn't change page dimensions — only rotation. For size issues, use PDF to JPGJPG to PDF with correct page size.

FAQ

How do I rotate a PDF for free?

Open onlinepdfeditors.com/rotate-pdf. Drag file. Choose rotation. Apply. Download. Free, no limits, no account, no upload.

How do I fix an upside-down PDF?

Rotate PDF → select pages → 180° → apply. Or Auto-detect.

Can I rotate only some pages in a PDF?

Yes. Click thumbnails to select specific pages (Shift+click range, Ctrl/Cmd+click multiple). Apply rotation only to selected.

Can I rotate a PDF on my phone?

Yes. onlinepdfeditors.com/rotate-pdf works in mobile Safari/Chrome. Touch-friendly thumbnails.

Does rotating a PDF reduce quality?

Standard rotation (flag only): zero quality loss — metadata change only. "Rewrite Content Streams": physically rotates vectors/images — vectors stay perfect, images re-sampled (negligible at 90°/180°).

Why does my PDF print sideways?

Wrong rotation flag (driver double-rotates) or page size mismatch. Fix: Rotate PDF with Rewrite option, or re-create with correct page size via JPG to PDF.

Can I rotate a PDF without uploading?

Yes — client-side tool. Your PDF never leaves your browser. Rotation applied locally via WebAssembly.

How do I rotate a scanned PDF?

Rotate PDF — Auto-detect works well on scans. Or batch-select all → 90°/180°/270° as needed.

Got sideways pages? Open Rotate PDF — auto-detect or manual, batch or single. Free. Private. Instant.