← All text tools

CSS Transform Generator

Set rotate, scale, skew and move with sliders, in 2D or 3D, and get the CSS transform line plus the matrix that gives the same result.

  • Free
  • No sign-up
  • Works on any device

About CSS Transform Generator

Combine translate, rotate, scale and skew with sliders and read the exact CSS. The line lists the functions in a fixed order (translate, rotate, scale, skew) and leaves out any that do nothing, so a 90 degree rotation alone is just rotate(90deg). Turn on 3D to add rotateX, rotateY, a depth move and a perspective distance. The tool also multiplies the steps into one matrix(a, b, c, d, e, f) or matrix3d(...) value, which is handy when you must write transforms as a single matrix. The transform origin menu moves the pivot point, and a dashed outline marks the untransformed box.

How to use CSS Transform Generator

  1. Drag the rotate, scale, skew and move sliders until the preview box looks right.
  2. Tick Use 3D if you need rotation around the X or Y axis, then set the perspective distance.
  3. Pick the transform origin, then copy the CSS rule or the matrix version.

Why use this tool?

Also known as

Frequently asked questions

Does the order of transform functions matter?

Yes. Rotating then moving gives a different result from moving then rotating, because each step works in the coordinate system of the previous one. The tool always uses translate, rotate, scale, skew.

What is the matrix good for?

It is the same transform as one value, useful for animation libraries, for SVG and for checking how several transforms combine. Both forms produce an identical result in the browser.

Why does my 3D rotation look flat?

Without perspective a 3D rotation looks like a squash. Perspective is set on the parent element, not on the rotated box, so apply the perspective rule to the wrapper.

Is CSS Transform Generator free?

Yes. CSS Transform Generator on Toolipedia is free to use, with no sign-up and no watermark.

Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

Can I put CSS Transform Generator on my own website?

Yes. Use the Embed on your site button under the tool to copy a short piece of code and paste it into your page. It is free, needs no account, and the tool keeps working inside your page.

Related tools