ToolSphere

Image to Equations

Desmos art

Turn a photo, logo or sketch into parametric equations and paste them into Desmos as graph art. Traced in your browser; nothing is uploaded.

Image to equations

Turn a photo, logo or sketch into parametric equations, then paste them into Desmos as graph art.

Graph preview

A photo, logo or sketch. It stays on your device.

0 equations

Detail
Smooth makes fewer equations; Detailed follows your hand more closely.

Equations to paste into Desmos

  1. Copy all equations.
  2. Open the Desmos graphing calculator and click into the first empty line.
  3. Paste. Each line becomes its own curve, and together they redraw your picture.

Each line is a parametric curve (x(t), y(t)) for t from 0 to 1, Desmos's default range. Desmos is a trademark of its owner; this page just writes equations it can read.

On this browser only

Give feedback

Did this tool help?

Tell us what worked, what didn’t, or what you’d like next.

Opens Google Forms in a new tab with this tool’s name filled in. No sign-in or email required. Feedback is optional.

How to use Image to Equations

  1. 1Press Turn a picture into equations and choose a photo, logo or sketch, or press Try an example picture.
  2. 2Pick Photo / logo to trace outlines, or Line art to follow pen lines as single strokes.
  3. 3Adjust Picture detail (Less, Medium, More) and Smooth, Balanced or Detailed until the curves look right over the faint copy of your picture.
  4. 4Press Copy all equations, open the Desmos graphing calculator, click into the first empty line and paste.

About Image to Equations

From picture to equations in one step

Graph artists usually build a picture in Desmos one equation at a time. This page starts from the picture instead: it finds the lines in your image, fits smooth curves to them, and writes each curve as a parametric equation you can paste straight into Desmos. A faint copy of your picture sits under the result so you can see how closely the equations follow it.

Two ways to find the lines

Photo / logo looks for edges: places where the picture changes sharply from light to dark. It uses Canny edge detection, the standard method in image processing, which keeps edges one pixel wide and joins weak edges to strong ones so outlines stay connected. Logos, cartoons, emojis and photos with a clear subject work well.

Line art looks for ink. It separates dark marks from the paper with Otsu's method, which picks the best threshold for the image automatically, then thins every mark to a one-pixel line. That way a pen stroke becomes a single curve rather than the two edges of the stroke. Use it for sketches, doodles, handwriting and coloring-book style drawings.

Getting a clean result

Simple, high-contrast pictures give the cleanest equations: a bold logo, a cartoon character, a sketch in dark pen on white paper. A busy photo has edges everywhere, which means many short lines. Choose Less picture detail and Smooth, crop the picture to the subject, or use one with a plain background. The tool always keeps the longest lines first and leaves out the shortest specks once the equation count gets high, so Desmos stays responsive.

Private by design

The picture is read and traced entirely in your browser. It is never uploaded, so you can use personal photos. Only the equations leave the page, when you copy them.

Where the equations come from

Each traced line is simplified to the points that matter to its shape, threaded with smooth cubic Bézier curves, and each curve is written as a pair of cubic polynomials (x(t), y(t)) for t from 0 to 1, Desmos's default range for parametric curves. The curves you see on the page are plotted from those same equations, so pasting them reproduces exactly what you see.

Pictures that make good graph art

For a class project or a Desmos art assignment, start from something with a clear silhouette: a sports-team or game logo, a cartoon character, an animal outline, a flower, a portrait drawn in pen, or your own doodle photographed on white paper. Text works too, though Name in Desmos writes words more cleanly. After pasting, color different parts separately, thicken the lines, and switch off the grid and axes from the wrench menu for a clean picture.

Hand-built or generated?

Teachers sometimes want the equations built by hand. In that case use the result as a reference: it shows which shapes the picture breaks into, and the Desmos graph art guide explains restricted lines, circles and parametric curves for rebuilding them yourself.

Ready-made Desmos art

Want something that already works? The Desmos art library has hand-built drawings (heart, flower, butterfly, Halloween pumpkin and ghost) with every equation explained, ready to paste.

Guides and tutorials

Frequently asked questions

How do I turn a picture into Desmos graph art?

Choose a picture, pick Photo / logo or Line art, then press Copy all equations. In the Desmos graphing calculator, click into the first empty line and paste. Each line becomes a curve, and together they redraw your picture.

Is my photo uploaded anywhere?

No. The picture is traced in your browser and never leaves your device. Only the equations are copied when you press the copy button.

Which pictures work best?

Bold, high-contrast images with a plain background: logos, cartoons, emojis and dark-pen sketches. Busy photos produce many short lines; use Less picture detail and Smooth, or crop to the subject.

What is the difference between Photo / logo and Line art?

Photo / logo traces the outlines where light meets dark, so a filled shape becomes its outline. Line art follows dark pen lines and thins them to single strokes, so a drawn line becomes one curve instead of two edges.

Why can't it open my iPhone photo?

iPhones often save photos as HEIC, which most browsers cannot read. Export or share the photo as JPG or PNG first, then choose that file.

How many equations can Desmos handle?

Desmos draws a few hundred parametric curves comfortably. The tool keeps the longest lines first and drops the tiniest specks when the count gets high, so the paste stays responsive; choose Less picture detail or Smooth for fewer equations.

Does it work with a school Desmos account?

Yes. The equations are plain text, so they paste into any Desmos graphing calculator, including school and classroom accounts and the Desmos app.

Have a suggestion for Image to Equations?Share your feedback ↗