Free tools that run in your browser. Use any tool without an account.

Favourites Cart
Sign in
Join free

Cubic Bezier Generator

  • Free
  • Runs in your browser
  • No account needed

You get a browser tool that makes CSS cubic-bezier() curves with sliders for P1 and P2, a curve drawing, animated preview, duration control and presets like ease and back out. For example, P1=(0.25,0.1) P2=(0.25,1.0) produces cubic-bezier(0.25,0.1,0.25,1.0).

Runs in your browser. Your files and values are not sent to us. Report a problem
Advertisement

About the Cubic Bezier Generator

This tool creates CSS cubic-bezier() easing curves for transitions and animations. You use sliders or numeric fields for the two control points P1 and P2, watch the curve drawing update, and see an animated preview at your chosen duration. Presets include ease, ease-in, ease-out, ease-in-out, back out and snappy to get started quickly. The page runs fully in your browser and sends no data to a server, so nothing is uploaded. Developers and designers use it to tune timing by eye and by value before pasting the CSS into a project. The interface is compact and focused on the core task: pick x1,y1,x2,y2 and copy cubic-bezier(x1,y1,x2,y2). For reference on syntax and browser rules, see the W3C easing spec and the MDN reference.

How to use it

  1. 1Move the P1 and P2 sliders or enter x1,y1,x2,y2 numerically.
  2. 2Set a duration to preview the motion speed.
  3. 3Pick a preset such as ease or back out to start from a known curve.
  4. 4Watch the curve drawing and animated preview update live.
  5. 5Copy the cubic-bezier(x1,y1,x2,y2) string into your CSS.
Advertisement

Worked example

Set x1=0.25 y1=0.1 x2=0.25 y2=1.0 and duration=400ms. The tool shows the curve and outputs cubic-bezier(0.25,0.1,0.25,1.0) ready to paste into a transition or animation.

How it works

Parametric cubic Bezier: B(t) = (1-t)^3*P0 + 3(1-t)^2*t*P1 + 3(1-t)*t^2*P2 + t^3*P3 for t in [0,1]For CSS P0=(0,0) and P3=(1,1)To map time x to output y the engine solves x = x(t) numerically for t (for example Newton-Raphson with bisection fallback), then returns y = y(t)

Source: W3C CSS Easing Functions Module Level 1MDN cubic-bezier() referenceChromium cubic bezier implementation notes. Last checked 7 November 2026.

What it is good for

  • Tune P1 and P2 with sliders and see instant visual feedback.
  • Try presets like ease, ease-in, back out and snappy to match common patterns.
  • Runs entirely in your browser with nothing to upload or install.
  • Generates single-segment cubic easing only; complex elastic or multi-stage motion needs keyframes.
  • x1 and x2 must stay in 0 to 1 per the CSS spec or the easing is invalid.
Advertisement

Questions people ask

What is cubic-bezier() in CSS?

cubic-bezier() is an easing function defined by four numbers: x1,y1,x2,y2. Endpoints are fixed at (0,0) and (1,1). Use it for transition-timing and animation-timing functions. See MDN for syntax and compatibility.

What do the four numbers mean?

x1,y1 are control point P1 and x2,y2 are control point P2. x values must be between 0 and 1. y values may be outside 0 to 1 to create overshoot.

Can I use y values above 1 or below 0?

Yes. Browsers accept y values outside 0 to 1. That produces overshoot or anticipation in the motion. Use this to simulate a slight bounce or extra pop.

How does the browser convert time to progress?

The browser solves x = x(t) for the curve parameter t using a numeric method, then computes y = y(t). Engines use Newton-Raphson with fallbacks or table lookups for stability.

When should I use cubic-bezier instead of keyframes?

Use cubic-bezier for single-segment timing shapes like easing in or out. Use keyframes when motion needs multiple stages or true elastic behavior that a single cubic cannot represent.

Can I copy the result into my CSS directly?

Yes. The tool outputs the exact string cubic-bezier(x1,y1,x2,y2). Paste it into transition or animation-timing-function in your stylesheet.

Help keep every tool free

FreeToolr stays free because people help it grow. Share a tool you like, tell us what to build next, or support us on Ko-fi.

Advertisement
Advertisement