Skip to content
DevToolKit

Rotate PDF

Rotate PDF pages by 90, 180, or 270 degrees. Rotate all pages at once or select individual pages for rotation. Completely client-side — no files leave your browser. Fix scanned documents and correct page orientation instantly.

pdf

Drop your PDF here, or click to browse

Files are processed entirely in your browser — never uploaded

Processed locally
Was this tool helpful?

How to Use

Correct page orientation in your PDF:

  1. Upload your PDF — Drag and drop the file or click to browse. The tool displays thumbnail previews of all pages with their current orientation.
  2. Select pages to rotate — Click individual page thumbnails to select them, or use "Select All" to apply rotation to every page at once.
  3. Choose rotation direction — Click the rotation buttons to rotate selected pages 90 degrees clockwise, 90 degrees counter-clockwise, or 180 degrees. Each click updates the thumbnail preview.
  4. Review the result — Verify the orientation of each page in the thumbnail strip before saving.
  5. Download the rotated PDF — Click "Download" to save the corrected file with all rotation changes applied.

The rotation is applied by modifying the page dictionary's /Rotate entry, not by transforming the content stream. This means the operation is instantaneous regardless of page complexity — a page with hundreds of images and thousands of text fragments rotates just as quickly as a blank page.

About This Tool

PDF page rotation operates through a dedicated mechanism defined in section 7.7.3.3 of the PDF specification (ISO 32000-2:2020). Each page dictionary can contain a /Rotate entry — an integer that specifies the number of degrees the page should be rotated clockwise when displayed or printed. Valid values are 0, 90, 180, and 270; any value outside this set is treated as 0 by conforming readers. This rotation is a display-time property: it instructs the viewer to rotate the rendered output, not the underlying content data.

The distinction between display rotation and content transformation is fundamental. A page with /Rotate 90 contains the same content stream operators — the same text positioning, the same image coordinates, the same path definitions — as the unrotated version. The viewer applies a coordinate system transformation at render time, rotating the user space by the specified angle around the origin and adjusting the media box accordingly. This means rotation does not alter any bytes in the content stream, making it an intrinsically lossless operation with zero risk of quality degradation.

The /Rotate property is inheritable through the page tree. If a /Rotate value is set on a parent node of the page tree (for example, the root /Pages dictionary), all descendant pages inherit that rotation unless they specify their own /Rotate value. This inheritance mechanism allows rotating all pages in a document by setting a single value on the root node, but it also introduces a subtlety: when rotating individual pages, the tool must ensure the per-page /Rotate value explicitly overrides any inherited value rather than being additive.

The media box and crop box define the physical and visible boundaries of a page. When rotation is applied, the viewer swaps the width and height of these boxes for 90-degree and 270-degree rotations. A letter-sized page (612 x 792 points) with /Rotate 90 is displayed as 792 x 612 points — effectively landscape orientation. The box coordinates themselves remain unchanged in the page dictionary; the dimensional swap is handled entirely by the rendering engine at display time.

Annotations, form fields, and interactive elements on rotated pages require special consideration. Annotation rectangles (/Rect entries) are defined in the default (unrotated) user space. When the page is displayed with rotation, the viewer transforms annotation positions along with the page content. Well-formed PDFs maintain annotation positions that are consistent with the content they annotate regardless of the /Rotate value. However, some PDF generators incorrectly position annotations relative to the rotated view, which can cause misalignment when the rotation is changed.

Why Use This Tool

Page rotation issues are surprisingly common, and fixing them quickly is essential for professional document presentation:

  • Scanned document correction — Automatic orientation detection in scanners frequently fails with landscape pages, forms with mixed orientations, and pages with sparse text. A single misrotated page in a multi-page scan disrupts the reading flow and looks unprofessional.
  • Mobile phone scans — Camera-based scanning apps on smartphones sometimes embed the image with the wrong orientation metadata, especially when the phone is held at an angle. Rotating the affected pages restores correct viewing.
  • Presentation formatting — Slide decks exported as PDFs sometimes have a mix of landscape and portrait pages. Standardizing orientation ensures consistent viewing in presentation mode and prevents jarring transitions between slides.
  • Print preparation — Printers require correct page orientation for proper duplex printing, binding, and imposition. A rotated page in a print-ready PDF will print sideways, wasting paper and requiring a reprint run.
  • Legal filing compliance — Court electronic filing systems (ECF) require documents in portrait orientation. Exhibits scanned in landscape must be rotated before submission to meet filing requirements.
  • Accessibility — Screen readers and reflow engines interpret text based on the content stream coordinates and the rotation property. An incorrectly rotated page can cause assistive technology to read text in the wrong order or direction, making the document inaccessible to users who rely on these tools.

Since rotation modifies only a single numeric property per page, it is the fastest PDF operation possible. The entire document can be rotated in milliseconds, regardless of file size or page complexity, because no content is re-encoded. This tool applies the rotation locally in your browser, so even multi-hundred-megabyte PDFs process instantly.

FAQ

Does rotating a PDF affect the content quality?
No. PDF rotation modifies only a numeric property (the /Rotate entry) in each page dictionary. The actual content streams, images, fonts, and vector graphics remain completely untouched. Rotation is a lossless metadata operation — no content is re-encoded or re-rendered.
Can I rotate individual pages differently?
Yes. After uploading the PDF, you can select individual pages and apply different rotation angles to each one. For example, you can rotate pages 3 and 7 by 90 degrees clockwise while leaving all other pages unchanged.
Why is my scanned PDF sideways?
Most document scanners detect page orientation automatically, but they sometimes guess incorrectly — especially with landscape-oriented pages, mixed content, or pages with minimal text. The scanned image is embedded at the detected orientation, and rotating the PDF corrects the display without rescanning.
Is this done without uploading my file?
Yes. The rotation is performed entirely in your browser using JavaScript. Your PDF never leaves your device, and no network requests are made during processing. This ensures full privacy for sensitive documents.