You can rotate a PDF in the browser without uploading it. Open the Rotate PDF tool, drop the file in, pick 90 degrees clockwise, 90 degrees counter-clockwise or 180 degrees, choose all pages or a specific range, then download the fixed copy.
Everything runs on your device with pdf-lib, so the document is opened from your disk and never sent to a server. Both 90 degree turns and the half turn of 180 degrees are available, and the rotation is written into the page orientation, so the original width, height, text, links and images are left untouched. A page that was already rotated is turned further rather than reset, and the output is saved as a new file named after the original with -rotated appended. Commas separate single pages and a hyphen marks a range, so 1,3,5-7 turns exactly five pages while the rest keep their orientation.
A PDF page can end up sideways for reasons that have nothing to do with the file being broken. A flatbed scanner may feed a sheet the wrong way round, a phone photo of a signed contract is often a quarter turn off, and an export from another application can arrive as a landscape page inside a portrait document. Rotating the page fixes the way it displays and prints, and it does so without rewriting what the page contains.
Rotate PDF
Turn every page or just a custom range 90 or 180 degrees in the browser, then save the fixed file. The rotation is written into the page, so the text, links and images are left untouched and nothing is uploaded.
When you need to rotate a PDF
Three situations cover almost every case, and all three are about the page's direction rather than its contents. A scan that comes out upside down is the most common. Document feeders and flatbed scanners decide the top of a page by how the sheet was placed, so a stack loaded a single turn from correct produces a PDF where every page is 180 degrees out, and turning the whole document at once is the fix.
A photograph of a page is the second case. When a phone is held at an angle, the resulting scan is often a full quarter turn, and rotating it 90 degrees in the right direction makes it readable again. The third case is a mixed document: a report exported from a spreadsheet application can contain one landscape page among portrait ones, and only that page needs turning.
What none of these fixes is a page that is genuinely skewed by a few degrees, where the text runs diagonally but the page itself is upright. Rotation is limited to 90 degree steps, so a slight tilt has to be corrected in the scanning app or with a deskew step afterwards.
How to rotate a PDF online free
The tool takes three steps and no account.
- Add your PDF. Drop one PDF into the drop zone or click to browse. The page count is read on your device as soon as the file is added, so you can confirm the right document opened before touching any settings.
- Choose the rotation and the scope. Pick 90 degrees clockwise, 90 degrees counter-clockwise or 180 degrees, then decide whether to turn all pages or only a range you type in, such as 1,3,5-7.
- Rotate and download. Click Rotate and download. A progress bar walks from page to page, the result panel reports how many pages were rotated plus the source and output sizes, and Download PDF saves a copy named after the original with -rotated appended.
The tool rotates one PDF per run, so a folder of scans is one pass per file rather than a batch. If a single continuous document is what you need, merge the files first and rotate the combined PDF, or organise the pages before you start.
What rotation changes inside the file
Rotating a page does not redraw it. pdf-lib writes a rotation value into the page's orientation entry, which is a number every PDF reader already understands. The page's own coordinates, its text, its images and its links are left exactly as they were, and the viewer applies the turn when it displays or prints the page.
Because nothing is rasterized, text stays selectable and searchable, links keep working, and images keep their original resolution. This is the difference between rotating a page and exporting it as a picture, which would flatten all of that into pixels.
| Property | Rotating the page orientation (this tool) | Re-exporting the page as an image |
|---|---|---|
| Page size | Unchanged, the original width and height are kept | Usually changes |
| Text | Stays selectable and searchable | Becomes part of the picture |
| Links and form fields | Kept in place | Usually lost |
| Images | Keep their original resolution | Re-sampled |
| File size | Changes very little, since no image data is rewritten | Often much larger |
One consequence is worth knowing before you start: because the rotation applies to the whole page, anything already drawn on it turns as well. A footer, a date stamp or a printed page number that sat along the bottom edge ends up along a side after a 90 degree turn, and the tool does not move it back.
The angle adds to the rotation a page already has
Rotation is stored per page, and the tool adds the angle you choose to the value already there rather than resetting it. A page that was turned before is turned further, which is why running a 90 degree clockwise rotation twice gives you 180 degrees, and why a fourth pass returns the page to where it started.
The trap is that a page which looks correct in one reader may already carry a rotation value from the application that produced it, so applying a fresh quarter turn can overshoot. If a page comes out wrong, undo by running the opposite angle on the original file rather than on the output.
Rotating only some pages of a PDF
When only a few sheets are wrong, set the scope to Selected pages and type the page numbers. Commas separate single pages and a hyphen marks a range, so 1,3,5-7 means pages 1, 3, 5, 6 and 7. A range written backwards, such as 7-5, is read the same as 5-7, and the numbers are sorted and de-duplicated before the run, so 3,3,1 is simply pages 1 and 3.
Numbers outside the document are ignored rather than causing an error, and the status line reports how many entries were skipped. If nothing valid is left, for example you type 0-5 into a file whose pages start at 1, the tool stops and asks you to check the settings instead of producing an unchanged copy.
One rotation angle applies to every page in a single run. A document where two pages are sideways and another two are upside down needs two passes, one for each angle, and the second run starts from the output of the first.
What the Rotate PDF tool cannot do
Every limit below follows from keeping the operation small and predictable, and knowing them tells you whether this page fits your document.
| Limit | What it means in practice | What to use instead |
|---|---|---|
| Encrypted or password protected files are refused | A locked PDF fails to open, and the status line names the file and says it may be protected or damaged | Remove a password you know with the Unlock PDF tool, then rotate the opened copy |
| Only one angle per run | Pages that need different corrections take separate runs | Run the tool again on the output with a different angle |
| Only 90 degree steps | A page tilted by a few degrees cannot be straightened | Correct the tilt in the scanning app or with a deskew step |
| It rotates the page, it does not resize it | The page box keeps its width and height, so content that overflows the edge is not fixed | Crop or re-layout the page, or fix it in the source application |
| Everything on the page turns with it | A footer, stamp or printed page number moves to a different edge and is not repositioned | Add markers after rotating, with the PDF Watermark or Add Page Numbers tool |
| One PDF per run | A batch of files is one run each | Merge them first if one combined file is acceptable |
| No undo in the output | The tool cannot strip rotation back out of a saved copy | Keep the original file and re-run with the opposite angle |
None of these limits is hidden. If a file cannot be opened, or a range contains no valid page, the status line says so before anything is written to your disk.