DataSwap Fast file & data format converters, no signup

Rotate PDF

Choose a PDF, pick a rotation, and download. Nothing you upload ever leaves your browser.

How rotating works without a server

A PDF page doesn't need to be redrawn to change its displayed orientation — every page has a small piece of metadata called /Rotate that tells any PDF viewer to show that page turned by 0°, 90°, 180°, or 270° before rendering it. This tool uses pdf-lib, running entirely in your browser tab, to read that value on each page and set a new one. Clicking a rotate button only updates a number on screen; the actual PDF is rebuilt from your original file at download time, so the file on disk is never touched until you're ready.

Worked example

Say scan.pdf has 5 pages that all came out of the scanner sideways, needing a quarter-turn clockwise to read normally. Click Rotate all pages 90° right once — the label updates to Current rotation: 90°. Click Download, and every page's /Rotate value becomes 90°, so any PDF viewer now displays all 5 pages upright. If you clicked "right" twice more by accident, landing on 270°, one click of Rotate all pages 90° left brings you straight back to 180° — no need to start over.

Frequently asked questions

Is my PDF uploaded anywhere?

No. The file is read locally with the browser's File API, and pdf-lib — a JavaScript library that runs entirely in your browser tab — rebuilds the rotated document from those bytes. Nothing is sent to a server, so private or confidential PDFs never leave your device.

If I click the rotate buttons several times, does the rotation add up correctly?

Yes. Clicking a button doesn't touch the file yet — it just updates a small "current rotation" number shown on screen (0°, 90°, 180°, or 270°), which wraps around cleanly however many times you click. Only when you click Download does this tool build the rotated PDF, and it always does that fresh from the original file at exactly the rotation shown, so clicks never stack up into an unexpected angle and you can freely undo a click by rotating back.

Does rotating lose any quality, text, or links?

No. Rotation in a PDF is a small piece of page metadata — a /Rotate value telling viewers to display that page turned by 0°, 90°, 180°, or 270° — not a re-drawn image. pdf-lib just updates that number, so the underlying text, vector graphics, and images are byte-for-byte the same as before; nothing is rasterized or re-compressed.

What if my PDF's pages don't all start out the same way up, like a mixed-orientation scan?

The rotation you choose is added on top of each page's existing rotation rather than overwriting it, so pages that already differed from each other keep the same relative difference after rotating — every page just turns by the same additional amount.