Canvas fingerprint
Draws text and shapes in a hidden canvas and reads back the pixels.
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
| Browser | Status | First version | Released | Note |
|---|---|---|---|---|
| Chrome | Supported | 2 | 2009-05-21 | None |
| Edge | Supported | 12 | 2015-07-29 | None |
| Firefox | Supported | 2 | 2006-10-24 | None |
| Safari | Supported | 4 | 2009-06-08 | None |
| Safari on iPhone | Supported | 3 | 2009-06-17 | None |
| Chrome on Android | Supported | 18 | 2012-06-27 | None |
| Samsung Internet | Supported | 1.0 | 2013-04-27 | None |
How a site asks for it
| API | canvas.toDataURL(), getImageData() |
| Browser compat keys | api.HTMLCanvasElement.toDataURL |
| How access is granted | none |
| What the user sees | None (no browser prompt) |
| Needs a secure context (HTTPS) | No |
| Needs a user gesture | No |
| How long it lasts | Not listed |
| How to take it back | Not listed |
| Inside an iframe | Not listed |
Typical flow
- Script reads the value
- Value joins the fingerprint payload
Data you get
What comes back: Canvas fingerprint
Shape: hash
How often: static per setup
| Field | Type | Unit | Range | Precision |
|---|---|---|---|---|
image | hash | None | PNG data URL or hash | pixel 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
| Type | Example | Apps |
|---|---|---|
| games | A browser game like Slither.io or Agar.io draws the whole play field on a canvas many times each second. | Slither.io, Agar.io |
| creative | A drawing app like Excalidraw or Photopea paints your sketch and exports it as an image. | Excalidraw, Photopea |
| analytics | A chart site draws bars and lines on a canvas so thousands of points update smoothly. | None named |
| ads | An ad tech script draws a sentence in a hidden canvas and hashes it to recognize you without cookies. | None named |
| security | A bank's risk engine draws a hidden image at login to check the device has not changed. | None named |
| education | A web whiteboard for class draws what the teacher writes and shares it with students live. | Miro |
| shopping | A 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
| Score | Value | Meaning |
|---|---|---|
| Sensitivity | 2 of 5 | How revealing the data is |
| Utility | 3 of 5 | How useful it is to honest apps |
| Friction | 0 of 5 | How much the user has to do |
| Fingerprint bits | 8 | Rough identifying entropy, when known |
A real example: LinkedIn
Collector key(s): canvas.
Related capabilities
Related
- APFC / DNA device fingerprint (abuse prevention features). Can collect about 48 device traits and send them in secret with later requests
Sources
How well checked: Based on official documentation.