utilobox

How to rotate a photo online without ruining it

You open a picture from your phone and it lies on its side, or the sea slopes downhill. This guide shows how to rotate a photo in your browser, when to use a quarter turn and when a small angle, and what the saved file loses.

Last updated:

Why a photo shows up sideways

A camera sensor records pixels in one fixed direction. When you hold the phone upright, many cameras do not turn those pixels; they add a small note to the file that says how the picture should be displayed. Programs that read the note show the photo upright. Programs that ignore it show it on its side. That is why the same file can look right on the phone and wrong in a form on a website or in an older viewer.

The fix that works everywhere is to turn the pixels themselves. Once the picture is saved in the direction you see, there is nothing left to misread. That is what the Rotate image tool does: it draws the picture the way the preview shows it and saves that as a new file.

Rotate a photo step by step

Open the Rotate image tool and add your pictures with ‘Choose files’, or drop them on the page. JPG, PNG, WebP and HEIC all work. Each picture gets a card with a thumbnail and four small buttons, and the large preview shows the picture that is currently selected.

  • Click the thumbnail to show a picture in the preview.
  • Press ‘Rotate left’ or ‘Rotate right’ on the card until the picture stands upright. Each press is one quarter turn.
  • Use ‘Flip horizontal’ or ‘Flip vertical’ only if the picture is mirrored, not merely turned.
  • Press ‘Save rotated images’, then ‘Download’ for one file or ‘Download all (ZIP)’ for several.

Left, right or flip: choosing the right button

If the top of the scene points to the left of your screen, the picture needs one turn to the right. If the top points right, turn it left. If the scene is upside down, two presses in either direction are enough. When you cannot tell which way to rotate a photo, press once and look at the thumbnail: it changes at once, and nothing is saved until you press the save button.

A flip is a different job. ‘Flip horizontal’ mirrors the picture from left to right, which helps with a selfie where a shop sign or a shirt reads backwards. ‘Flip vertical’ turns it like a reflection in water. A mirrored picture cannot be repaired by turning, however many times you press. Turns and flips can be combined, and the buttons always act on what you see.

After a quarter turn the width and height swap. A photo of 4000 × 3000 pixels becomes 3000 × 4000, and the card shows both numbers before you save. Nothing is cut off in a quarter turn.

A whole folder of sideways photos

You do not have to rotate a photo one at a time. Pictures from one phone often share the same problem, for example every shot of a school play taken sideways. Add all of them. When two or more are in the list, a row called ‘All images’ appears, and its buttons apply the same turn or flip to every picture at once. Then check the odd ones out by clicking their thumbnails and pressing their own buttons.

‘Reset all’ puts every picture back to its starting position if you lose track. The saved files are named after the original with -rotated added, so the originals stay where they are, and a ZIP named rotated-images keeps a large batch in one piece.

Straighten a slightly crooked horizon

A photo taken in a hurry often leans by a degree or two. Select it and look at the ‘Custom angle’ field. The angle can be anything from −180° to 180°, and the buttons ‘1 degree to the left’ and ‘1 degree to the right’ move it in steps of one. Switch on ‘Show grid’ and line up the sea, a door frame or the edge of a table with a grid line. Small values such as 1° to 3° are usually enough.

Turning by an angle that is not a multiple of 90° leaves empty triangles in the corners, and you decide what happens to them under ‘Corners after turning’. ‘Expand canvas’ makes the picture area larger so that every pixel survives; ‘Crop to fit (no empty corners)’ trims the result to an upright rectangle with the original proportions.

Take a 4000 × 3000 photo turned by 3°. With ‘Expand canvas’ the result is about 4151 × 3205 pixels, with empty corners. With the crop option it is about 3744 × 2808, so roughly 6 percent of each side is gone and the picture is full. For a landscape, cropping usually looks better. For a logo on a plain background, expanding is safer.

What saving changes: quality, format and metadata

The tool says plainly that rotating is not lossless. The picture is drawn again and encoded again, and a JPG is saved with the ‘Quality’ setting, which starts at 92. That is high, and one pass is hard to notice, but every extra save of a JPG adds a little more loss. So rotate once, from the original, rather than rotating a copy that was already saved.

Each picture keeps its format: JPG stays JPG, PNG stays PNG and WebP stays WebP. GIF, BMP, HEIC and AVIF come out as JPG, or as PNG when the picture has transparent parts. If you choose a transparent corner fill for a tilted picture, a JPG is saved as PNG instead, because JPG cannot be transparent; a PNG usually gives a bigger file than a JPG of the same photo.

Camera metadata such as the time and the GPS position is not copied. That can be useful before sharing, and it also means the file no longer carries an orientation note that could be read differently by different programs.

After the turn: crop, resize or edit further

Straightening with the crop option already removes the edges. If you want a different shape afterwards, for example a square for a profile slot, open the result in Crop image. If a form wants a smaller picture, Resize image changes the pixel size, and rotating first means you resize the correct way round.

When you rotate a photo as one of several fixes, Photo editor is the better place: it suits the case where the turn is only one step, such as brightness or a frame. For a plain sideways photo the rotate tool is quicker, because it works on many pictures at once.

Limits to know before you start

A result larger than 16.7 megapixels is scaled down, because that is the most a browser canvas can hold on every device, and the card marks such a picture as scaled down. A 5000 × 4000 photo is 20 megapixels, so it would come out slightly smaller than the original. Very large batches can also run out of memory on an old phone; in that case add fewer pictures at a time.

The tool cannot guess which way is up, so you decide with the buttons. It also does not fix perspective, so a building that leans because you pointed the camera upwards stays distorted; only a plain turn is possible. Your pictures are processed in the browser on your own device, and the page does not upload them.

Questions and answers

Why does my photo look sideways on a website but fine on my phone?

The phone reads a small orientation note in the file and displays the picture upright. A website or older program may ignore the note. Rotating the picture and saving it again writes the pixels in the right direction, so every program shows it the same way.

Can I rotate a photo by 45 degrees?

Yes. Any angle from −180° to 180° is possible under ‘Custom angle’. Choose ‘Expand canvas’ to keep all of the picture or ‘Crop to fit (no empty corners)’ to avoid empty corners.

Will rotating make the photo blurry?

A quarter turn only reorders the pixels and then saves again, so JPG loses a little at the save. An angle such as 2° also resamples the picture, which can soften fine detail slightly. Keep the original and compare before replacing it.

Can I rotate many photos at once?

Yes. Add them all and use the buttons under ‘All images’ for the same turn on each, or ‘Use this angle for all images’ for one small correction. Download the batch as a ZIP.

Why was my JPG saved as a PNG?

You chose a transparent corner fill for a tilted picture. JPG has no transparency, so the tool saves PNG. Choose a color fill, or use ‘Crop to fit (no empty corners)’, and the photo stays a JPG.