Image Flip & Mirror Transform Code Generator
Calculate CSS and SVG matrix transforms for flipping images horizontally or vertically.
Related tools
Image Flip & Rotate Data Transform
Calculate rotation angles (90°, 180°, 270°) and transform parameters.
Image Aspect Ratio & Crop Calculator
Calculate crop boundaries and coordinate offsets for standard photo aspect ratios.
Image Dimension Calculator & Resizer
Calculate resized image dimensions while preserving aspect ratio (16:9, 4:3, 1:1).
Image CSS Filter & Effect Generator
Generate CSS filter presets (blur, sepia, grayscale, invert, contrast, brightness).
CSS / SVG Gradient Image Generator
Generate downloadable SVG gradient background images with custom color stops.
This image flipper generates the exact CSS and SVG matrix transform syntax needed to mirror an image horizontally or vertically without touching the original file. Pick horizontal or vertical flip and the tool returns ready-to-paste transform: scaleX(-1) or scaleY(-1) CSS along with the equivalent SVG matrix values. It's a quick reference for front-end developers adding mirrored icon variants, designers building symmetrical layouts, and anyone debugging why a flip transform in their CSS or SVG isn't rendering as expected. Since this is purely a code-generation and math tool, no image is uploaded or processed — you get accurate, instantly copyable transform values directly in your browser, which is both faster and more private than any flip tool requiring a file upload. It pairs naturally with the rotate calculator when you need to combine flipping and rotating in one transform chain. Whether you're mirroring a logo for a left-facing layout or building a reflection effect, this tool gives you the precise syntax without trial and error. Scroll down to choose your flip direction and copy the generated code.
Features
- Generate CSS transform: scaleX(-1) for horizontal flip
- Generate CSS transform: scaleY(-1) for vertical flip
- Equivalent SVG matrix transform values
- Combine flip with rotation for compound transforms
- Copy-ready code snippets
- Real-time preview of the transform effect
- No image upload needed — pure code generation
- Works for both CSS and inline SVG use cases
Why use this image horizontal & vertical inverter?
- Instant code generation with zero processing wait
- Fully private — no image file is ever transmitted
- Accurate, tested transform syntax that just works
- Saves time versus manually writing matrix values
- Free with unlimited generations and no signup
Frequently asked questions
How do I flip an image horizontally with CSS?
Apply transform: scaleX(-1) to the image element, which mirrors it left-to-right without altering the source file.
How do I flip an image vertically with CSS?
Apply transform: scaleY(-1) to flip the image top-to-bottom.
What's the SVG equivalent of CSS scaleX(-1)?
In SVG, a matrix transform of matrix(-1,0,0,1,width,0) achieves the same horizontal mirror effect, accounting for the element's width offset.
Can I flip and rotate an image at the same time?
Yes, you can chain multiple CSS transform functions, like transform: scaleX(-1) rotate(90deg), to combine flip and rotation.
Does flipping with CSS change the actual image file?
No, CSS and SVG transforms are visual effects applied at render time and don't modify the underlying file.
Why isn't my flip transform working?
Common causes are a missing transform-origin setting or a parent element clipping the flipped content — double check both.
Is any image data uploaded when generating flip code?
No, this tool only outputs transform syntax based on your selected direction — no file is involved.