Virtual Glasses Try-On

Upload frame pictures from a shop or use the built-in shapes, see them on your face at real size and save snapshots to decide between round, cat-eye or aviator.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Load the model

    Press Load model once for the 13.5 MB face model.

  2. 2
    Start

    Press Use webcam or Use a photo.

  3. 3
    Pick a frame

    Choose a built-in shape or Add frame PNGs.

  4. 4
    Set the size

    Enter the frame width in mm, or switch on Use my PD.

  5. 5
    Adjust

    Use Fine scale and Height on nose, and set frame colour and lens tint.

  6. 6
    Compare

    Take snapshots, then Save comparison JPG or Save PNG.

About this tool

Buying glasses online is mostly guesswork about size: a frame that looks right on the model in a product photo may be far too wide for your face. This try-on places frames at their real width. It tracks your face with the MediaPipe Face Landmarker, which returns 478 points including the outline of each iris, either live from the webcam at video speed or once from a photo. The visible iris of adults is close to 11.7 mm wide with little variation between people, so its size in pixels works as a ruler printed on your face. From that ruler the tool converts the frame's total width in millimetres into pixels, places the lens centres level with your pupils, rotates the frame with your head tilt and lets you raise or lower it on the nose. If you know your pupil distance from an eye test, Use my PD replaces the iris ruler with that exact figure. The measured pupil distance is shown as you move, as a rough cross-check.

Frames you can try

Seven built-in shapes cover the main families: round, rectangle, cat-eye, aviator, wayfarer, browline and oversized square. Each can take any frame colour and four lens options from clear to dark sunglasses. To try a real product, save its front-view picture from the shop as a PNG with a transparent background, or cut the background out first, and use Add frame PNGs. The tool finds the two enclosed see-through lens areas automatically and uses their centres as anchors. Enter the frame's total width; on most frames the arm prints three numbers such as 52 18 145, meaning a 52 mm lens, an 18 mm bridge and 145 mm temples, and the front is roughly two lenses plus the bridge plus about 12 mm.

Comparing styles

Snapshot to compare stores the current view with the frame's name. Up to six snapshots appear in a grid, and Save comparison JPG writes them into one image you can send to a friend or keep for the optician. Save PNG stores a single view.

Limits

The frame is drawn flat facing the camera, so strong head turns to the side look wrong; face the camera for the most useful view. The iris ruler is accurate to a few millimetres, and lighting, glasses already worn and camera distortion at very close range reduce accuracy, so do not order prescription lenses from these numbers. A measured PD from an optician is always more precise. Frames drawn from your own PNGs only look as good as the picture. The face model is about 13.5 MB with its runtime and is downloaded once; the camera picture is never recorded or uploaded.

Worked example

On a laptop webcam the tool reads a pupil distance of 62.8 mm. Choosing Cat-eye at 136 mm width with a light tint places a frame about 272 pixels wide on a face where the iris ruler gives 2.0 pixels per millimetre. After snapshots of Cat-eye, Round at 132 mm and an uploaded 140 mm PNG from a shop, Save comparison JPG creates one image of three views side by side.

Quick facts

Frequently asked questions

Is the camera video recorded or uploaded?

No. Frames are analysed in memory in your browser and discarded; nothing is stored unless you save a snapshot.

How accurate is the size?

Usually within a few millimetres. Entering your PD from a prescription makes it more precise.

How do I use frames from an online shop?

Save the front view as a transparent PNG, add it with Add frame PNGs and enter its width in mm.

Can I use a photo instead of the webcam?

Yes. Use a photo opens a front-facing picture and places the frames on it.

Why does the frame not turn with my head?

Frames are drawn flat; side turns are not modelled. Face the camera.

Does it work on phones?

Yes, in current mobile browsers with camera access, though older phones update the view more slowly.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages