Skip to Content
Platform.Ontology

WebGL render hash

Renders a fixed 3D scene with custom shaders and hashes the output pixels.

Used to track youGraphics and fingerprintingWebGLWeb browsersWhen the page loads

In one line

Can draw a hidden 3D scene and use the pixels to tell your device apart

Renders a fixed 3D scene with custom shaders and hashes the output pixels.

Floating point and rasterization differences across GPU, driver and ANGLE backend produce a hash that separates devices better than the renderer string, even hardware with the same label.

What it can and can't do

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

It can

  • Draw a fixed 3D scene out of sight
  • Hash the pixels your graphics card and driver made
  • Tell devices apart better than the graphics card name alone
  • Recognise you again on later visits

It cannot

  • Show anything on your screen
  • Ask permission first
  • Give an exact result when a browser adds noise
  • Know who you are by itself

Browser support

BrowserStatusFirst versionReleasedNote
ChromeSupported92011-02-03None
EdgeSupported122015-07-29None
FirefoxSupported42011-03-22None
SafariSupported5.12011-07-20None
Safari on iPhoneSupported82014-09-17None
Chrome on AndroidSupported252013-02-27None
Samsung InternetSupported1.52013-09-25None

How a site asks for it

APIgl.drawArrays(); gl.readPixels(); canvas.toDataURL()
Browser compat keysapi.WebGLRenderingContext.readPixels
How access is grantednone
What the user seesNot listed
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. Compile vertex and fragment shaders
  2. Draw a gradient or textured triangle
  3. readPixels or toDataURL
  4. Hash the pixels

Data you get

What comes back: Hash of the framebuffer, typically 256x128 px
Shape: hash

FieldTypeUnitRangePrecision
pixel hashhashbits32 to 256stable per GPU and driver version

Technical limits

  • Driver updates change the hash
  • Brave farbling and Safari noise alter readback
  • Blocked or generic in Tor Browser

The story

What it is

A script draws a fixed 3D scene with custom shaders and hashes the output pixels.

For you

You see nothing, since the 3D scene is hidden. Your graphics chip and driver draw it with tiny differences, so the result works like a quiet ID for your device.

For makers

This is a strong fingerprint because it depends on hardware, driver and system together. Fraud tools use it to recognize devices. Ad tech uses it to track without cookies.

Where you see it

TypeExampleApps
securityA bank draws a hidden 3D scene and compares the hash to the one from your trusted laptop.None named
adsA data broker uses the hash to connect your visits across different sites.None named
gamesA cheater banned from a browser game cannot easily start over, since the device hash matches.None named
shoppingA retailer spots hundreds of new accounts that share the same graphics hash.None named
paymentsA payments company adds the hash to a risk score before approving an order.Stripe Radar, Sift
analyticsA cookie free analytics tool uses the hash to count unique visitors.None named
socialA social site finds a bot farm because many fake profiles show the same 3D hash.None named

Risks

  • Very hard to change
  • Works across sites
  • Works without cookies

Good uses and abuse

Legitimate uses

  • GPU bug triage

Known abuse

  • Stable device fingerprint component

Scores

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

History

  • 2017-01, paper: Cao et al. render tasks identify 99.24% of 1,903 devices in the study
  • 2022-01, paper: Laor et al. DrawnApart separates identical GPUs by timing instead of pixels

Sources

How well checked: Based on official documentation.

On this page