Curve workspace
Interactive graph of the curve and its control pointsThe horizontal axis is x. Positive y points upward. Labeled control points can be moved with the arrow keys. Drag the plot background to pan. Scroll over the plot to zoom.P0P1P2P3
Curve settings
Load a preset
Control points
P0P1P2P3
B(t)
(0.5, 0.75)
Arc length
—
Advanced settings

Changing degree adds or removes control points and can change the shape.

Coordinates ±1,000,000 · Degrees 1–10 · Up to 512 sample intervals

Graph display
Compare curves

Edit or export one curve at a time. Up to 3 curves.

Control points

Insert places a point halfway along the final control edge. Removing a point keeps the remaining points in order. Both change the degree.

Numerical results

Parametric equations

Export active curve

Data uses x right and y up. SVG, PNG and Canvas use x right and y down. Degree 4–10 graphics use 256 line segments. Numbers retain up to 15 significant digits.

Interactive Bezier Curve Generator

A Bézier curve is a path shaped by an ordered set of control points. Use this interactive Bezier curve generator to draw a path, inspect its coordinates, and export it for a design or code project. Start with the cubic arch above, drag either upper handle, and move the parameter slider to inspect the edited path.

Draw your first Bezier curve

Choose Arch to start with four points or Line to work with two. Drag a filled endpoint to move the beginning or end. Drag an outlined handle to bend the curve while leaving its endpoints where they are. Focus a handle and use the arrow keys for small moves, or hold Shift for a larger step.

Enter exact coordinates in the control point grid. Use a decimal point and press Enter or leave the field to apply a value. The graph uses mathematical coordinates, so increasing y moves a point upward. Fit view shows all control points again after you zoom or pan. Exports keep using the coordinates you entered regardless of the view.

Choose the degree to add or remove points. A degree-three curve has four control points. The editor appends copies of the final point when you increase the degree and drops points from the end when you reduce it. Either change can alter the path. For more control, open Advanced settings to remove a chosen point or insert one on the final edge. Use Undo to step back through edits, or Reset to return to the starting arch.

What the handles control

The first and last points sit on the curve. An interior control point usually sits off the path. Each control gets a different weight at each parameter value. Moving it changes the path most where its weight is largest. All the weights are nonnegative and their sum is one, which keeps the path inside the convex hull of its controls.

The first polygon edge sets the starting direction if its first two points differ. The last edge sets the ending direction under the same condition at the other end. Put the end handle on the line of the next segment if you want the two directions to agree. For a smooth join, the incoming and outgoing directions must agree in the order of traversal.

Turn on Interpolation to see successive points between neighboring controls. The construction repeatedly takes the same fraction t along every current edge until one point remains. For degree n there are n plus one controls. In the formula below, the binomial term counts the choices of i rightward interpolation steps. Its product with the two powers gives the weight of control Pᵢ.

B(t) = Σᵢ C(n,i)(1 − t)ⁿ⁻ⁱ tⁱ Pᵢ, with 0 ≤ t ≤ 1

Check the default cubic arch

The arch uses P0 = (0, 0), P1 = (0, 1), P2 = (1, 1), and P3 = (1, 0). At t = 0.5 the marker is at (0.5, 0.75). The handles reach y = 1, while the graph itself peaks at y = 0.75. The arc length is 2 in the same units as the control point coordinates.

Change the x coordinate of both upper handles by the same amount. The ends stay where they started and the midpoint shifts horizontally. Then try the S-curve preset for a shape whose handles pull in opposite vertical directions. Use Loop to see how a curve can cross itself even though t always increases from start to finish.

Choose an export for your workflow

Use SVG for a graphic that needs to scale, or copy the SVG path if you already have a document and want to insert the path. A standalone SVG includes a viewBox with padding around all controls, including negative coordinates. For a slide or preview, use PNG. Its pixel size is 1200 by 800 and the unused area is transparent.

CSV gives one row for each evenly spaced parameter sample, including both endpoints. JSON holds the degree, control points and coordinate convention, so it can be opened again through Import curve JSON. Use the JavaScript data option when you need the same information as a variable. Change Sample intervals before export to check more positions.

SVG and Canvas place positive y downward, so their exported coordinates reflect the mathematical y values. Lines, quadratics and cubics have native graphics commands. For degree four through ten the tool exports 256 straight segments. Uniform parameter sampling provides a portable approximation, with its largest gaps often where the curve travels faster. Check those areas before using a path at large scale.

Add a comparison in Advanced settings to keep a baseline while you try another shape. Select the active curve before editing or exporting. Sharing creates a link with curve settings in the fragment. Send it when the recipient can see those values. The link recreates the data and display settings and starts with the curves fitted to the window.

Frequently asked questions

Can the curve pass through every point I enter?

Bézier handles steer a segment, so it is usual for the interior controls to miss the path. If every point needs to be visited, use multiple segments whose shared endpoints are the required positions. Check the handle directions at the joins.

Does the slider show distance along the path?

The slider controls t. Equal steps in t can cover different distances because parameter speed varies. The calculator shows speed and estimates total length from that speed.

What does the tangent toggle show?

It draws a short line centered on the selected point along the local tangent. At a stationary parameter the velocity is zero, so the tool omits the tangent there.

Further reading · MDN’s SVG path commands

Explore related tools