Rotate & Flip Images

Rotate PNG, JPEG or WebP in 90-degree steps and flip horizontally or vertically. Choose the output format and quality.

Drop files here. Files stay on your device.

Rotate the displayed image

Choose a PNG, JPEG or WebP. The browser decodes its display orientation, applies horizontal/vertical flips before the selected clockwise rotation, then exports the new pixels. A 90° or 270° turn swaps width and height.

PNG and WebP can retain transparency. JPEG uses a white background for transparent pixels and is lossy. Exports are re-encoded, so original EXIF, XMP and encoding details are not preserved. Animated PNG/WebP becomes the browser-decoded still frame; this is a static-image tool.

Local processing and file limits

Images are processed in your browser and are not uploaded. Limit: 40 MiB input, 10,000 pixels per side and 40 million pixels. Cancel, clear and input changes invalidate old results.

Questions & answers

Is a JPEG rotation lossless?

No. This browser tool re-encodes the decoded pixels. PNG avoids an additional lossy JPEG encoding step, though the original JPEG’s compression losses remain.

Are files uploaded to a server?

No. Files, input text and results stay in your browser. Required engines, fonts and support files load from this site.

Other Languages

Rotate & Flip Images — Base64.sh

Rotate & Flip Images

Rotate PNG, JPEG or WebP in 90-degree steps and flip horizontally or vertically. Choose the output format and quality.

Share:

References

How we make sure

We check this tool with the automated test suites linked below. Example checks are shown in their original language.

Verification method
Check actual shared size/coordinate/quality functions against explicit geometry results, including invalid/out-of-bounds inputs.
Comparison reference
Fixed geometry/parameter assertions: swapped dimensions for rotation, crop bounds, resize ratios and compression type/quality.
Verification scope
These parameter checks are not independent image-codec or visual-quality verification.
Test source and cases (select a file to read it)

These checks cover the listed examples and boundaries, not every possible input. Round trips and checks using the same library are not independent verification.