Interactive Optical Illusion Generator

Explore seven classic visual illusions with live sliders—then save share-ready PNGs with a watermark.

Jump to any demo below. Every illusion runs in your browser; nothing is uploaded. Drag sliders to see the effect weaken or strengthen, then use Save / Share to download a watermarked image.

Munker–White Illusion

In the Munker–White illusion (White effect), two vertical columns use the exact same gray (#939393). Column A appears only on white horizontal stripes; column B appears only on black stripes. Your visual system assimilates each patch toward the surrounding stripe lightness—A looks lighter, B looks darker. Uncheck “Show black stripes” and every row turns white: the two columns line up as one continuous, identical gray—proof the paint never changed.

Columns A and B use identical gray. Hide black stripes to see they match perfectly.

Hermann Grid Illusion

The Hermann grid (1870) makes ghostly gray dots appear at white intersections between black squares—especially in peripheral vision. Lateral inhibition in the retina is the usual explanation: more white at a crossing suppresses the signal, so the crossing looks dim. Increase gap size or round the squares into circles and the phantoms often vanish—great for classroom experiments.

Use peripheral vision on the white crossings—gray ghosts should appear until gap or radius removes them.

5px
8%

Café Wall Illusion

Richard Gregory’s café wall illusion (1973) shows parallel mortar lines that look tilted or wavy when rows of black-and-white tiles are staggered by half a tile. Border locking and brightness induction in narrow mortar strips are leading explanations. Align the rows (shift at 0%) and the lines look straight; toggle “hide tiles” to prove the horizontals are truly parallel.

50%

Ebbinghaus Illusion Sandbox

The Ebbinghaus illusion (Titchener circles) makes each target look larger or smaller depending on surrounding inducer circles—even though both targets share the same pixel size. Uncheck “Show context circles” to reveal dashed alignment lines proving the left and right targets match; labels read “Left target” and “Right target” because which side looks bigger flips as you adjust the sliders.

25px

Left target Right target
6

Checker-Shadow Illusion

Edward Adelson’s checker-shadow illusion places two squares labeled A and B on a checkerboard. Both use the same gray (#787878), but a soft shadow from a green cylinder makes A in shadow look darker than B in light. Toggle the shadow off—or reveal the orange connector—to prove the pixels never changed; your brain discounts illumination.

Squares A and B use identical gray. Hide the shadow or show the connector to compare.

Müller-Lyer Illusion

The Müller-Lyer illusion pairs two horizontal lines of equal length. Inward arrow fins (>——<) make a line look shorter; outward fins (<——>) make it look longer. Drag fin length and angle to amplify or weaken the effect—classic misjudgment of metric length from local contour cues.

180px
42px
45°

Ponzo Illusion

In the Ponzo illusion, converging “railroad track” lines suggest depth. Two horizontal bars share the same pixel width, but the upper bar sits where the tracks look closer together, so it appears longer. Increase convergence or shift bar height to feel the depth cue strengthen or fade.

55%
0px

Other tools you may like

Frequently asked questions

What is the Munker–White illusion?
Also called the White effect, it shows that two patches of identical gray can look lighter or darker depending on whether they sit on white or black stripes. Your brain blends each gray toward the lightness of the surrounding stripes—not the paint itself.
What is the Hermann grid illusion?
A checkerboard of black squares on white produces faint gray “ghost” dots at the white crossings, especially in peripheral vision. The pattern exploits lateral inhibition in the retina: more white at a crossing suppresses the signal and the crossing looks dim.
What is the café wall illusion?
Rows of alternating black and white tiles are shifted by half a tile, while the mortar lines between rows stay perfectly horizontal. Even so, those lines often look tilted or wavy—your visual system misreads brightness cues in the narrow joints.
What is the Ebbinghaus illusion?
Two central circles use the exact same size, but surrounding “inducer” circles change how big they feel. Large neighbors make the target look smaller; small neighbors make it look larger—classic context-size contrast studied since Ebbinghaus and Titchener.
What is the checker-shadow illusion?
Two squares on a checkerboard share identical gray, but one sits in a cast shadow and looks darker. Your visual system partly removes the shadow mentally—unless you hide the shadow or draw a connector bar to compare them directly.
What is the Müller-Lyer illusion?
Two lines of equal length look different when arrow-like fins point inward versus outward. The fins act as misleading depth or direction cues that bias how long the shaft appears.
What is the Ponzo illusion?
Parallel converging lines mimic perspective. Identical horizontal bars placed higher on the tracks look farther away and therefore longer—even though their pixel width matches the lower bar.
What can this webpage do for you?
It lets you experience how each illusion is built—and how it breaks. Drag sliders to strengthen or cancel the effect, toggle key options (like hiding stripes or context circles), and see the science in real time. No upload is needed; everything runs in your browser for demos, teaching, or curiosity.
What does Save / Share download?
A high-resolution PNG snapshot of your current settings, with a small rockimg.com watermark in the corner—ready for social posts, slides, worksheets, or blogs.