Rotate PDF

Rotate PDF pages 90, 180 or 270 degrees in your browser, all pages or just a range. Free, private, no upload. Fixes sideways scans permanently.

🌐 Español

Drop your file here (.pdf)

🔒 Private by design: your files are processed locally in your browser and never uploaded to any server.

Rotation is a page flag, not a redraw

Inside a PDF, every page can carry a rotation entry: a single number, always a multiple of 90, that tells a reader how far to turn the page before showing it. The page’s contents are not moved. The scan bitmap, the text drawing instructions and the page’s own dimensions stay exactly where they were, and the viewer does the turning at display time.

This tool changes that number and nothing else. pdf-lib opens the document, sets the new rotation on the pages you selected, and saves. No page is re-rendered, no image is re-encoded, no font is touched. Text stays selectable and searchable, print quality is untouched, and the output is close to the size it started at.

That is the difference between fixing a document and working around it. Turning a page in your reader is a view setting that lives on your machine; writing the flag makes every reader, printer and phone display it correctly for everyone who receives it.

Turning the pages

  1. Drop your PDF into the box above, or click Choose a file.
  2. Choose an angle under Rotate by: 90° clockwise, 180° (upside down) or 90° counterclockwise.
  3. Under Pages to rotate, leave All pages selected to fix the whole document, or pick Only a page range.
  4. For a range, set First page (page range mode) and Last page (page range mode, 0 = last page). Leaving the last field at 0 means “through to the end”.
  5. Click Rotate PDF and save the result, which comes back with -rotated added to the name.

The angle stacks on whatever the scanner already set

A page you receive may already carry a rotation, because scanners set one routinely when paper goes through the feeder the long way round. This tool reads that existing value and adds your angle to it, then normalises the sum back into the range 0 to 359.

The practical effect is that the tool behaves like a physical turn rather than an absolute setting. A page already marked 90 that you turn another 90 becomes 180. Four consecutive 90 degree runs return the document to its starting state. Nothing accumulates past a full circle and no page ends up with a nonsensical value.

It also means “rotate by 90” is not the same instruction as “make this page portrait”. If a document mixes pages that were scanned at different orientations, applying one angle to all of them will straighten some and break others. That is what the range mode is for: fix pages 5 and 6 on their own, download, then run the file again for anything else that is still wrong. The range fields behave exactly as they do in Split PDF, because both tools use the same range code.

Pages that still come out sideways somewhere else

Every mainstream viewer honours the rotation entry, so a corrected file looks right in Acrobat, in a browser tab, in Preview, on a phone and in a print dialog. Two situations still catch people out.

The first is software that reads a page’s contents rather than rendering them. An image extractor pulling the embedded bitmap out of a scan gets the picture exactly as it was stored, sideways, because the flag was never applied to the pixels. The same goes for some text extraction and OCR pipelines that work from the content stream directly.

The second is layout tools that read a page’s dimensions. Rotation does not change the page box, so a page marked as rotated is still, on paper, whatever shape it always was. Anything that arranges pages by their measured size can therefore make surprising decisions, which is worth remembering before you send a rotated document into N-up or booklet imposition or through Resize PDF Pages.

Picking 90, 180 or 270 for a given scan

Work from where the top of the text is pointing.

If the top of the text points to the left edge of your screen, the page needs 90° clockwise. If it points to the right edge, it needs 90° counterclockwise. If the text is upside down but reading horizontally, it needs 180° (upside down), which is the same in either direction and the usual outcome of feeding a stack of paper in the wrong way.

Anything that is not one of those three angles is not offered, because a PDF rotation entry can only be a multiple of 90. Skewed scans, the ones that are a few degrees off true, are a different problem entirely and this tool cannot help with them.

Guessing wrong costs nothing: run the output through again. Nothing is re-encoded on either pass, so there is no accumulated degradation, and the file is only ever read from your device’s memory and rewritten in the same browser tab. Scanned contracts, identity documents and medical results are precisely what comes out of a copier the wrong way up, and none of them go anywhere. Delete PDF Pages is the usual next step, and Add Page Numbers to PDF places its numbers as you expect on any page whose rotation ended up at zero. Further reading: the best PDF tools, compared.

See it in action

Screenshot of the Rotate PDF tool with sysfenix-report.pdf (3 KB) loaded, Rotate by set to 90° clockwise, Pages to rotate set to All pages
Rotate PDF mid-process: sysfenix-report.pdf (3 KB) loaded, Rotate by set to 90° clockwise, Pages to rotate set to All pages.
Screenshot of the Rotate PDF result screen showing sysfenix-report-rotated.pdf ready to download (3 KB)
The finished result: sysfenix-report-rotated.pdf ready to download (3 KB). The download link is a local blob URL — the file never leaves your device.

Frequently asked questions

Does rotating recompress the pages or cost any quality?

No, and that is the useful property of doing it this way. Only each page's rotation entry is rewritten; the drawing instructions, the embedded fonts and the scanned bitmaps are all left exactly as they were. Text stays selectable, images keep their resolution, and the file size barely moves, since the only thing that changed is one number per page.

I ran it twice at 90 degrees and now the page is upside down. Why?

Because each run adds to what is already there rather than replacing it. Two 90 degree turns compose into 180, three into 270 and four bring you back to where you started. If you overshoot, the quickest fix is to keep going in the same direction until it comes round again, or to reopen your original file.

How is this different from the rotate button in my PDF viewer?

The viewer button changes what is on your screen and forgets it when you close the file, which is why a document you rotated to read still arrives sideways for the person you sent it to. This writes the new orientation into the document itself, so the file opens the right way up everywhere, including in print dialogs and on phones.

The file is correct in Acrobat but one program still shows it sideways. What is going on?

A rotation entry is an instruction to the thing displaying the page, not a change to the page's contents. Any compliant viewer honours it, but software that reads the drawing instructions directly rather than rendering the page, such as an extractor pulling out the embedded scan bitmap, sees the original orientation. The pixels themselves were never turned.

Can I turn one section clockwise and another counterclockwise in one go?

No, a single run applies one angle to one selection of pages. Do it in two passes. Rotate the first range, download the result, then feed that file back in and rotate the second range. Because rotations compose, the second pass leaves the first one alone.

Should I rotate before or after adding a signature or page numbers?

The order makes no difference. This tool only rewrites the rotation entry and never moves the page content, while tools that draw onto a page work in the underlying coordinate box without reading that entry, so the two operations do not interact. What matters is the number you finish on, because a stamp lands where you expect only on a page whose rotation ends at zero. Pick the angle that gets you there, such as 270 on a page already marked 90.

Related tools