Fix a sideways page in a few seconds

Choose an angle, pick all pages or only the ones you name, and download the corrected file. Rotation is stored as a page attribute, so nothing is re-rendered and no detail is lost.

What page rotation actually is

A PDF page has a content box drawn in a coordinate system that never changes, and a /Rotate entry that tells the viewer how to display it. The values are 0, 90, 180 and 270 degrees clockwise. Changing it does not move a single pixel of data - the viewer simply draws the same content turned around. That is why rotating here is lossless even for a heavy scanned page, and why the file size barely changes.

It also explains the classic confusion: a page that looks upright in one program and sideways in another usually has a rotation value that one viewer ignored. Pages scanned on a flatbed with the "auto-rotate" option produce exactly this. Rewriting the value explicitly settles the argument.

All pages or just the ones that are wrong

Rotating every page is the right move when the whole scan came out landscape, which happens with duplex scanners and with phone scans of a landscape form. Rotating a selection is right when one or two pages are sideways among many upright ones - a folded insert, a landscape table, a cheque.

SymptomLikely causeFix here
Every page is on its sideScanner fed landscape originals as portraitRotate all pages 90°
One page is upside downSheet fed the wrong way roundRotate that page 180°
Text reads bottom to topRotation off by 90° in the other directionRotate 270° (90° counter-clockwise)
Upright on screen, sideways when printedPrinter honours /Rotate, some drivers do notRotate, then print a test page
Page jumps after rotatingMixed page sizes with different rotationRotate only the mismatched pages

Rotating before or after merging

If you are combining files, fix orientation first. Merging a sideways page into an upright document works, but then the whole merge has to be redone to correct it, because the merged file is a new document. Rotate the offending source file, then merge. The same applies to page numbers: numbering a sideways page puts the number where the viewer expects it only after correction, so rotate first and number afterwards.

Deciding the angle when you are unsure

Open the page, look at a line of text and ask which way it runs. If text runs bottom-to-top, the page needs 90° clockwise. If it runs top-to-bottom, it needs 270°. If it is upside down, 180°. When a page has a table you can read sideways, there is no rule: pick the orientation the reader will print on paper.

Encrypted documents

Files that need a password to open cannot be rewritten without that password. Files with only an owner password sometimes open in restricted mode and rotate fine. PDFNest warns you when a file is encrypted and asks you to check the output before relying on it.

Rotate FAQ

Does rotating change the file size?

Only by a few bytes. The page object gets a new rotation value; the content stream is untouched.

Why is my page still sideways in another program?

Some viewers and print drivers ignore the page rotation value, and some rasterise the page at the original orientation. Check the same file in a second reader before assuming the rotation failed.

Can I rotate to an exact angle like 45 degrees?

The PDF format only defines 0, 90, 180 and 270 for page rotation. For any other angle the content itself has to be transformed, which is a different operation with different results.

Is the original file modified?

No. A new file is created and downloaded; the source is only read.