Rotate image online: sideways, mirrored or slightly tilted
A picture can be wrong in three different ways: turned a quarter, mirrored, or only a few degrees off level. Each needs a different move. This guide shows how to rotate image online with the right one, what happens to the corners, and how to check the result.
Why a photo shows up sideways in the first place
A phone does not always turn the pixels when you hold it upright. Many cameras store the picture as it came off the sensor, wide and lying down, and add a small note in the file that says how it should be shown. A viewer that reads the note shows the photo upright. A viewer or upload form that ignores it shows the same file on its side.
That is why one photo can look right on the phone, sideways in a form and upside down in a document. The fix is to rotate the pixels themselves, so the file is upright for every program and nothing depends on a note being read.
Quarter turns: the fix for most sideways photos
If the whole picture is lying on its side or upside down, you need a turn of 90 or 180 degrees, and nothing finer. Look at where the top of the scene sits. Sky on the left means the picture must go right by 90 degrees, and sky on the right means left by 90. Sky at the bottom needs two quarter turns in either direction.
A quarter turn swaps width and height, so a landscape picture of 4000 by 3000 pixels becomes 3000 by 4000. That is expected, not a loss. Count turns rather than guessing: after each press, check whether the horizon or the head of a person has settled where it belongs.
Mirror a picture: flip is not rotate
Turning and mirroring are different moves. A turn keeps the scene as it was, only seen from another side. A mirror swaps it. A horizontal flip exchanges left and right, so lettering that reads backward reads correctly again. A vertical flip exchanges top and bottom, and it is the move for a picture that looks like its own reflection in a lake.
Selfies are the usual case. Many front cameras show a mirrored preview and some save the picture mirrored too, so a sign behind you looks backward. Flip it horizontally. Turning by 180 degrees is not the same as a flip: it moves left to the right and top to the bottom together, and the text stays backward.
Level a slanted horizon by angle
A horizon that slopes by one or two degrees is a different problem from a sideways photo. Find a line that ought to be level or upright, such as the sea, a shelf, a doorframe or the edge of a table, and turn the picture by a small angle until that line follows a guide line. If the slope gets worse, go the other way, because left and right are easy to mix up.
The rotation tool accepts any angle from 180 degrees to the left to 180 degrees to the right, in steps of one degree. In practice most corrections fall between 1 and 5 degrees. Beyond that the picture is probably not just tilted, and a lens or a wide-angle effect is bending the lines, which turning cannot repair.
What rotating does to the corners
A picture turned by a non-right angle no longer fits its old rectangle. Its corners poke out, and the new rectangle that contains it has empty triangles in the corners. The arithmetic is simple: a 3000 by 2000 picture turned by 2 degrees needs a canvas of about 3068 by 2104 pixels to keep every pixel.
You then have two choices. Expanding the canvas keeps everything and fills the empty corners with a colour or leaves them transparent. Cropping to fit cuts the picture down until no empty corner remains, and the cost grows quickly with the angle. For a 3:2 picture, roughly 5 percent of each side goes at 2 degrees and roughly 11 percent at 5 degrees. Compose with a little room around the subject if you expect to level the shot later.
How to rotate image online here, step by step
Everything runs in your browser. The pictures are not uploaded, nothing needs installing, there is no sign-up and no watermark. The names below match the buttons on the rotate page.
- Add one or more pictures. Each becomes a card with a thumbnail that changes as you work.
- Under ‘This image’ press ‘Rotate left’ or ‘Rotate right’ for a quarter turn, or ‘Flip horizontal’ or ‘Flip vertical’ to mirror. With two or more pictures, the same buttons under ‘All images’ repeat the move on every one, and ‘Reset all’ undoes it.
- For a slanted horizon, set ‘Custom angle’ with the slider, the 1 degree buttons or the number box. Keep ‘Show grid’ on and stop when the line follows a grid line. ‘Use this angle for all images’ shares one angle across a batch of crooked scans.
- Under ‘Corners after turning’ choose ‘Expand canvas’ to keep every pixel, or ‘Crop to fit (no empty corners)’. With expanding, ‘Corner fill’ offers ‘Transparent’ or a ‘Color’.
- Press ‘Save rotated images’, then ‘Download’ for one file or ‘Download all (ZIP)’ for the batch.
Quality, file type and a short check
Saving draws the picture again, so it is not lossless. JPG is encoded once more, at a quality of 92 to begin with, which is high enough that a single pass rarely shows. Do not rotate and save the same file many times; go back to the original instead. Transparent corners need PNG or WebP, so a JPG given that fill is saved as a PNG, and picking a colour keeps it a JPG.
Before you use the result, zoom to full size and look at the edges, where a filled corner or a thin line can look jagged. Check that the horizon sits on the guide line and that no head or foot has been cut off by cropping. Open it in the program where it will be used, since that program is the judge of whether it looks upright.
What this tool cannot do
It turns by whole degrees only, so there is no half-degree step and no automatic detection of the horizon. It treats the picture as one flat image: you cannot straighten just one part, fix a leaning building by perspective, or remove lens distortion. A very large result is scaled down to 16.7 megapixels, the most a browser canvas holds on every device.
The saved copy carries no EXIF data, so camera details and GPS position are not kept. That also means no orientation note is left that another program could misread. If you only want to see what a file says about its position, EXIF viewer shows the data, and Crop image trims the edges once the angle is right.
Questions and answers
How do I rotate image online if it only looks sideways in one place?
That usually means the file carries a note about how to show it and the other place ignores it. Turn the picture until it looks upright in the preview and save it, and the pixels are upright everywhere.
What is the difference between rotating and flipping?
Rotating turns the scene around. Flipping mirrors it, left to right or top to bottom. A 180 degree turn does not fix backward text; a horizontal flip does.
How many degrees should I use to level a horizon?
Usually 1 to 5. Start small, keep the grid on, and stop when the horizon lies along a line. If it gets worse, change the sign of the angle.
Why are there empty corners after I turn a photo by a few degrees?
A tilted rectangle does not fit the old frame. Choose to crop to fit, which trims the picture, or expand the canvas and fill the corners with a colour or transparency.
Does a quarter turn reduce quality?
The pixels are only moved, but the file is saved again, so a JPG is encoded once more. At the default quality the change is hard to see. Keep your original.