Cubic Bezier Generator

Drag the two handles to shape an easing curve and watch it run. A CSS easing is a cubic Bézier with its ends pinned, so the two control points are the whole vocabulary — and the two axes behave differently on purpose. Horizontal is clamped to the box, because a control point outside it makes the curve fold back and time run backwards, which CSS rejects. Vertical is not clamped, because going above 1 is exactly how you get the overshoot-and-settle that makes motion feel springy rather than mechanical. The preview area extends past the square so an overshooting curve stays visible, and you get a warning when one overshoots, since that motion looks wrong on a property that cannot exceed its target.

Named easings as curves

Namecubic-bezierFeel
linear0, 0, 1, 1Mechanical — only for continuous motion
ease0.25, 0.1, 0.25, 1The CSS default
ease-in0.42, 0, 1, 1Slow start — good for exits
ease-out0, 0, 0.58, 1Slow finish — good for entrances
ease-in-out0.42, 0, 0.58, 1Slow at both ends

When to use it

  1. Design an easing that feels right rather than settling for ease-in-out.
  2. Build a springy overshoot for a button or modal entrance.
  3. Match the motion curve from a design system spec.
  4. Understand what the named CSS easings actually look like.
  5. Get a cubic-bezier value for a transition or animation.

How to Use

  1. Drag the two handles, or start from a preset.
  2. Watch the preview and adjust the duration.
  3. Copy the cubic-bezier value.

Features

  1. Draggable control points on a live curve
  2. Animated preview with adjustable duration
  3. All five named CSS easings as presets
  4. Overshoot supported, with a warning when it applies
  5. Numeric entry for exact values
  6. Runs entirely in your browser

FAQs

What do the four numbers mean?

They are the x and y of the two control points: cubic-bezier(x1, y1, x2, y2). The start and end are always (0,0) and (1,1), so those four numbers shape the entire curve. x is time, y is progress.

Why can I drag handles up past the top but not sideways past the edge?

Because they mean different things. x is time — a control point outside 0–1 would make the curve fold back on itself, so time would run backwards, and CSS refuses it. y is progress, and there is nothing wrong with progress exceeding 100% briefly: that is overshoot, and it is what makes an easing feel like it has physical momentum.

What is overshoot and when should I avoid it?

The animation goes past its final value and settles back, which reads as springiness. It works beautifully on transform — a card sliding in and bouncing to rest. It looks broken on anything that cannot exceed its target, like opacity, where the browser clamps it and you get a flat pause instead of a bounce.

How do the named easings map to curves?

ease is cubic-bezier(0.25, 0.1, 0.25, 1), linear is (0, 0, 1, 1), ease-in is (0.42, 0, 1, 1), ease-out is (0, 0, 0.58, 1) and ease-in-out is (0.42, 0, 0.58, 1). They are all presets here, so you can drag from one and see how it changes.

Which easing should I use for a UI?

Something ease-out-like for things entering — fast to start, settling gently, which feels responsive. Ease-in for things leaving. Linear almost never, except for continuous motion like a spinner, where any easing makes the rotation visibly stutter each cycle.

Technical Details

A CSS easing curve is a cubic Bézier with its first and last points fixed at (0,0) and (1,1), leaving the two middle control points to shape it. Evaluating it is less direct than it looks: the curve is parameterised by t, which is not elapsed time, so finding the output at a given moment means first solving x(t) = time for t and only then reading y. That is done by Newton-Raphson, which converges in a handful of iterations for ordinary curves, with a bisection fallback for the cases where the slope approaches zero and Newton stalls — returning whatever the last iteration happened to hold would produce a visibly wrong curve rather than an obviously broken one. The two axes are clamped differently, and the difference is the whole reason the tool is interesting. Horizontal position is restricted to 0–1 because a control point outside that range makes the curve fold back on itself, meaning time would run backwards, which CSS rejects outright. Vertical position is deliberately not clamped: values above 1 and below 0 are legal and produce the overshoot-and-settle motion that makes an easing feel springy. The preview area extends past the unit square so an overshooting curve stays visible instead of being clipped out of sight, and the tool warns when a curve overshoots, since that motion looks wrong on a property that cannot exceed its target, such as opacity.

Web & CSS Tools

Web & CSS Tools

  • CSS Clip Path Generator
  • CSS Keyframes Generator
  • CSS Unit Converter
  • Layout Grid Calculator
  • Design Tokens Converter
  • SVG Sprite Builder
  • Font Subsetter and WOFF2 Converter
  • Viewport Meta Tag Generator