HTML & CSS ToolsFree Tool

Cubic Bezier Curve Generator

Provided byCodeBeautifycodebeautify.org

Cubic Bezier Curve Generator

Screenshot of Cubic Bezier Curve Generator on CodeBeautify
codebeautify.orgOpen the live tool →
About this tool

What Cubic Bezier Curve Generator does

The Cubic Bezier Curve Generator is an online utility that produces the CSS timing function code needed for smooth web animations. Users input the coordinates of two control points (X1, Y1 and X2, Y2) to define the curve's shape, and the tool instantly outputs the corresponding cubic-bezier notation. This generated code can be copied directly into stylesheets to control the acceleration and deceleration of transitions for elements like menus, sliders, or hover effects. The interface displays the current easing preset (linear, ease-out, ease-in-out, ease-in) alongside the custom curve, allowing for immediate visual comparison of timing effects.

Step by step

How to use the CodeBeautify Cubic Bezier Curve Generator

  1. 1

    Open the Cubic Bezier Curve Generator on CodeBeautify

  2. 2

    Enter the X and Y coordinates for the first control point (X1, Y1) and the second control point (X2, Y2)

  3. 3

    Adjust the values until the visual preview reflects the desired animation speed

  4. 4

    Copy the generated cubic-bezier CSS code and paste it into your stylesheet to apply the transition effect

Is it right for you

Best for

Designers and developers who need to fine-tune animation timing functions without manually calculating parametric equations, especially when creating custom easing that feels natural but differs from standard keywords.

Limitations

  • No unit switching between seconds and milliseconds for transition time
  • Results are estimates based on coordinate input rather than physics simulation
  • Interface contains advertisements that may distract from the primary function
Questions

Cubic Bezier Curve Generator FAQ

Can I use the generated cubic-bezier code in any CSS transition?
The tool displays a visual curve preview alongside the CSS code, so you can see how the animation will accelerate or decelerate before copying the function.
What do the X and Y coordinates represent in the cubic-bezier function?
The X coordinates represent the time parameter (typically between 0 and 1), while the Y coordinates represent the eased value (also between 0 and 1), defining the start, end, and curvature of the transition.
Is there a limit to how many control points I can adjust?
The generator is designed specifically for cubic Bezier curves, which use exactly four points (two endpoints and two control points); adding or removing points would change the curve type to a different Bézier variant.