PDFCloak
LOCAL
HomeRotate PDF

Rotate PDF

Fix scans, reorder pages, delete pages — visual editor.

In-browserNo upload

Sideways pages happen constantly. A scanner feeds a landscape document as portrait. A phone camera captures a receipt at the wrong angle. Someone assembles a PDF from mixed sources and one section ends up upside down. Rotating fixes this without touching the actual content of the page — no quality loss, no reflowed text, no moved images. This tool lets you rotate any page by 90, 180, or 270 degrees, individually or in bulk, right in your browser.

Local-only session
Files processed inthis browser tab
Bytes sent to server0 / 0
Tab close discardseverything
Enginepdf-lib · client-side

Sideways pages happen constantly. A scanner feeds a landscape document as portrait. A phone camera captures a receipt at the wrong angle. Someone assembles a PDF from mixed sources and one section ends up upside down. Rotating fixes this without touching the actual content of the page — no quality loss, no reflowed text, no moved images. This tool lets you rotate any page by 90, 180, or 270 degrees, individually or in bulk, right in your browser.

When to use this tool

Rotation is a quick fix for orientation problems. You will reach for it in situations like:

  • Correcting scanned documents. Flatbed and sheet-fed scanners sometimes auto-detect orientation incorrectly, especially with documents that mix landscape tables and portrait text on different pages.
  • Fixing phone-captured PDFs. Mobile scanning apps create PDFs from camera images, and the resulting page orientation depends on how you held the phone. Pages from different capture sessions may face different directions.
  • Preparing documents for binding or presentation. A landscape spreadsheet inserted into a portrait report needs to be rotated so readers do not have to turn their screen or printed page sideways.
  • Repairing PDFs from unreliable sources. Documents downloaded from government portals, insurance companies, or legacy systems occasionally have pages stored in unexpected orientations.
  • Adjusting before merging. If you are combining files from different sources and one has sideways pages, rotate first, then merge. This saves you from having to fix orientation in a larger, combined document.

How PDF page rotation works

PDF handles page rotation at two distinct levels, and understanding the difference explains why rotation sometimes behaves unexpectedly.

Level 1: The /Rotate key in the page dictionary. Every page in a PDF has a dictionary — a collection of key-value pairs that define its properties. One optional key is /Rotate, which accepts values of 0, 90, 180, or 270. This tells the PDF viewer to rotate the page's rendering by that many degrees clockwise before displaying it. The content stream itself — the instructions that draw text, lines, and images — is unchanged. The viewer simply applies a rotation transform at display time.

This is the most common rotation method because it is lightweight. Changing a page's orientation is as simple as writing /Rotate 90 into the page dictionary. The content stream stays untouched. File size barely changes.

Level 2: Content stream transformation. The content stream is the sequence of drawing operators that actually places content on the page. It uses a coordinate system where the origin sits at the lower-left corner of the page. If someone created a landscape document by writing content rotated 90 degrees within the content stream (using a transformation matrix, commonly called the CTM), the page may technically have a /Rotate value of 0 — the content is already physically rotated in the stream.

When you encounter a page that looks correct in some viewers but sideways in others, this dual-layer system is usually the cause. Sophisticated viewers respect the /Rotate flag; some simpler ones skip it and render the raw content stream.

Our tool modifies the /Rotate value in the page dictionary. This is the standard, non-destructive approach. The content stream is not rewritten, so there is zero risk of degrading text quality, shifting image positions, or breaking complex vector graphics. The change is a metadata-level operation.

For the occasional document where /Rotate has no visible effect (because the content was pre-rotated in the stream), the tool adjusts the content stream's transformation matrix to achieve the desired visual result. This is more involved but still does not re-encode images or alter text glyph data.

Common issues

Rotation not appearing in a specific viewer. As noted above, some PDF viewers do not honor the /Rotate page dictionary entry. This is a viewer limitation, not a problem with the file. Adobe Acrobat, Chrome's built-in viewer, Preview on macOS, and all modern viewers handle /Rotate correctly. If you are targeting an older or embedded viewer that ignores it, let us know — there are workarounds involving content stream manipulation, but they are rarely necessary.

Content that was pre-rotated in the stream. Some PDF generators (especially older CAD software and certain accounting systems) create landscape pages by rotating content within the content stream rather than setting /Rotate. These pages appear landscape despite having portrait page dimensions and /Rotate 0. Rotating such a page by 90 degrees using /Rotate can result in content appearing at an odd angle because the viewer applies both the stream rotation and the /Rotate flag. The correct fix is to set /Rotate to compensate — typically 270 to cancel out a 90-degree stream rotation — or to transform the content stream directly.

Scanned documents with mixed orientations. A multi-page scan might have pages facing all four directions. There is no automatic detection in our tool — you need to visually identify which pages need rotation and in which direction. The thumbnail view makes this straightforward. Select the offending pages, rotate them to match the rest, and save.

Rotation interacting with crop boxes. PDF pages can have multiple box definitions: MediaBox (full page), CropBox (visible area), BleedBox, TrimBox, and ArtBox. Rotation applies to the MediaBox dimensions and the content rendering. If a page has a CropBox that is not square, rotating 90 degrees may expose content that was previously outside the visible crop area, or hide content that was visible. This is uncommon in typical documents but can surprise users working with professionally prepared print files.

Printer auto-rotation conflicts. Many printer drivers detect whether a page is portrait or landscape and rotate it to match the paper orientation. After you manually rotate a page, the printer might "helpfully" rotate it back. The solution is to disable auto-rotate or auto-center in the print settings dialog and select "actual size" for scaling.

What to expect from our tool

Load your PDF and you will see a thumbnail strip showing every page. Pages that need rotation are usually obvious at a glance. Select one page or several, click the rotation button (90, 180, or 270), and the thumbnails update instantly so you can confirm the result before saving.

Processing is nearly instant. Rotation modifies a few bytes per page — there is no heavy computation involved. A 1000-page document rotates just as fast as a 5-page one.

The output file is the same size as the input, give or take a few bytes. All content is preserved: text remains searchable, links keep working, form fields stay interactive, and images are not re-encoded. The only change is the orientation of the pages you selected.

Related tools
What the tool does

Built for documents you can't afford to lose.

Runs in your browser
No server round-trip. Your file is processed by WebAssembly right in this tab.
Preserves quality
No re-encoding by default. Structure, links, and metadata survive intact.
Nothing to leak
Files never leave your device. Close the tab and everything is gone.
Rotate PDF · FAQ

About this tool, specifically.