Cubic Bezier Generator screenshot

Cubic Bezier Generator

Turn four control-point numbers into a CSS cubic-bezier() value in your browser, with validation and the named-curve equivalent.

Privacy First
0 Runs
Updated 2026-11-06
No upload
Instant
No signup

What this cubic bezier generator does

The four numbers are the two control points of a cubic Bezier curve. x1 and x2 are time and must stay between 0 and 1, while y1 and y2 may overshoot to make the motion bounce; the page names the curve when it is one of the five CSS keywords.

How to use it

Cubic Bezier Generator: paste the four numbers into the box above, and press Run to get the CSS below.

Worked example

Input:

0.42 0 0.58 1

Output:

cubic-bezier(0.42, 0, 0.58, 1)

transition-timing-function: cubic-bezier(0.42, 0, 0.58, 1);
animation-timing-function: cubic-bezier(0.42, 0, 0.58, 1);

This is the named curve "ease-in-out".
x1 and x2 are the time axis and must stay within 0..1; y1 and y2 are progress and may overshoot to create a bounce.

Why it runs in your browser

The conversion happens on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere. The page reads four numbers and returns CSS; reloading the page discards both.

The four numbers are the two control points of a cubic Bezier curve. x1 and x2 are time and must stay between 0 and 1, while y1 and y2 may overshoot to make the motion bounce; the page names the curve when it is one of the five CSS keywords.

Turn four control-point numbers into a CSS cubic-bezier() value in your browser, with validation and the named-curve equivalent.

How to use it

Cubic Bezier Generator: paste the four numbers into the box above, and press Run to get the CSS below.

Why it runs in your browser

The conversion happens on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere. The page reads four numbers and returns CSS; reloading the page discards both.

What to Expect

Best for

  • Converting four numbers to CSS when the data is already on screen.

What this tool keeps

  • Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere.

Sample input

0.42 0 0.58 1

Sample output

cubic-bezier(0.42, 0, 0.58, 1) transition-timing-function: cubic-bezier(0.42, 0, 0.58, 1); animation-timing-function: cubic-bezier(0.42, 0, 0.58, 1); This is the named curve "ease-in-out". x1 and x2 are the time axis and must stay within 0..1; y1 and y2 are progress and may overshoot to create a bounce.

Frequently asked questions

How do I use the cubic bezier generator?

Cubic Bezier Generator: paste the four numbers into the box above, and press Run to get the CSS below.

Is my input uploaded?

No. The text is parsed on this page with JavaScript and is never posted to a server.

Is there a size limit?

Yes: 5 MB per run. Larger input is refused with a message rather than freezing the tab.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.