The tool you need, ready to use

Rotate & Flip Image

Add a photo and it is previewed in all eight orientations, so you just tap the one that looks upright. Level a tilted horizon by drawing one line on the photo, and handle the empty corners a turn leaves by cropping at the same proportions or expanding to fit everything. Save up to 50 photos as a ZIP, with everything processed inside this browser.

Last updated 2026-11-25All math stays in your browser

—

Straighten
Draw a line on the photo along something that should be straight, like a horizon or a pole, and the photo turns until that line is level (or upright).

Pick an orientationTap the one that looks upright

Empty corners
Background
Save as
92

Last updated 2026-11-25Your inputs are not stored

ROBERIN standardThe tool you need,
ready to use.
  • Clear at a glanceInputs and results sit where you expect them.
  • Result firstThe key number comes first; the working only when you need it.
  • Ask lessNo sign-up and no unnecessary details.

Add a photo, tap the one that looks upright, and it is rotated or flipped

Rotate & Flip Image turns photos in 90° steps, flips them left to right or top to bottom, straightens a slightly tilted horizon, and saves the result as a new file. Once you add a photo, the panel on the right previews it in all eight orientations, so you do not have to work out clockwise or counterclockwise. Just tap the one that looks upright. A phone photo of 4032 × 3024 turned 90° clockwise becomes 3024 × 4032.

If a horizon or a building edge leans, draw a line on the photo along whatever should be straight. The tool turns the photo by the angle that makes that line level (or upright) and trims the empty corners that the turn creates, keeping the original proportions. The sample photo lies on its side and is also tilted by 3°; turned 90° clockwise and straightened by −3.0°, it ends up at 1475 × 921. You can add up to 50 photos at a time, and everything happens inside this browser.

When to rotate or flip a photo

  • A photo lying on its side: a portrait shot saved as landscape, or a document that went into the scanner sideways. Tap the upright version in the orientation panel.
  • Upright on your phone, sideways after uploading: many phones do not rotate the pixels. They add an orientation tag (EXIF Orientation) that says "display this way up". Programs and sites that ignore the tag show the photo on its side. A file saved with this tool has the pixels themselves in the right orientation, so it looks the same everywhere.
  • A selfie that looks mirrored: the front camera preview is mirrored, but the saved photo may not be, so left and right differ from what you saw while shooting. Flip horizontal brings back the view from the screen.
  • A scanned page that went in upside down: rotate it 180°. With several pages, fix one and press Apply to all to give them all the same orientation.
  • A tilted horizon: a sea horizon or a building edge that leans by a few degrees makes the whole photo feel off. Drawing a line or using the straighten slider fixes it in 0.1° steps.

How to rotate and save

  1. Add photos: press Add photos below or drop files onto the workspace. A copied image can be pasted with Ctrl+V or ⌘V. The first photo you add replaces the sample.
  2. Pick an orientation: tap the upright one among the eight tiles on the right, or use the 90° left, 90° right, Flip horizontal and Flip vertical buttons under the stage.
  3. Straighten: if the photo leans, draw a line along something that should be straight, drag the straighten slider, or type a number in the angle field (positive is clockwise, negative is counterclockwise).
  4. Empty corners and format: by default the empty corners are cropped away and the file keeps its original format. To lose nothing, choose Expand to fit all and set a background.
  5. Save: one photo downloads as a single file, several as one ZIP. The file name carries the result size (for example pier-1475x921.webp), so it does not get mixed up with the original.

A photo can sit in eight orientations

Turning a photo in 90° steps gives four orientations, and adding a horizontal flip gives four more, eight in all. A vertical flip is not a separate orientation: it gives the same result as a horizontal flip plus 180°. The orientation tag a phone writes uses the same eight cases, as the values 1 to 8.

A 4032 × 3024 phone photo in each orientation
Orientation tileResult sizeSame tag valueWhen you need it
Original4032 × 30241Nothing to change
90° right3024 × 40326A portrait photo lying on its left side
180°4032 × 30243A scan that went in upside down
90° left3024 × 40328A portrait photo lying on its right side
Flip horizontal4032 × 30242A selfie that looks mirrored
Flip + 90° right3024 × 40327On its side and mirrored
Flip vertical4032 × 30244Turning a reflection in water upright
Flip + 90° left3024 × 40325On its side and mirrored

A 90° or 270° turn swaps width and height, while 180° or a flip alone keeps the size. After a flip, the rotate buttons still turn the photo the way it looks on screen, so you do not need to remember the order of your clicks. Just match what you see.

Why a photo is upright on your phone but sideways after uploading

Even when you hold a phone upright, the camera sensor records the picture as landscape. Many phones therefore leave the pixels alone and write a note in the photo's metadata (EXIF), such as "rotate 90° clockwise when displaying" (value 6). Apps that read the note rotate the photo for display. A program that ignores it, or an upload step that strips it, shows the photo on its side.

Web standards follow the tag. In the W3C CSS Images specification, the initial value of image-orientation is from-image, which displays the image rotated as the metadata, such as EXIF, says. This tool also starts from the upright view that the tag describes, and if the tag is anything other than 1, the result bar shows its value. The saved file has no tag and the pixels themselves are in that orientation, so it looks the same even where the tag is ignored.

Why do selfies come out mirrored?

While you shoot with the front camera, the screen shows a mirror image: move your hand to the right and the hand on screen moves right too. The saved photo, however, is often recorded the way other people see you, so left and right are the opposite of what you saw. That is why text in the photo reads correctly while a part in your hair or an asymmetric face feels unfamiliar.

For a photo you have already taken, Flip horizontal returns it to the view you saw on screen. Keep in mind that flipping turns the lettering on clothes or signs into mirror writing, so leave photos where the text matters as they are. On an iPhone, go to Settings > Camera and turn on Mirror Front Camera, and the photo is saved just as it looked on screen.

How to straighten a tilted horizon

The quickest way is to draw a line on the photo along a horizon or a pole, something that should be straight. If the line is within 45° of horizontal, the tool makes it level; if it is steeper, it makes it upright, and it works out the angle to turn. If the line you drew leaned by 2.9°, the photo is turned 2.9° counterclockwise. For fine adjustment, drag the straighten slider or type a number in the angle field. While you move the slider, a fine grid appears over the stage so that it is easy to compare against a line.

Turning a photo at an angle leaves empty space in the four corners. The tool handles it in one of two ways.

  • Crop to fill (default): keeps the largest rectangle with the original proportions that fits inside the turned photo with no gaps. The part that will be cut off is dimmed on the stage. To keep empty pixels from creeping in at the edge, it stays 1 pixel further inside.
  • Expand to fit all: enlarges the canvas to the box that holds the whole turned photo and fills the empty corners with the background. PNG and WebP can use a transparent background; JPG cannot hold transparency, so it fills with white or the color you pick.
Result size when a 4032 × 3024 photo is turned by its tilt angle
AngleCrop to fillArea keptExpand to fit all
0.5°3983 × 298797.5%4059 × 3060
1°3938 × 295395.3%4085 × 3094
2°3852 × 288991.2%4136 × 3163
3°3771 × 282887.4%4185 × 3231
5°3622 × 271680.6%4281 × 3364
10°3312 × 248467.4%4496 × 3679

The box that holds the turned photo has a width of width × cos θ + height × sin θ and a height of width × sin θ + height × cos θ. Crop to fill keeps the original size multiplied by a factor k, which is the smaller of (width − 2) ÷ box width and (height − 2) ÷ box height. The area kept is the result area ÷ the original area, and the result bar shows it rounded down at the first decimal place. It shrinks quickly as the tilt grows, leaving only two thirds at 10°, so for a strongly tilted photo it may be better to choose Expand to fit all and then pick the part you want with an image cropper.

Does rotating reduce quality?

  • 90° turns and flips: they only move pixels around, so the pixel values stay the same. The tool draws these with interpolation turned off, so saving as PNG carries the original pixels over exactly.
  • Saving as JPG: the browser decodes the JPG to pixels and compresses it again, which adds one more very small loss. Higher quality means less loss and a bigger file. Programs such as jpegtran from libjpeg-turbo rearrange the compressed data (DCT coefficients) directly and can rotate a JPG without loss, but if the width and height are not multiples of 8 or 16 pixels, the blocks at the right and bottom edges have to be left as they are or trimmed.
  • Slanted angles: pixels no longer line up with the grid, so new values are made by blending neighboring pixels (interpolation). Very thin lines can look slightly softer, so settle on the angle once and do not rotate and save the same photo several times.

Which format should you save as?

Save formats compared
FormatTransparent backgroundQuality settingBest for
JPGNo (filled with the background color)40-100 (92 at first)Photos
PNGYesNone (lossless)Screenshots, documents, logos, and anything where pixels must stay exact
WebPYes40-100 (92 at first)Photos for the web (up to 16,383 pixels per side)

With Original format, JPG, PNG and WebP stay in the same format, while AVIF, BMP, GIF and HEIC are saved as PNG if they have transparent areas and as JPG if they do not. If you ask for a format the browser does not support, the HTML standard produces a PNG, and the format line tells you when that happens. The file size in the result bar is not an estimate; it is the size of the file this browser actually created.

A file can end up bigger than the original even though you only rotated it. The tool cannot know what quality the original was compressed at, so it starts at 92, and if the original was saved at a lower quality, the result is larger. To make the file smaller, lower the quality or use an image compressor as well.

Common mistakes

  • Mixing up flip and rotate: a photo that is mirrored never looks right however much you turn it. If the text reads backward, the photo needs a flip.
  • Fixing an upside-down photo with a vertical flip: flipping only top to bottom also reverses left and right. For an upside-down photo, rotate 180°.
  • Flipping a photo that contains text: lettering on signs, clothes and documents turns into mirror writing. Check the text on the stage before saving.
  • Missing what gets cut off: Crop to fill loses edges in proportion to the tilt. If something important sits in the dimmed area, reduce the angle or choose Expand to fit all.
  • Saving a transparent PNG as JPG: JPG has no transparent background, so transparent areas and empty corners are filled with the background color.

Where are your photos processed?

Photos are not sent to a server. They are read, rotated and turned into new files inside this browser. The new files do not carry the original's EXIF information (the orientation tag, the shooting date, the device and the location). Faces, license plates and addresses that are visible in the picture do remain, though. Closing or refreshing the page discards the photos you added and the results, so close it after saving.

Limits

  • The tool does not look at the picture to find the orientation or the horizon automatically. You choose the orientation among the eight tiles, and you straighten by drawing a line or entering an angle.
  • It does not do fully lossless JPG rotation of the compressed data. To keep the pixels exactly as they are, save as PNG.
  • Straightening covers −45° to 45° in 0.1° steps. For larger angles, combine it with the 90° buttons.
  • Animated GIF and WebP files use only the first frame, and the result is a still image.
  • You can add 50 MB per photo and up to 50 photos at a time. Results go up to 32,767 pixels per side and 50 million pixels, and WebP is limited to 16,383 pixels per side. iPhone and iPad have a canvas limit of 4,096 × 4,096 pixels, so a result larger than that area (16,777,216 pixels) is scaled down with its proportions kept, and the result bar says so. For example, a 5712 × 4284 photo turned 90° is saved at 3547 × 4729.
  • HEIC photos can be opened from Safari 17. If the browser cannot open one, the photo card shows a message, so convert it to JPG and add it again.

As of 2026-10-20, the relevant sentences in the documents below were checked. The limits of 50 photos, 50 MB and 50 million pixels and the starting quality of 92 are this tool's own settings.

Sources

Frequently asked questions

Does rotating a photo by 90 degrees reduce its quality?

Turns of 90° and flips only move pixels around, so the pixel values stay the same, and saving as PNG carries the original pixels over exactly. Saving as JPG makes the browser compress the image again, which adds one more very small loss. Slanted angles blend neighboring pixels into new values, so thin lines can look slightly softer.

Why is a photo upright on my phone but sideways after I upload it?

The phone did not rotate the pixels. It wrote an EXIF orientation tag that says to turn the photo when displaying it. Programs and sites that ignore the tag show the photo on its side. A file saved with this tool has the pixels themselves in the upright orientation and no tag, so it looks the same everywhere.

Why do selfies get saved mirrored, and how do I undo it?

The front camera preview is mirrored, but the saved photo is often recorded the way other people see you, so left and right are the opposite of what you saw while shooting. For a photo you have already taken, press Flip horizontal to get the view from the screen. On an iPhone, go to Settings > Camera and turn on Mirror Front Camera to save it just as it looked.

How do I level a tilted photo?

Draw a line on the photo along a horizon or a pole, something that should be straight, and the photo turns by the angle that makes the line level (or upright, if it is steeper than 45° from horizontal). You can also drag the straighten slider or type a number in the angle field for 0.1° steps, where positive is clockwise and negative is counterclockwise.

Why does the photo get smaller or grow empty corners when I set an angle?

A tilted rectangle needs a bigger rectangle to hold it, which leaves the four corners empty. Crop to fill keeps only the largest rectangle with the same proportions that fits with no gaps, so it gets smaller (4032 × 3024 turned by 2° becomes 3852 × 2889). Expand to fit all enlarges the canvas and fills the empty corners with the background (4136 × 3163 in the same case).

Can I rotate several photos at once?

You can add up to 50 photos at a time, and each one has its own orientation. Turn them one by one with the rotate button on each card, or set one photo and press Apply to all to give every photo the same orientation and angle. When you save, you get one ZIP file.

Why is the file bigger than the original even though I only rotated it?

The tool cannot know what quality the original was compressed at, so JPG and WebP are recreated at a starting quality of 92. If the original was saved at a lower quality, the result is larger. Lower the quality and the real file size in the result bar is measured again right away.

Are my photos uploaded to a server?

No. Reading, rotating and creating the new file all happen inside this browser, and the new file does not carry the original's EXIF information (orientation tag, shooting date, device and location). Closing the page discards the photos you added and the results.