PDF

Rotate PDF and Save: Selected Pages, Original Order and Relative Angles

·

Rotate PDF applies one chosen clockwise angle to the selected pages of a supported local document, then creates a downloadable PDF containing every source page in its original position. Choose unique physical page numbers or leave the selection blank for all pages. Inspect the saved result in the reader where you will use it.

The operation updates rotation metadata in the loaded PDF without rendering its pages into images. The selected angle is added to each page’s existing rotation; it does not automatically detect upright content. A temporary viewer rotation, repeated selections and repeating the action have different meanings from saving another turn into the result.

Rotate PDF

Choose one PDF, rotate selected pages and download the result

Use Choose PDF files or drop one supported local PDF into the workspace. Wait for the source page count. Enter the physical positions to rotate in the file’s Pages field, or leave it blank for every page, then choose an angle and press Rotate PDF.

The angle selector starts at 90° and offers 90°, 180° and 270° clockwise. It applies the same added angle to every selected page. There is no 0° option, per-page angle editor, thumbnail arrangement or automatic orientation detector in this workspace. Download the generated document after checking it.

  • Check the source positions and existing orientation before choosing an angle.
  • Use unique page numbers; repeated or overlapping selections cannot be exported.
  • Keep the original and inspect the downloaded file in your intended PDF reader.

MDN: local files and the File APIMDN: Web Worker messaging and lifecycle

Select unique physical pages rather than output occurrences

The Pages field accepts ASCII decimal numbers, commas and ascending hyphen ranges. Blank or whitespace-only text selects all source pages. 1,3 targets source positions 1 and 3; 3,1 targets the same two pages without moving them. Printed page numbers, Roman front matter and PDF page labels are not the range syntax.

The range parser can accept repetitions, but rotation export requires unique physical pages. 3,1,3 and overlapping 1-2,2-3 fail during export rather than silently removing duplicates or rotating the repeated page twice. Out-of-range, descending, zero-page or non-ASCII numeral inputs can prevent processing before export.

Select unique physical pages rather than output occurrences
SelectionRotation behavior
Blank selectionRotate every source page by the chosen angle
1,3Rotate positions 1 and 3; keep every page in place
3,1Target the same pages; do not reorder output
1-2,2-3Reject overlapping pages during export
Printed labels or Roman numeralsUse physical one-based positions instead

W3C PDF17: labels and physical page positions

The output retains all pages in their original order

Selection chooses which pages receive the added rotation. It does not select which pages remain in the output. Unselected pages retain their original positions and rotation. Selecting only page 1 from a three-page source still produces a three-page document.

Changing the order of unique entries in the range field does not change the source page tree. This tool has no page removal, duplication, merge or reorder controls. Use Extract PDF for a selected-page document or Organize PDF for a different planned sequence; these separate tools have their own behavior and limits.

pdf-lib: saving a PDF document

The chosen angle is added to existing rotation

The saved page angle is the original rotation plus the chosen clockwise angle, normalized within a full turn. A source page at 90° plus 90° ends at 180°; adding 270° to that same source ends at 0°. The selector describes an addition, not an absolute target orientation.

Use 180° for an additional half turn. An additional 270° clockwise has the same orientation effect as 90° counterclockwise, although the selector uses clockwise values. One shared angle may not make every page in a mixed-orientation document upright. The workspace has no arbitrary-angle deskew, reflection or crop operation.

The chosen angle is added to existing rotation
Original angleAdded angleSaved angle
90°90°180°
90°270°0°
270°90°0°
0°180°180°

pdf-lib: setting page rotation

Worked selections separate page targets from page order

For these examples, a three-page source has original rotations 90°,0°,270° in source order. The listed output angles always describe pages 1, 2 and 3 in that original order. A selected page receives one addition; unselected pages remain unchanged.

Treat the examples as page-angle calculations, not a promise about where text looks upright in an arbitrary file. Content can have its own transforms, and source geometry or a reader’s temporary view setting can affect the display. Check the actual exported document, especially when pages start with different orientations.

Worked selections separate page targets from page order
Selection / added angleOutput page anglesOutcome
Blank / 90°180°,90°,0°All three pages rotate
3,1 / 180°270°,0°,90°Pages 1 and 3 rotate; source order stays
1 / 270°0°,0°,270°Only the first page rotates
3,1,3 / 90°No outputRepeated physical page is rejected

Repeating Rotate rereads the original input

Each Rotate PDF action reads the selected source File again. It does not replace that input with the previous generated result. Running the same selection and angle again therefore applies the same addition to the original source rotation, rather than adding another turn to the previous result.

To deliberately chain edits, download the result, clear the current input and choose the downloaded file as the new source. The selected angle preference remains, so check it before another run. There is no automatic Use result as input action here. Each newly chosen document must satisfy the same source restrictions.

MDN: local files and the File APIpdf-lib: saving a PDF document

Saving a rotated document differs from rotating a viewer

The generated download stores page rotation in the PDF document. A viewer’s temporary orientation control can change only what you see while the file remains unchanged. Adobe’s help explicitly distinguishes temporary Rotate view from saved page rotation; other readers can have different controls.

After downloading, open the actual generated file rather than an old tab or the original source. Check orientation in the reader or upload workflow you intend to use. The app’s source preview still represents the unchanged source, so its orientation can correctly differ from the result preview.

Adobe: saved page rotation and temporary Rotate viewpdf-lib: saving a PDF document

Rotation updates the loaded document without rasterizing

The rotation path edits the loaded PDF and saves it, keeping every original page instead of assembling a new document from copied page selections. It changes rotation metadata without changing the page’s MediaBox or CropBox dimensions, resampling images or creating a new text layer. Existing scans remain scanned content.

The loaded-document strategy is not a universal guarantee about every form, annotation, bookmark, attachment, accessibility tag, metadata property, PDF version or archival conformance. Review features and appearances in the destination reader. A saved file is a new serialization, not an original-byte identity or hidden-object sanitization guarantee.

pdf-lib: saving a PDF documentpdf-lib 1.17.1: page attributes and inheritance

Source limits apply before a smaller page selection

The workspace accepts one nonempty local PDF up to 50 MB and 1–300 total source pages. Choosing a few pages cannot admit a source with more than 300 pages. The resulting document contains every source page and is capped at 100 MB; selecting fewer rotation targets does not create a smaller page-count export.

Ranges must resolve to unique supported page positions for rotation export. There is no multi-file rotation batch, unlimited-page bypass or exact output-byte target. Saved bytes can differ from the input in either direction. Compare the generated size when an upload workflow imposes a strict threshold.

Source limits apply before a smaller page selection
BoundaryCurrent behavior
Source filesOne nonempty local PDF
Source sizeUp to 50 MB: 50000000 bytes
Complete source pages1–300, before range selection
Rotation targetsUnique physical page positions; repeats and overlaps rejected
Output pagesAll source pages, in their original order
Encoded output sizeUp to 100 MB: 100000000 bytes

Encrypted, damaged and detected signature-field sources can be refused

The source reader checks a PDF-header hint and parses the document under the app’s limits. It rejects encrypted or damaged sources and detected signature fields or markers, including a recognized unused signature field. This is a source-editing policy, not cryptographic signature or complete PDF-conformance validation.

The workspace has no password entry, unlocking, signature verification or signature-preservation control. A smaller selected range cannot bypass a refused source. Check whether the error concerns source support or preview rendering before choosing another supported file.

pdf-lib: saving a PDF document

Source and result previews describe different orientations

The file row’s Preview control shows the entire original source. The result’s Show PDF preview shows the saved output, also containing every source page. Page counts can therefore match while a selected page’s displayed orientation differs. Changing ranges or the angle clears previous results but does not close the unchanged source preview.

Preview detail offers 800, 1600 and 2400 pixel longest-side display limits. These settings change the preview image rather than PDF output quality, physical page bounds or file contents. Source inspection and rotation run in the tool worker; previews use PDF.js parsing support and main-thread canvas rendering.

PDF.js: viewport and canvas rendering examplesMDN: Web Worker messaging and lifecycle

Preview failure does not always prevent a rotation download

The app separately guards embedded images above 24 megapixels or 12000 pixels on either side, and rendered-page displays above 12 megapixels or 8192 pixels on a side. A supported document can remain rotatable when source or result preview rendering is unavailable. These are application policies rather than universal PDF.js limits.

The preview reader has a 50 MB file ceiling, including generated results, while rotation output can reach 100 MB. A valid download may therefore be too large for this preview. Source-page-count, parsing, encryption or detected-signature-field refusal can instead block rotation itself; display-only and source-validation failures need different responses.

PDF.js: viewport and canvas rendering examples

Download the source-named rotated PDF and check its size

The result is one PDF whose sanitized source basename receives -rotated.pdf. For example, report.pdf produces report-rotated.pdf; quarter?.PDF produces quarter_-rotated.pdf. The filename suffix does not translate with the page language. The original input is not overwritten, and this one-result tool does not offer Download all as ZIP.

Compress this PDF, Review text for Word and Export page images deliberately hand the generated file to separate tools through one-time same-tab memory, under their destination limits. Rotation itself is not automatic compression, OCR or page-image export. Keep the download and source separately when leaving the workspace.

Cancel keeps the source; Clear retains the chosen angle

Changing the range or angle invalidates old results and requires another Rotate PDF action. The processing job has a 60-second timeout. Cancel terminates the active job while keeping the source and chosen angle; it does not provide a partial successful output or recall documents already downloaded.

Clear files removes inputs, ranges, results and the source preview, while retaining the chosen rotation angle. A new input starts with a blank page selection but uses that retained angle. Check the selector when changing files. Original device files remain untouched; refreshing or leaving ends this transient workspace.

MDN: Web Worker messaging and lifecycleMDN: stopping a worker

Embed Rotate PDF with the visible ToolMellow backlink

Use Add this tool to your website on the localized tool page to copy or download the provided HTML snippet. Keep the iframe, sizing behavior and visible ToolMellow backlink with its existing link attributes. Select the intended language and allow room for source selection, angle controls, previews and results.

Visitors choose their own supported local PDF under the same one-source, page and byte limits. The snippet is not a hosted-file rotation API. Ordinary website hosting, asset and analytics requests are separate from local PDF-byte processing; local processing does not establish anonymity or zero logging. Test the intended embedding layout and keep the credit visible.

MDN: local files and the File APIMDN: Web Worker messaging and lifecycle

Common questions

How do I rotate selected PDF pages and save the result?

Choose one supported PDF, wait for its page count, enter unique physical page positions or leave the field blank for all pages, choose 90°, 180° or 270° clockwise and press Rotate PDF. Inspect and download the generated source-named rotated document.

Are unselected PDF pages removed or reordered?

No. All original pages remain in their original positions. Only selected pages receive the added angle; unselected pages retain their original rotation.

Why are repeated or overlapping page selections refused?

Rotation export requires unique physical pages. A repeated entry or overlapping ranges fails during export rather than silently deduplicating the selection or adding the angle twice.

Does selection order change PDF output order?

No. Entries choose rotation targets, not output positions. Selections such as 1,3 and 3,1 target the same pages while retaining the original document order.

How is the chosen angle added to existing page rotation?

The saved angle is the original plus the selected clockwise angle, normalized to a full turn. Original 90° plus 90° becomes 180°; original 90° plus 270° becomes 0°. The selector is not an absolute orientation target.

Can different selected pages use different angles in one run?

No. One chosen angle applies to every selected page in that job. The workspace has no per-page angle editor. Deliberately reloading an exported result can support a separate later run, under the same source rules.

Why does pressing Rotate again not add another turn?

Each run reads the original selected input again rather than the preceding generated result. Download and choose the result as a new source if you intend to chain rotations; check the retained angle.

Does Clear files reset the selected rotation angle?

No. Clear files removes source files, ranges, results and source preview while preserving the angle preference. A new source starts with a blank selection and that retained angle.

Does rotating a PDF add OCR or rasterize its pages?

No. Rotation changes PDF page rotation metadata without rasterizing content or adding a text layer. Existing scanned pages remain scans; existing text and reader behavior still need inspection in the generated document.

Are PDF document features and metadata universally preserved?

No universal guarantee is made. The tool saves the loaded document rather than copying selected pages into a new root, but features, metadata and appearances still require checking in your intended reader or archival workflow.

Can rotation download succeed when preview fails?

Yes, a supported rotation can remain available despite preview image/render guards. A generated file may also fit the 100 MB output cap but exceed the preview reader’s 50 MB ceiling. Source-validation refusal is different and can block rotation.

Can I embed Rotate PDF with a visible credit link?

Yes. Copy or download the provided HTML iframe snippet from Add this tool to your website, keeping the visible ToolMellow backlink and sizing behavior. Visitors choose their own supported local files; the snippet is not a hosted-file rotation API.

Can I rotate one page from a source with more than 300 pages?

No. The source reader accepts 1–300 total source pages before rotation selection. Choosing one page does not admit a larger document, and all accepted source pages remain in the output.

Can I provide a password or use a PDF with an unused signature field?

This workspace has no password or unlocking control. Encrypted or damaged sources and detected signature fields or markers can be refused, including recognized unused fields; this is not cryptographic signature validation.

Sources and further reading

Put it into practice.

Related guides