PDF Rotate

Upload a PDF, check the thumbnails, then pick the rotation direction. Fix mis-oriented scans, single-page orientation errors, and flipped duplex scans right in the browser.

Related

What is PDF rotation?

PDF rotation is a geometric transformation of 90deg/180deg/270deg applied to PDF pages. Unlike a viewer's temporary rotation, our rotation is saved into the PDF, the file's own orientation is changed, and every reader will display it correctly.

**Difference from EXIF orientation:** JPEG and other images have an EXIF Orientation tag, but PDF has no equivalent mechanism. PDFs of phone-shot pages do not have EXIF, so a wrong orientation must be fixed by rotating pixels. This tool performs a real saved rotation by modifying the /Rotate value in each PDF page dictionary.

**Batch orientation fix:** Scanning 100 receipts may produce a mix of landscape and portrait pages. This tool supports per-page angle assignment, unifying 90deg/180deg/270deg rotation without processing each page one by one.

**Difference from print rotation:** A printer's rotation is display-only and does not change the orientation of the PDF itself. The rotation in this tool is permanently written into the PDF, so it works for on-screen reading, image export, and email attachments.

Use Cases

  • Scans or phone-photo PDFs with some pages in the wrong orientation that need rotation
  • Phone-shot PDFs in mixed landscape and portrait that should be unified to one orientation
  • Duplex scans whose back sides are flipped (180deg) fixed in one click
  • Contracts or reports with mixed orientations unified into an easy-to-read direction
  • A single page in a PDF that needs its own rotation (e.g., one special landscape page)
  • Quickly adjusting PDF orientation without opening Adobe Acrobat

How to Use

  1. Upload the PDF to rotate (batch upload supported)
  2. Choose a rotation mode: rotate all pages uniformly, or set rotation per page
  3. Preview each page's thumbnail and confirm the angle (90deg / 180deg / 270deg)
  4. Click Start Rotation and download the rotated PDF

Features

  • Four rotation angles: 0deg / 90deg / 180deg / 270deg, with an angle dropdown for every page
  • Whole-document rotation: apply the same rotation to every page in one click
  • Per-page rotation: assign a separate angle to each page for mixed-orientation scans
  • Batch setting: multi-select pages and apply the same angle at once, ideal for mixed-orientation PDFs
  • Live thumbnail preview: a thumbnail for every page, click to view the large rotated result
  • Pure local browser processing: built on pdf-lib, all computation runs in the browser, files are not uploaded
  • Lossless permanent rotation: only modifies the page /Rotate field, no re-render, no recompression, 100% quality preserved

PDF Rotation vs Re-export vs Re-scanning

When a PDF page is in the wrong orientation there are three approaches, and our Rotation tool is just the fastest one. Diagnose the root cause of the orientation error first, then pick a tool, to avoid wasted effort.

PDF rotation vs re-exporting the source file vs re-scanning: how to choose?

All three methods can fix PDF page orientation, but their cost and suitable scope are completely different.

MethodBest ForCostReversibleVerdict
This tool's PDF rotationPage content is correct, only orientation is wrong (upside-down scans, sideways phone photos)Done in seconds, no quality loss, no size changeYes, rotate once more to undoTop choice
Re-export PDF from Word/PagesSource file still available in Word/Pages/Excel and orientation can be resetMust open the source file, reset page orientation, and re-exportConditional, depends on whether the source file still existsOnly if source is easy to get
Re-scan the originalScan itself is severely mis-oriented and the PDF source is no longer traceableNeeds a scanner and the original paper, can be time-consumingNo, irreversible; requires the originalLast resort

Use cases for the four rotation angles in this tool

0deg / 90deg / 180deg / 270deg each match a different original error direction. Choose by error type and you will get it right in one pass.

AngleOriginal wrong orientationOrientation after rotationTypical use case
90deg clockwisePage tilted sideways (fallen to the left)Right side upPhone vertical photo changed to horizontal, scan fed sideways
180degPage upside downUprightADF duplex scan misfeed, scan flipped vertically
270deg clockwisePage tilted sideways (fallen to the right)Right side upLandscape poster rotated 90deg counter-clockwise, PDF tilted to the right
0degNo rotation neededStays the samePages whose orientation is already correct

Best Practices

Look at the thumbnail before clicking rotate, do not guess the angle by feel

**Most PDF rotation failures happen because users guess the angle without checking the orientation first.** After upload, this tool generates a thumbnail for every page, so **click a thumbnail to see the large preview** and identify the error type (sideways, upside down, or completely jumbled), then pick the matching angle. If you guess wrong on one page, **click the 90deg button once more** to fix it, which is far easier than exporting a wrong PDF and coming back. **Never** rely on 'rotate the entire document 180deg' to gamble on orientation. In mixed scans, some pages are correct and some are wrong, and gambling will turn the pages that were already correct into wrong ones.

Some pages in the wrong orientation after rotating the whole document

For mis-oriented scans, use this tool first, not re-scanning or re-exporting

When a scan is in the wrong orientation, the fastest path is rotation with this tool (done in seconds), not re-scanning (slow, needs the original paper) or editing a source file (there is no source file for a scan). **This tool's rotation modifies the /Rotate field, so the size of a few-hundred-KB scanned PDF barely changes after rotation.** **As long as the original PDF still opens, do not go down the re-scanning path.** Re-scanning changes the OCR text, blurs fonts, and inflates file size, all for the worse.

For mixed-orientation scans, use per-page settings, not rotate-all

When scanning 100 receipts, contracts, or reports, **you will often get a mix of landscape and portrait pages**, usually because the scanner's automatic document feeder (ADF) was mixed-loaded or the operator placed pages unevenly. **Correct approach**: after upload, click Select All pages, then deselect, then click each thumbnail individually to open the large preview on the right, and set 90deg / 180deg / 270deg only on the mis-oriented pages. **Wrong approach**: choose 'rotate all 90deg' to make every page landscape; pages that were already correct will be rotated incorrectly. In these mixed cases, **per-page setting is reasonable for up to 10 pages**, because each setting is permanently written into the PDF, so you do not have to do it again.

Can I rotate only specific pages?

Encrypted PDFs must be decrypted before rotation

PDFs with an open password or a permissions password **cannot be rotated directly by this tool**; pdf-lib raises an error when loading an encrypted document. The correct order is: use `/pdf/decrypt/` to remove the password first, download the decrypted PDF, then upload it here to rotate. **Never** try to skip the decryption step, or the tool will simply throw an error with no recovery path. This is a common node in the PDF processing pipeline. Remember the order 'decrypt first, then edit, then re-encrypt' to save a lot of trial and error.

Rotation failed on an encrypted PDFPDF Decrypt tool

After rotating a phone-photo PDF, also check the text orientation

Phone-photo PDFs are usually 'generated by a phone scanning app', where the text inside is actually an image. After this tool rotates them, page orientation is fixed, but **the text inside the image does not rotate automatically**; that is the essential difference between image rotation and PDF rotation. If the page orientation is right but the text is sideways, the original photo was already taken in the wrong direction, so **the correct fix is to re-shoot the photo**, or to straighten the image first and then generate the PDF. This tool handles PDF page orientation, not the pixel orientation of images inside a page.

Verify the exported file right after rotation, do not assume success

After downloading the rotated PDF, **open it in your browser or PDF reader right away** to check that the orientation of the first and last page is correct. In rare cases (for example, PDFs containing complex XFA forms or unusual page dictionaries), the rotation result may not match your expectation. In that case, **uploading once more** usually fixes it; pdf-lib corrects its internal state on the second parse. **Do not assume 'downloaded equals success'**, validate before delivering.

The downloaded PDF will not open

FAQ

Will the rotated PDF's clarity change?

No. This tool is built on pdf-lib and only modifies the /Rotate property in the PDF page dictionary, which is a lossless pure geometric transformation. It does not re-render or recompress, so quality is identical to the original.

Can I rotate only specific pages?

Yes. The tool supports a 'per-page rotation' mode: each page has its own orientation dropdown where you can set 0deg / 90deg / 180deg / 270deg. For example, in a scanned document you can keep odd pages portrait and rotate even pages landscape, all in one pass.

Will the PDF's file size change after rotation?

Almost no change. Only the page /Rotate field is modified, so the file size varies by less than 1%. This is completely different from 'image rotation', which renders content as an image and rotates it.

Will rotation affect the PDF's text, links, and forms?

No. Text character orientation adjusts automatically with the page rotation, links and form interaction positions stay in place, and all elements continue to work normally.

Which PDF versions are supported?

All versions from PDF 1.4 to PDF 2.0 are supported. For encrypted PDFs, use /pdf/decrypt/ to remove the password first. Encrypted PDFs can be rotated, but must be unlocked first.

After rotation, the PDF is the wrong way around in some readers?

Very rare. Some older PDF readers (e.g., older PDF.js) may not read the /Rotate field. Please upgrade to the latest Adobe Reader / Foxit / or the built-in PDF viewer in Chrome.

Why am I still seeing the old version after rotation?

It is probably cache. Please hard-refresh the browser (Ctrl+Shift+R or Cmd+Shift+R). PDF readers cache files they have opened before.

Will PDF rotation upload my file to a server?

This tool runs entirely in the browser using pdf-lib. Your file never leaves your machine and is cleared on refresh or close, so it is safe and reliable.

Troubleshooting

Some pages are still wrong after rotating the whole document

Switch to 'per-page rotation' mode. For scans with mixed orientations, batch rotation only works on documents whose orientation is consistent across all pages.

PDF form controls are misaligned after rotation

Very rare. If it happens, check whether the PDF contains complex XFA forms (Acrobat-specific). XFA forms need adjustment after rotation.

Rotation failed on an encrypted PDF

Use /pdf/decrypt/ to remove the password first, then use this tool.

The downloaded PDF will not open

Check that the file is fully downloaded (size greater than 0 KB). If the issue persists, please share a sample file with the developer for investigation.

Glossary

/Rotate
The rotation property in a PDF page dictionary, taking values 0/90/180/270. This tool achieves lossless rotation by modifying this field.
Page orientation (Portrait / Landscape)
Portrait is vertical (height greater than width), Landscape is horizontal (width greater than height). The 90deg and 270deg rotations in this tool change the page orientation, while 180deg does not.
Per-page orientation
Setting a different rotation angle for each page. Suited to mixed scans where some pages are landscape and some portrait.
Text matrix (Tm / Td / Tx / Ty)
Direction units of the text stream in a PDF. After rotation, text matrices adjust accordingly so text is not shown rotated by 90deg. This tool handles this automatically.
MediaBox / CropBox
The visible boundary of a PDF page. After rotation, MediaBox automatically swaps width and height, and text and image content rotate accordingly. This tool uses the standard pdf-lib processing.

Comparison of the four rotation angles

Choose the right angle for each orientation.

AngleEffectTypical use case
0degNo changeNo rotation needed
90deg clockwisePortrait to landscapePhone vertical photo to horizontal, landscape poster
180degFlips top to bottomADF duplex scan misfeed, upside-down fix
270deg clockwisePortrait to landscape (other way)Rotate 90deg counter-clockwise

PDF rotation vs image rotation

The two kinds of 'rotation' each have pros and cons. Understand them and pick the right one.

DimensionPDF rotation (this tool)Image rotation
PrincipleModify page /Rotate fieldPixel coordinate rotation and re-render
Quality100% preservedMay introduce interpolation blur after rotation
Text searchablePreservedMay degrade to image
File sizeUnchangedUsually grows
ReversibleRotate again to undoMust rotate again manually
Best forText-based PDFsImage-based scan PDFs (not recommended)

Five PDF rotation scenarios and recommended actions

Covers daily office, teaching, legal, and other high-frequency scenarios.

ScenarioRecommended modeWhy it helps
ADF duplex scan flippedRotate the whole document 180degQuickly fix back-side order
Mixed landscape/portrait scanPer-page rotationUnify into a readable direction
Phone-photo PDFPer-page rotation 90degRestore correct orientation
Contract cross-page signatureRotate single page on demandKeep signature direction right
Textbook landscape chartAssign 90deg to a specific pageKeep portrait while reading

Authoritative References