Cubic Bezier Explorer
Enter x1, y1, x2, y2 to see the easing progress sampled over time, the exact cubic-bezier() string, and the closest standard keyword (ease, linear, ease-in, ease-out, ease-in-out).
🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.
Options
Your result will appear here
Type or paste your input above, adjust the options, then press Run. Tip: press Ctrl+Enter to run, and ? for every shortcut.
How it works
Sampling a timing function
Enter four numbers — x1, y1, x2, y2 — and the tool returns a table of t against eased progress, sampled evenly across the animation. The stats show the exact CSS string to paste, cubic-bezier(x1, y1, x2, y2), and the standard keyword whose control points are closest to yours: ease, linear, ease-in, ease-out or ease-in-out.
Tuning an animation before you ship it
Use it to see what a curve actually does before committing it to a stylesheet: how quickly it accelerates, whether it eases into the end, and whether a bounce overshoots as much as you imagined. The nearest-keyword row is a quick hint that a stock keyword would have been close enough.
The one option
Sample count (3–25, default 11) controls how many rows the table has. A small number gives a quick feel for the curve; a larger one reveals its shape near the ends, where the difference between similar easings is easiest to see.
Rules and caveats
CSS constrains x1 and x2 to between 0 and 1 because they parametrise time, while y1 and y2 may leave that range to produce overshoot and bounce — out-of-range x values are rejected exactly as a browser would. The input must be four finite numbers separated by spaces or commas, and the keyword match is a plain distance between control points.
Curve maths in your browser
The Bézier evaluation and the Newton solve both run locally and the numbers you type are never sent anywhere. It works offline, so you can tune a curve mid-flight.
Questions
Why can x be outside the table but y not?
Actually the reverse: CSS requires 0 ≤ x1,x2 ≤ 1 (they parametrise time), while y may overshoot to create bounce effects. Values outside that x range are rejected exactly like the browser would.
What does the "nearest keyword" row mean?
It compares your four control points with the control points of ease, linear, ease-in, ease-out and ease-in-out and names the closest by straight-line distance in that four-dimensional space. It is a convenience hint, not a claim that the keyword is equivalent.
Can y values go outside the 0 to 1 range?
Yes. Only x1 and x2 are constrained by CSS because they stand for time; y1 and y2 may overshoot, which is how cubic-bezier produces bounce and anticipation. The tool permits it and the sample table shows the overshoot plainly.
Related tools
See categoryCSS Gradient Generator
Build linear, radial and conic CSS gradients with custom colour stops.
:nth-child An+B Evaluator
Parse CSS An+B (:nth-child, :nth-of-type) microsyntax, validate it, and list which child indices it matches.
.editorconfig Generator
Generate an .editorconfig with your indentation, line-ending and charset settings.
.gitignore Generator
Generate a .gitignore for Node, Python, Rust, Go, Java, macOS, Windows and more.