Image Rotate & Flip
Rotate images by 90°, 180° or any angle and mirror them, in batch. Corners are never clipped and EXIF orientation is baked in.
Runs entirely in your browser — nothing is uploadedDrop files or click to browse
JPEG, PNG, WebP, AVIF, GIF, BMP, SVG · 90/180/270 never resample, other angles do · EXIF orientation is read, baked in, then strippedAbout the Image Rotate & Flip
Turn a picture a quarter, a half or three-quarters of the way round, mirror it left–right or top–bottom, or type any angle you like — 12, -7.5, 137 — and watch it happen in a live preview before anything is written. Drop in a whole folder and one setting applies to all of them; download them individually or as a single ZIP assembled in your browser. Output keeps the original format wherever a browser is able to write it back.
An off-axis rotation needs a bigger canvas, and most quick implementations forget. Turn a 4000×3000 photo by 12° and its corners now stick out past the old rectangle: the picture needs a canvas |w·cos θ| + |h·sin θ| wide and |w·sin θ| + |h·cos θ| tall — 4535×3767 in that example, about 42% more pixels. Draw it into a 4000×3000 canvas instead and the four corners are simply cut off, silently, with nothing anywhere reporting a problem. This tool always allocates the full bounding box and tells you the exact output size before you commit. The four triangles that get uncovered are genuinely empty, so they take a background colour you choose — leave it transparent for PNG and WebP, or pick one, because JPEG has no alpha channel and unfilled transparency comes out black. That is the whole explanation for every rotated photo you have seen sitting in a black diamond.
Multiples of 90° and mirrors are the only operations here that do not resample. They permute the pixel grid: every destination pixel maps onto exactly one source pixel, so nothing is interpolated and smoothing is switched off to guarantee it. Any other angle has to sample between pixels, which softens fine detail and text a little — unavoidable, and worth knowing before you rotate a screenshot by 3° to straighten it. That is also why the exact-angle field matters: 90 is a different kind of operation from 89.9, and this tool treats it as one (Math.cos(Math.PI / 2) is 6.1e-17 rather than 0, which is how a naive rotation turns 1920×1080 into a 1081-pixel-tall canvas with a transparent seam down one edge).
Rotating a JPEG in a browser is never lossless, and no web tool can honestly claim otherwise. Desktop utilities like jpegtran rotate a JPEG by transposing its compressed 8×8 DCT blocks without ever decoding to pixels, which is bit-for-bit reversible. A browser has no access to that: the only path is decode → draw → re-encode, so a quarter turn costs one generation of JPEG quality. It is a small loss once and a visible one after several rounds. If that matters, choose PNG output — PNG in, PNG out, at a quarter turn, changes no pixel value at all and is exactly reversible. The tool says which of these you are getting for each file before you run it.
Phone photos are the other trap. A camera usually stores the sensor image sideways and writes an EXIF orientation flag saying which way is up, so the file looks upright in your viewer while its stored pixels are not. Some "rotate" tools only rewrite that flag, which is why a rotated image sometimes looks correct in one app and wrong in another. This one reads the flag, applies it first, composes your rotation on top, and bakes the result into the actual pixels — after which the flag is gone and every piece of software agrees. Browsers disagree about what createImageBitmap's imageOrientation option does, so rather than guessing, the page builds a tiny 3×2 test JPEG carrying orientation 6 and measures what this particular browser actually does with it.
Everything runs in your browser through the Canvas API — no upload, no server, no queue, no file-size cap beyond your own memory. Open the Network tab and watch nothing leave, or turn off Wi-Fi after the page loads and keep working. One useful side effect: re-encoding through a canvas drops all metadata, so the GPS coordinates and camera serial number embedded in a phone photo do not survive into the file you save.
Everything runs inside your browser using standard web APIs. Your data is never uploaded, never stored on a server, and never leaves your device — you can confirm that by opening your browser devtools Network tab, or by switching off your Wi-Fi and using the tool offline.
Frequently asked questions
Is rotating a JPEG here lossless?
No, and nothing that runs in a browser can be. Lossless JPEG rotation means transposing the compressed 8×8 DCT blocks in place, which is what jpegtran and similar desktop tools do; a browser can only decode the image to pixels, draw it, and re-compress it, which costs one generation of quality. It is barely visible on one pass and accumulates over many. Choose PNG output if you need exactness: a PNG rotated by a multiple of 90° into PNG changes no pixel value, only their positions.
My photo looks rotated in the preview before I touch anything. Why?
Because it already was. Cameras and phones commonly store the sensor image sideways and add an EXIF orientation flag telling viewers to turn it. The preview shows you the picture as your viewer shows it — flag applied — so the rotation you choose is composed on top of what you can actually see. When the file is saved the rotation is baked into the pixels and the flag is dropped, so it will now look the same in every application, including ones that ignore EXIF.
Why did the corners of my rotated image come out black, or white?
Rotating by anything that is not a multiple of 90° tilts the rectangle inside a larger one, and the four triangles left over have no image data in them. If the output format supports transparency (PNG, WebP, AVIF) they can stay transparent. JPEG has no alpha channel at all, so those areas must be some solid colour — left unspecified they come out black, which is why this tool fills them with your chosen background and warns you when "transparent" cannot be honoured.
Why is the rotated file bigger than the original?
Two reasons, often together. An off-axis rotation genuinely adds pixels — a 45° turn of a square needs about twice the canvas area — and every one of them has to be stored. Separately, re-encoding rarely reproduces the original encoder's exact byte count, and converting a photographic JPEG to PNG will multiply its size several times because PNG is lossless. The tool flags that case before you run it and shows the before/after size per file.
Can it rotate an animated GIF or animated WebP?
No. A canvas can only read the first frame of an animation, so what comes back is a single still image and the animation is gone. The tool detects animation from the file's bytes and says so up front rather than handing you a one-frame file that looks like a failure. Nothing that rotates through a browser canvas can preserve an animation.
What happens to a GIF, BMP, TIFF or SVG?
A browser canvas can only write four formats: JPEG, PNG, WebP and AVIF. "Keep original" therefore cannot return a GIF as a GIF or a BMP as a BMP — those are saved as PNG, and you are told why, rather than getting PNG bytes under a .gif name. SVG is rasterised to PNG at its natural size, which means it stops being scalable; to rotate an SVG losslessly, wrap its contents in a <g transform="rotate(…)"> in a text editor instead. TIFF and JPEG 2000 have no decoder outside Safari, and HEIC has none anywhere, so those are refused with an explanation instead of failing silently.
Does mirroring behave differently after I have rotated the image?
No — the mirror buttons always mirror what you see. Internally mirrors are stored before the rotation, so the tool re-expresses an on-screen mirror canonically (mirroring the output is equivalent to negating the angle and toggling the stored mirror). You may notice the angle readout flip from 30° to 330° when you press mirror; that is the same picture described the other way round, and the preview shows the truth.