Skip to content

Cubic Bezier Generator

Turn four control point values or a CSS easing keyword into a cubic-bezier() timing function with sample points. The tool solves the curve at evenly spaced moments, shows how far the animation has progressed at each one, and gives you the CSS, a Tailwind class and an equivalent linear() easing built from the samples.

Reset

Frequently asked questions

What do the four numbers mean?

They are the x and y coordinates of the two control points of a curve that starts at 0,0 and ends at 1,1. x is the share of the duration that has passed and y is the share of the change that has happened. The first point shapes the start of the animation and the second shapes the end.

Why must the x values be between 0 and 1?

Time cannot run backwards, so the CSS specification only accepts x values from 0 to 1. The y values may go below 0 or above 1, which creates an overshoot or a short pull back.

Which keywords can I enter?

ease, linear, ease-in, ease-out and ease-in-out, which CSS defines as cubic-bezier(0.25, 0.1, 0.25, 1), (0, 0, 1, 1), (0.42, 0, 1, 1), (0, 0, 0.58, 1) and (0.42, 0, 0.58, 1). You can also paste a full cubic-bezier() value.

How are the sample points calculated?

For each moment in time the tool finds the point on the curve with that x value, using Newton's method with a bisection fallback, and reports its y value. The progress column shows those values as percentages.

What is the linear() value for?

linear() is a newer CSS easing function that connects points with straight lines. With enough samples it closely follows the curve, and it can also describe easings that cubic-bezier() cannot. Use more sample points for a closer match.

How do I use the curve in Tailwind CSS?

Use the arbitrary value class shown, such as ease-[cubic-bezier(0.25,0.1,0.25,1)], together with a transition class. The commas have no spaces so the class stays one word.

About OneClick Pro

OneClick Pro is a free collection of more than 150 web tools for everyday work: converting images and units, formatting and validating code, checking domains and SEO, and working with text, dates and numbers. Every tool runs without registration or subscription, and what you enter is only used to calculate your result and is never stored. Use it as a quick toolbox for one-off tasks, or bookmark the tools you rely on every day.