CSS Transform Generator
Compose translate, rotate, scale, skew, and perspective into one CSS transform, previewed live.
transform: none;How to generate a CSS transform
Choose 2D or 3D
Pick 2D for flat moves or 3D to unlock perspective and depth rotation on the element.
Drag the sliders
Adjust translate, rotate, scale, and skew and watch the sample element move in real time.
Set the origin
Change the transform-origin anchor so rotation and scaling pivot from the point you want.
Copy the CSS
Copy the composed transform and transform-origin declarations straight into your stylesheet.
Why use this tool
Every transform in one place
Translate, rotate, scale, and skew all compose into a single transform value as you edit.
True 3D preview
Switch to 3D to add perspective and rotate the element around the X, Y, and Z axes.
Order matters, and you see it
Functions apply in a fixed, readable order so the preview always matches the copied CSS.
Adjustable transform-origin
Nine anchor presets pivot rotation and scaling from any corner, edge, or the center.
Everything stays on your device
The preview and CSS are built in your browser. Nothing is uploaded or stored anywhere.
Free and instant
No accounts, no limits, no wait. Drag a slider and the CSS updates immediately.
About this tool
The CSS Transform Generator turns the fiddly `transform` property into a set of sliders you can feel your way through. Instead of guessing at degrees and pixels, you drag translate, rotate, scale, and skew and watch a sample element respond instantly. When it looks right, you copy a clean transform declaration.
CSS transforms combine several functions into one value, and the order they appear in changes the result: a rotate followed by a translate moves along the rotated axes, not the screen axes. This tool composes the functions in a consistent, predictable order and shows exactly what the copied CSS will do, so the preview never lies to you.
Switch between 2D and 3D modes depending on what you need. In 2D you get the familiar flat moves. In 3D you add a perspective value and rotate the element around all three axes for depth and card-flip effects. The transform-origin control sets the pivot point, which matters a lot once rotation and scaling are involved.
Everything runs on your device, so nothing you build is uploaded. Pair it with the CSS transition generator to animate the change, the cubic-bezier editor to tune the timing, or the CSS animation generator for keyframed motion. For related effects, try the CSS filter generator and box-shadow generator.
Frequently asked questions
- Why does the order of transform functions matter?
- CSS applies transform functions left to right, and each one changes the coordinate space for the next. Rotating first and then translating moves the element along its rotated axes, while translating first keeps it on the screen axes. This tool composes them in a fixed order so the preview always matches the copied value.
- What is the difference between 2D and 3D mode?
- 2D mode covers flat moves: translate on X and Y, rotate in the plane, scale, and skew. 3D mode adds a perspective value and lets you rotate around the X, Y, and Z axes, which creates depth and flip effects. Switch modes with the toggle at the top.
- What does transform-origin do?
- Transform-origin sets the pivot point that rotation and scaling happen around. By default that is the center of the element. Move it to a corner or edge and the same rotation swings the element differently. The nine presets cover the common anchor points.
- Which units are used for each value?
- Rotation and skew use degrees, translate uses pixels, scale is an unitless multiplier where 1 is the natural size, and perspective uses pixels. The generated CSS includes the correct unit for every value automatically.
- Is my design uploaded anywhere?
- No. The live preview and the generated CSS are built entirely in your browser. Nothing is sent to a server, and nothing is saved after you close the page.
Related tools
CSS Transition Generator
Set the property, duration, delay, and timing function, hover a live preview to feel the motion, and copy the transition CSS.
CSS Animation Generator
Build keyframe animations with a live preview and copy the CSS.
Cubic Bezier Generator
Shape a CSS easing curve by dragging two handles, race it against a second curve in motion, and copy the code.
CSS Filter Generator
Dial in a CSS filter with sliders, watch it on a live sample, and copy the exact code.
Analogous Color Generator
Turn any base color into a three swatch analogous palette by rotating its hue.
Aspect Ratio Calculator
Solve the missing width or height for any aspect ratio, from 16:9 to a custom shape.