Image Rotate

Rotate images online in your browser.

Your pictures stay on this device. They are turned in your browser and are never uploaded.

JPG, PNG, GIF, WebP, BMP or AVIF. One picture or many at once. You can also paste a picture.

degrees

A JPG cannot be see-through. Its corners become white.

Tick

The buttons above turn the ticked pictures. The two small arrows under a picture turn that picture alone.

A JPG stays a JPG, a PNG a PNG, a GIF a GIF and a WebP a WebP. BMP and AVIF pictures are saved as PNG, which loses nothing: a browser cannot write those two.

Automatic takes a little more than the quality the picture was saved at, and never under 85. A JPG that can be turned without encoding again is not touched by this choice.

Turn a picture first.

A picture you did not turn is handed back as it is, byte for byte.

Rate this tool

How useful was this tool?

Image Rotate

Rotate images in your browser, one at a time or up to 300 at once. Click Choose pictures, or drop them here, drop your files on that box, or paste a picture. As the page says: “JPG, PNG, GIF, WebP, BMP or AVIF. One picture or many at once. You can also paste a picture.” Turn the picture with the buttons, then click Save the picture. With one picture the download starts by itself, under a name like holiday-turned.jpg.

Everything happens on your device. Above the box the page says: “Your pictures stay on this device. They are turned in your browser and are never uploaded.” In testing, the page uploaded nothing and fetched nothing from other sites while it worked.

Each picture shows its name and a line such as 768 × 512 pixels (0.4 megapixels), JPG, 75.5 KB. Under that, a second line says what will happen to it when you save, and it changes as you turn. A picture you have not turned reads “Not turned.”, and while nothing is turned the page says “Turn a picture first.”

Turn left, turn right, upside down, mirror and flip

Five buttons turn the picture, and the picture on the page turns at once. Their hover texts say what each does:

  • Turn left: “A quarter turn to the left (anticlockwise)”
  • Turn right: “A quarter turn to the right (clockwise)”
  • Upside down: “A half turn: 180 degrees”
  • Mirror: “Mirror image: left and right change places”. Other programs call this a horizontal flip.
  • Flip: “Flipped over: top and bottom change places”. Other programs call this a vertical flip.

Turns add up: Turn right twice is Upside down, and four times is no turn at all. Nothing is saved until you click the save button. Undo the turns appears once something is turned, and puts every picture on the list back as it came, slant included.

Rotate by any angle to straighten a photo

To straighten a photo that slants, drag the Any angle slider or type the angle into the box next to it. The slider goes from -45 to 45 degrees in steps of 0.1, and the box takes any number from -180 to 180. The page explains:

Drag to level a picture that slants, or type any angle from -180 to 180. Above nought turns clockwise.

While you drag, lines to level by show over the picture (with one picture on the list; in the grid of many they would be too small to help). Back to 0 takes the angle back. Typing 90, -90 or 180 gives the same quarter and half turns as the buttons, done the same way, without drawing the picture anew.

Level by a line does the measuring for you, on any picture on the list. Click it and draw a line on the picture along something that should be straight. The hint changes to:

Draw a line on the picture along something that should be level or upright: the horizon, a roof, a door frame.

The picture is then turned so that your line is level, or upright, whichever is nearer. While you draw, the button reads Stop drawing. In testing, a line along a horizon that slanted 7 degrees set the angle to -7, and in the saved picture the horizon stood at the same height on the left and the right.

Fill or cut off the empty corners

A slanted picture leaves four empty corners, and you choose under The empty corners whether to fill them or cut them off:

  • Fill them: “A slanted picture leaves four empty corners. The whole picture is kept and the corners are filled.”
  • Cut them off: “The largest upright picture without empty corners is kept. The rest is cut away.”

A 768 × 512 photo turned 10 degrees comes out at 846 × 638 pixels filled, or 710 × 394 cut.

When you fill them, Fill with offers Nothing (see-through), White, Black or A colour of your own. A JPG can’t be see-through, and the page says so: “A JPG cannot be see-through. Its corners become white.” Save it as PNG to keep see-through corners.

A slant moves every pixel off its place in the grid, so a slanted picture is always drawn anew. A JPG is then encoded again, and the line says so: “A slanted picture is drawn anew, so it is encoded again (quality 95).” A PNG stores the drawn picture exactly, and so does a GIF, which is saved as PNG once it slants: “A slanted picture is drawn anew. PNG then stores it exactly.”

If you mirror a slanted picture, it slants the other way, so the angle changes its sign.

Rotate a JPG without losing quality

A JPG is turned without encoding it again wherever its size allows, so its quality stays exactly the original’s. Picture programs call this lossless JPG rotation.

Here’s why it works. A JPG stores its picture as blocks of 8 × 8 numbers that were rounded when it was saved. That rounding is where a JPG loses quality, and most programs do it again each time they open a JPG, turn it and save it. A quarter turn or a mirror image doesn’t need it: the page puts the same numbers in a new order, some with their sign changed, in an engine written for this tool.

Before you save, the line under the picture reads “Will be turned without encoding again. Nothing is lost.” After saving, the result says “Turned without encoding again: the quality is exactly the original's.”

A turned JPG is the kind it was. An ordinary (baseline) JPG stays ordinary, and a progressive one stays progressive, written in the same passes the reference JPEG encoder uses. Grey and four-colour (print) JPGs are turned the same way. The engine was checked on 1,116 turned test files, 428 of them progressive, and on photos from 30 real cameras and phones: a turn followed by its opposite gives back the very same numbers, and Pillow, ImageMagick and FFmpeg read every file without a complaint.

The picture doesn’t change, and the file size changes only a little, because the page writes the file with coding tables made for that picture:

  • Photos straight from 30 cameras and phones came out 0.1 to 8 percent smaller. A 12-megapixel test photo went from 2.34 MB to 2.20 MB.
  • Progressive photos came out the same size as they were, on average over 12 test photos. One of 73,310 bytes came out at 72,950 turned left; a 12-megapixel one went from 2.11 MB to 2.10 MB.

When a JPG’s size stands in the way

A JPG can only be turned without encoding when the side that changes places is a whole number of blocks. In nearly every phone photo and most camera photos, a block is 16 pixels, because the colour is stored at half size. Some cameras use 16 across and 8 down, and some files 8 both ways. A side that isn’t a whole number of blocks ends in a part block at the right or bottom edge. A turn that would move that part block to the left or the top can’t be done by re-ordering, because a JPG can’t have a part block there.

For a file without a “turn me” note, Turn left and Mirror need whole blocks across the width, Turn right and Flip down the height, and Upside down both. Here’s what that means for common sizes, worked out for 16-pixel blocks and files without a note:

Picture size Turn left Turn right Upside down Mirror Flip
4032 × 3024 (12 MP, iPhone and Pixel) yes yes yes yes yes
6000 × 4000, 3840 × 2160, 1280 × 720 yes yes yes yes yes
4000 × 3000 (12 MP, many Android phones) yes 8 px 8 px yes 8 px
1920 × 1080 yes 8 px 8 px yes 8 px
1080 × 1920 8 px yes 8 px 8 px yes
1080 × 1350 8 px 6 px 8 and 6 px 8 px 6 px

“Yes” means the turn is done without encoding. A number is the size of the part block: that turn is encoded again, gives up that many pixels at one edge, or only gets a note, as you choose below. Of 30 real camera and phone files tested, 22 fit every turn. The other eight were five small web copies, two photos straight from older cameras (600 × 450 and 896 × 600) and one phone photo of 4608 × 1976. A photo stored on its side follows the same rule on its stored sides, which changes the answers; the section on sideways photos below has the table.

You don’t need to work this out yourself. The line under each picture tells you, for example:

“Has to be encoded again (quality 95): one side is 771 pixels, which is not a whole number of 16-pixel blocks.”

Then a choice appears, JPGs that cannot make this turn without being encoded again, with this explanation above the option you pick:

A JPG is stored in blocks, in nearly every file of 8 or 16 pixels. A quarter turn or a mirror image re-orders the blocks, which loses nothing. It only works when the side that changes places is a whole number of blocks.

You have three ways out:

  1. Encode them again (the choice at the start): “The picture is turned and saved again as a JPG. The loss is small, and it is a loss.” Choose this when every pixel at the edge counts.
  2. Give up a few pixels at one edge and keep the quality: “The part block at the edge is left out: less than one block on one side, or on two sides for a half turn. Each picture says how many pixels that is. Everything else is the original, number for number.” The line then reads, for example, “Will be turned without encoding again, giving up 3 pixels at the left edge (the striped strip on the picture).” Before you save, the pixels that will go are shown on the picture as a red-and-white striped strip along that edge, two strips for a half turn. With 16-pixel blocks it’s never more than 15 pixels a side. Choose this when a sliver at the edge doesn’t matter.
  3. Only write a "turn me" note into the file: “Nothing of the picture is touched. The file only asks programs to show it turned. Browsers, phones and most picture programs do; some programs and some websites ignore the note and show the picture as before.” The file stays the original with one number changed, or with a 36-byte note added when it had none. Choose this when the file must stay as it is and the programs you use follow the note.

The quality where a picture is encoded again

When a picture will be encoded again, Quality, where a picture has to be encoded again appears, with Automatic, 100, 95, 90, 85, 80, 70 and 60. The page explains:

Automatic takes a little more than the quality the picture was saved at, and never under 85. A JPG that can be turned without encoding again is not touched by this choice.

In numbers: the page reads the quality off the JPG’s own tables, adds 5, and stays between 85 and 97. A photo saved at 90 is encoded at 95, one saved at 60 at 85. A picture that isn’t a JPG gets 92, or 100 where it can be saved as WebP without loss.

The file size depends on the quality and on your browser’s own JPG encoder. A 771 × 515 photo of 75.9 KB, mirrored and encoded again, came to 110.6 KB at 95 and 49.4 KB at 80 in Chrome. Firefox made 138.6 KB of it at 95.

Why a photo shows sideways, and how to fix it

A photo shows sideways in some places when it’s stored lying down with a note that says “turn me”. A phone held upright often saves the photo that way. Programs that follow the note show it upright; programs and websites that ignore it show it lying down.

The page follows the note. Such a photo is shown upright and described by its upright size, such as 480 × 640 pixels (0.3 megapixels), JPG, 91.5 KB, and the buttons turn what you see. Its line reads “Not turned. Stored on its side with a "turn me" note.”

To make it upright everywhere, tick Stand upright the photos I did not turn but that carry a "turn me" note. It’s off at the start. The page explains:

Phones store an upright photo on its side and add a note that says "turn me". Programs that ignore the note show such a photo lying down. With this ticked the photo is turned for real and the note is taken out, so every program shows it the same.

The line then reads “Not turned by you. It will be stood upright for real. Will be turned without encoding again. Nothing is lost.” When the photo’s size stands in the way, it says so instead, for example “Not turned by you. It will be stood upright for real. Has to be encoded again (quality 97): one side is 486 pixels, which is not a whole number of 16-pixel blocks.”

Any turn you save takes the note out too, so a photo you turn here shows the same in every program.

The note also changes which turns fit the blocks, because the page turns the photo as it is stored. For a 4000 × 3000 photo with 16-pixel blocks:

4000 × 3000 photo Stand upright (tick box) Turn left Turn right Upside down Mirror Flip
No note nothing to do yes 8 px 8 px yes 8 px
Note “turn right” (the usual upright phone photo) 8 px yes 8 px yes yes 8 px
Note “turn left” yes 8 px yes 8 px 8 px yes

A 4032 × 3024 photo fits every turn, with or without a note. For other sizes, the line under each picture says which case it is.

Rotate a PNG without losing anything

A PNG is turned bit for bit. The page turns it with an engine of its own, which moves the pixels as the file stores them: “Will be turned and saved as PNG. Every pixel is kept exactly.”

A PNG of 16 bits a channel stays one, a 16-colour drawing stays a 16-colour PNG, and pixels that are partly see-through keep their exact values. The colour profile, the text notes and the print size stay too. A browser’s canvas can do none of these four things, which is why the page doesn’t use it for PNGs. The engine was checked on 103 PNGs of every kind, turned every way: every bit was the same.

The file size still changes a little either way, because the rows are packed anew. A 16-colour drawing went from 5,535 to 6,569 bytes; a 16-bit picture that had been stored loosely went from 92,939 to 52,761 bytes.

Rotate a GIF, animated or not

A GIF stays a GIF, and a moving one keeps moving: the page turns every frame with an engine of its own. A browser can’t write a GIF at all, and its canvas only ever sees the first frame of a moving one, so the page unpacks each frame, moves its numbers and packs it again. The colour tables, the timing of every frame, the looping, the see-through colour and the comments stay byte for byte as they were.

For a moving GIF, the line reads, for example, “Will be turned and saved as GIF. All 3 frames are kept exactly, with their timing.” and the result “80 × 120 pixels, GIF, 1.5 KB. All 3 frames kept exactly, with their timing.” A still GIF reads “Will be turned and saved as GIF. Every pixel is kept exactly.”

The engine was checked on 62 GIFs made by three programs (2 to 256 colours, interlaced, see-through, frames that are small pieces, frames with colour tables of their own) turned every way: frame for frame, each was the original turned, with the same timing and looping. Written again, the test GIFs came out 2.6 percent smaller on average; a 40-frame GIF of 3.45 MB came out at 3.27 MB.

A moving PNG keeps moving too: “Will be turned and saved as PNG. All 3 frames are kept exactly, with their timing.”

A moving GIF or PNG keeps its frames while it is turned by the buttons. Slanted, or saved as another kind, it has to be drawn by the browser, and the page warns: “This picture moves. Only its first frame is turned and saved.”

WebP, BMP and AVIF

A WebP stays a WebP, and BMP and AVIF pictures are saved as PNG.

A WebP that has lost nothing so far is saved without loss on Automatic: “Will be turned and saved as WebP without loss.” The page first tests that your browser’s WebP really is the kind that loses nothing; Chrome’s and Firefox’s are. A WebP that was already lossy is encoded again: “Will be turned and saved as WebP (quality 92).”

A moving WebP keeps only its first frame, with the same warning as above, because a browser can’t write a moving WebP and the page has no engine for one.

A browser can’t write BMP or AVIF either, so those come back as PNG: “Will be turned and saved as PNG, which loses nothing. A browser cannot write BMP.” (or AVIF).

A WebP with soft edges, or a PNG with soft edges saved as WebP, has to go through the browser’s canvas, and the page doesn’t call that exact: “This picture has pixels that are partly see-through. A browser has to draw it to turn it, and their colour can come out a shade off.” In testing, the worst was 1 step in 255.

Save as JPG, PNG or WebP

Save as starts at Each picture's own format, with JPG, PNG and WebP to choose instead:

A JPG stays a JPG, a PNG a PNG, a GIF a GIF and a WebP a WebP. BMP and AVIF pictures are saved as PNG, which loses nothing: a browser cannot write those two.

A picture saved as another kind is drawn anew, for example “Will be turned and saved as JPG (quality 92).” A see-through picture saved as JPG gets a white background. To turn a JPG without loss, keep it a JPG: leave Save as on Each picture's own format or JPG.

When you change a choice after saving, the earlier results are taken back, so you can’t download a file made with the old settings.

What stays in the file

A JPG turned without encoding keeps the date, camera, lens and place the photo was taken (its EXIF details), its colour profile, its XMP block and its comments.

  • Set right: the “turn me” note is set to “as it is”, so no program turns the picture a second time, and the size written in the camera’s details becomes the new size.
  • Taken out: the small preview copy some cameras keep inside the file, because it would still show the picture unturned.
  • Left out, unless you keep it: a second picture stored behind the first, as phones store a depth map or the brighter version of an HDR photo. The page warns: “This photo holds a second picture behind the first, as phones store a depth map or the brighter version of an HDR photo. A turned copy leaves it out. A "turn me" note keeps it.” Under that note is the button Keep it: only write a "turn me" note. Pressed, the line reads “Only a "turn me" note will be written. The picture itself stays untouched.”, the file is saved whole with only the note set, and the button reads Turn the picture itself to go back. Without it, the result says, for example, “What stood behind the picture in the file (3.9 KB) was left out.”

A JPG that has to be encoded again keeps its camera details too, with the note set right. Its colour profile isn’t carried over, because a browser hands out sRGB. If the profile was a different one, the page says: “This picture carries a colour profile that is not sRGB. Where it is encoded again, its colours are converted to sRGB.”

Camera details go along only where a JPG stays a JPG. A JPG saved as PNG or WebP loses them, and so does a WebP that is drawn again. The page says so before you save, on any picture that would lose them: “This picture carries camera details (date, place, model). They only go along where a JPG stays a JPG.”

A PNG turned by the page’s own engine keeps what it carries: colour profile, text notes and print size. A GIF keeps its comments. A 16-bit PNG that is slanted or saved as another kind gets the warning “This PNG has 16 bits a channel. The result has 8, as browsers draw it.”

The place a photo was taken stays in a turned JPG. To take it out before you share it, use Metadata (EXIF) Remover.

Rotate many images at once

To rotate many images at once, choose up to 300 pictures: the buttons turn every ticked picture, and each picture is ticked when it’s added. With more than one picture, a row appears above them: Tick All (5), Upright (2), Wide (3), None, and a count such as 2 of 5 ticked. The page explains:

The buttons above turn the ticked pictures. The two small arrows under a picture turn that picture alone.

An upright picture is taller than it is wide, as it’s shown; a wide one is wider than tall. So to turn all the upright photos of a trip to lie wide, click Upright (2), then Turn left. A click on a picture ticks or unticks it. Take all off the list empties the list.

The save button then reads Save 5 pictures. While it works, it shows Turning picture 3 of 5…, and afterwards a line sums up, such as “3 turned without any loss, 2 left as they were.” A picture that gave up edge pixels is counted apart: “5 turned without any loss, 1 turned without encoding, with edge pixels given up.” As the page notes: “A picture you did not turn is handed back as it is, byte for byte.”

Each picture gets its own Download, and Download all as a ZIP gives turned-pictures.zip with the pictures under the names they came with. Two pictures of the same name get “(2)”.

Stop works between pictures: “Stopped. 2 of 8 pictures are done.” The finished ones keep their downloads, and saving again carries on from there.

Example

A 12-megapixel test photo of 4,032 × 3,024 pixels and 2.34 MB, Turn right. Before saving, the line reads:

“Will be turned without encoding again. Nothing is lost.”

Less than a second later, the result reads:

“3,024 × 4,032 pixels, JPG, 2.20 MB. Turned without encoding again: the quality is exactly the original's. The original is 2.34 MB.”

A photo of 771 × 515 pixels and 75.9 KB, Mirror. Its width isn’t a whole number of 16-pixel blocks, so the line reads “Has to be encoded again (quality 95): one side is 771 pixels, which is not a whole number of 16-pixel blocks.” Each of the three choices gives a different result:

Choice Result
Encode them again “771 × 515 pixels, JPG, 110.6 KB. Encoded again at quality 95. The original is 75.9 KB.”
Give up a few pixels at one edge and keep the quality “768 × 515 pixels, JPG, 74.4 KB. Turned without encoding again. 3 pixels at the left edge were given up. The original is 75.9 KB.”
Only write a "turn me" note into the file “771 × 515 pixels, JPG, 76.0 KB. Only the "turn me" note was written. Programs that ignore the note show the picture as before. The original is 75.9 KB.”

How long it takes

Measured in Chrome 157 on a desktop computer with an AMD Ryzen 9 3950X:

Job Time
A 12-megapixel JPG, turned without encoding 0.6 to 0.8 s
A 48-megapixel JPG, turned without encoding 2.3 s
A 12-megapixel progressive JPG 1.4 s
A 48-megapixel progressive JPG 5.0 s
A moving GIF, 480 × 360, 40 frames (3.45 MB) 0.5 s
300 small PNGs 5.5 s to read, 1.5 s to turn and pack into the ZIP

A progressive JPG takes about twice as long as an ordinary one. The JPG engine runs beside the page, so the page doesn’t freeze while a large photo is turned.

Limits, and what to do instead

  • Up to 300 pictures at a time. Choose more and the page says “That is more than 300 pictures. The first 300 were taken.” Save those, click Take all off the list, then choose the rest.
  • HEIC photos. Chrome and Firefox can’t open them, and the page says, for example, “Your browser cannot open HEIC photos. Turn photo.heic into a JPG first, then choose the JPG here.” Use HEIC to JPG first.
  • Files that aren’t pictures, or pictures your browser can’t open: “notes.txt is not a picture your browser can open.”
  • Up to 100 megapixels for the page’s own engines. A larger JPG is left to the browser and encoded again; its line says “at over 100 megapixels this picture is too large to be re-ordered in a browser.” The largest picture tested was 48 megapixels.
  • Pictures the browser can’t hold. A picture that has to be drawn anew (slanted, or saved as another kind) must fit in the browser whole. If it doesn’t, the line under it reads, for example, “long.png could not be turned: this browser cannot hold a picture of 21,284 × 21,284 pixels.” That was a picture 30,000 pixels long and 100 high, slanted by 45 degrees; a quarter turn of the same picture worked. So try a quarter turn, half turn, mirror or flip, which the page’s engines do without drawing.
  • Broken JPGs. A JPG that breaks off before its end, such as a download that stopped, is noticed when you choose it: “Has to be encoded again (quality 95): this file breaks off before its end, so only the browser can still make a picture of it.” A JPG that is damaged inside only shows it when it’s read, and the result then says “The file is damaged, so the browser drew what it could of it.”
  • Moving WebPs keep only their first frame, and so does a moving GIF or PNG that is slanted or saved as another kind.
  • No cropping or resizing beyond Cut them off for a slanted picture.
  • If the ZIP fails, the page says “The ZIP could not be put together. Download the pictures one by one.”

Which tool for which job

FAQ

Can I rotate a JPG without losing quality?

Yes, wherever its size allows. A quarter turn, half turn, mirror or flip re-orders the JPG’s stored numbers without encoding them again when the side that changes places is a whole number of 8- or 16-pixel blocks, so the quality is exactly the original’s. A slanted JPG is always encoded again.

Why does the page say my JPG has to be encoded again?

Most often because the side that changes places isn’t a whole number of blocks, so the part block at its edge can’t be moved; the line under the picture gives the reason. Choose Give up a few pixels at one edge and keep the quality to lose a few pixels at one edge (at most 15 in nearly every JPG) instead of encoding, or Only write a "turn me" note into the file to leave the picture untouched.

Why do my photos show sideways on some websites?

The phone stored them lying down with a “turn me” note, and those websites ignore the note. Tick Stand upright the photos I did not turn but that carry a "turn me" note and save: the photo is turned for real and the note is taken out, so every program shows it the same.

How do I straighten a crooked photo?

Drag the Any angle slider, type an angle from -180 to 180, or click Level by a line and draw along the horizon. Then choose whether to fill The empty corners or cut them off.

How do I flip or mirror an image?

Click Mirror to swap left and right (a horizontal flip), or Flip to swap top and bottom (a vertical flip). A JPG whose size fits is mirrored or flipped without encoding again, and a PNG or GIF exactly.

Can I rotate an animated GIF?

Yes. The GIF stays a GIF and keeps moving: every frame is turned exactly, with its timing, its colours and its looping. Only a slanted GIF, or one saved as another kind, keeps just its first frame.

Can I rotate multiple images at once?

Yes, up to 300. The buttons turn every ticked picture, the Upright and Wide buttons tick pictures by their shape, and Download all as a ZIP gives them back under their own names.

Does rotating keep the EXIF data?

Yes, where a JPG stays a JPG. A turned JPG keeps its date, camera, lens and place, with the “turn me” note set to “as it is” and the old preview copy taken out. A JPG saved as PNG or WebP loses them, and the page warns before you save.

Are my pictures uploaded?

No. They are turned in your browser and never leave your device.

Note: All processing is done client-side. We do not store or see your data.

Related Tools

Contact

Missing something?

Feel free to request missing tools or give some feedback using our contact form.

Contact Us