Skip to Content
Platform.Ontology

Canvas fingerprint

Draws text and shapes in a hidden canvas and reads back the pixels.

Gets silentlyGraphics and fingerprintingRenderingWeb browsersWhen the page loadsWhile you use it

In one line

Can draw a hidden picture and use tiny pixel differences to tell devices apart

Draws text and shapes in a hidden canvas and reads back the pixels.

Tiny differences in fonts, antialiasing and GPU drivers make the image almost unique per device and software stack.

What it can and can't do

What the user does: Nothing. It happens when the page loads

It can

  • Draw text and shapes you never see
  • Check how your screen and fonts turned them into pixels
  • Turn that into a number that fits few other devices
  • Match that number again on a later visit

It cannot

  • Show anything on your screen
  • Know who you are by itself
  • Get a clean result in Brave, Tor Browser or Firefox strict mode, which add noise or ask first
  • Ask your permission in most browsers

Browser support

BrowserStatusFirst versionReleasedNote
ChromeSupported22009-05-21None
EdgeSupported122015-07-29None
FirefoxSupported22006-10-24None
SafariSupported42009-06-08None
Safari on iPhoneSupported32009-06-17None
Chrome on AndroidSupported182012-06-27None
Samsung InternetSupported1.02013-04-27None

How a site asks for it

APIcanvas.toDataURL(), getImageData()
Browser compat keysapi.HTMLCanvasElement.toDataURL
How access is grantednone
What the user seesNone (no browser prompt)
Needs a secure context (HTTPS)No
Needs a user gestureNo
How long it lastsNot listed
How to take it backNot listed
Inside an iframeNot listed

Typical flow

  1. Script reads the value
  2. Value joins the fingerprint payload

Data you get

What comes back: Canvas fingerprint
Shape: hash
How often: static per setup

FieldTypeUnitRangePrecision
imagehashNonePNG data URL or hashpixel level

Technical limits

  • Brave and Firefox RFP add noise or prompts
  • Same hardware gives the same result

The story

What it is

A page draws hidden text and shapes, then reads back the pixels. Small differences identify the device.

For you

You see nothing, since the drawing is hidden. But your graphics card, fonts and system settings leave a tiny signature that can help a site recognize you again.

For makers

Canvas is made for games and drawing tools. The same feature is used to build an anonymous ID with no cookie. It is cheap, works everywhere and needs no prompt.

Where you see it

TypeExampleApps
gamesA browser game like Slither.io or Agar.io draws the whole play field on a canvas many times each second.Slither.io, Agar.io
creativeA drawing app like Excalidraw or Photopea paints your sketch and exports it as an image.Excalidraw, Photopea
analyticsA chart site draws bars and lines on a canvas so thousands of points update smoothly.None named
adsAn ad tech script draws a sentence in a hidden canvas and hashes it to recognize you without cookies.None named
securityA bank's risk engine draws a hidden image at login to check the device has not changed.None named
educationA web whiteboard for class draws what the teacher writes and shares it with students live.Miro
shoppingA product page uses canvas to build a quick photo preview of a customized mug or shirt.None named

Risks

  • Hard to notice
  • Hard to reset
  • Used to track without cookies

What the platform says

  • MDN: Canvas API. A way to draw graphics, animation and image effects with JavaScript.

Good uses and abuse

Legitimate uses

  • Rendering checks

Known abuse

  • Fingerprint input

Scores

ScoreValueMeaning
Sensitivity2 of 5How revealing the data is
Utility3 of 5How useful it is to honest apps
Friction0 of 5How much the user has to do
Fingerprint bits8Rough identifying entropy, when known

A real example: LinkedIn

Collector key(s): canvas.

Sources

How well checked: Based on official documentation.

On this page