CSS Transform Generator
Compose a CSS transform without remembering the syntax. Adjust translate, rotate, scale and skew, set a transform-origin, see the box move in a live preview, then copy the generated transform rule. Only the parts you change are written out, so the output stays clean.
How to generate a CSS transform
- Drag the translate, rotate, scale and skew sliders to move the box.
- Set the transform-origin if you want rotation or scale to pivot somewhere other than the center.
- Copy the generated transform code from the output box into your stylesheet.
Examples
Translate, rotate and scale together
translateX 10, translateY 20, rotate 45, scale 1.2
transform: translate(10px, 20px) rotate(45deg) scale(1.2);
Skew on one axis
skewX 10
transform: skewX(10deg);
Rotate around the top-left corner
rotate 45, transform-origin top left
transform: rotate(45deg); transform-origin: top left;
Frequently asked questions
What does the CSS transform property do?
Transform lets you move, rotate, scale and skew an element without changing the surrounding layout. The element shifts visually but still takes up its original space, which makes transforms ideal for hover effects, animations and adjustments that should not push other content around.
Why does the output only show some functions?
Each transform function has an identity value that does nothing: translate 0, rotate 0, scale 1 and skew 0. The generator skips any axis still at its identity, so you only see the parts you actually changed. If everything is at its default the value is simply none.
When is scale() written instead of scaleX and scaleY?
When the horizontal and vertical scale match, the tool collapses them into a single scale() for shorter code. If the two axes differ it writes scaleX() and scaleY() separately so each direction keeps its own factor.
What does transform-origin change?
Transform-origin sets the pivot point that rotate and scale work around. The default is the center, so a rotation spins in place. Set it to a corner like top left or a percentage pair to make the element rotate or scale from that point instead.
Does the order of transform functions matter?
Yes. Transforms apply from left to right, so rotating then translating differs from translating then rotating. This tool always emits a consistent order (translate, rotate, scale, skew); if you need a different sequence, reorder the functions in the copied value by hand.
Is my work sent to a server?
No. The live preview and the generated transform code are computed entirely in your browser, so nothing about your design leaves your device.
Related tools
CSS Animation Generator
Generate CSS keyframe animations with a live preview. Pick a preset like fade, slide, spin or bounce, tune the timing and copy the @keyframes code.
Box Shadow Generator
Build CSS box-shadow visually. Drag sliders for offset, blur, spread, color and opacity, see a live preview, and copy the box-shadow code.
Cubic Bezier Generator
Build a custom CSS cubic-bezier() easing curve by dragging two control points. Preview the animation, pick a preset and copy the timing function.
.env to JSON
Convert a .env file to JSON, or JSON back to .env. Parses KEY=value lines, comments, quotes and export. Runs entirely in your browser.
Aspect Ratio Calculator
Calculate aspect ratios fast. Enter a ratio like 16:9 and one dimension to get the other, or enter width and height to simplify the ratio.
Base58 Encoder
Encode and decode Base58 online with the Bitcoin alphabet. Convert text to Base58 or back, UTF-8 safe, no confusing 0 O I l. Runs in your browser.