Skip to content
EN
Get Started

Canvas Fingerprinting

Canvas fingerprinting is a browser identification technique that hashes subtle differences in how a device draws graphics, helping sites recognize a browser without a cookie.

Table of Contents (8 sections)

How canvas fingerprinting works

A site runs JavaScript that draws text, shapes and colors in an offscreen HTML canvas. It then reads the rendered pixels with toDataURL() or getImageData() and usually hashes the result.

const canvas = document.createElement("canvas");
canvas.width = 240;
canvas.height = 40;
const ctx = canvas.getContext("2d");
ctx.font = "16px Arial";
ctx.fillText("example.com", 8, 24);
const pixels = canvas.toDataURL();

The output can vary with the operating system, installed fonts, browser version and graphics stack. A canvas value isn’t necessarily unique or permanent, so sites often combine it with screen size, user agent and other signals in a broader browser fingerprint.

Canvas fingerprinting vs WebGL and cookies

Method Signal Local storage needed
Canvas fingerprinting 2D pixel rendering No
WebGL fingerprinting GPU and 3D rendering No
Cookie Stored identifier Yes

Canvas and WebGL values can change after browser, font or driver updates. Cookies are more exact identifiers, but users can delete or block them.

Why it matters when you use proxies

A proxy changes the IP address a website sees. It doesn’t change canvas output because the drawing happens inside your browser. Rotating IPs while keeping the same canvas, cookies and other browser signals may let a site’s bot detection system associate separate requests.

Sites may also check whether signals agree. For example, a claimed operating system that conflicts with available fonts or graphics behavior can appear inconsistent. A different proxy won’t repair that mismatch.

Managing canvas behavior responsibly

  • Keep related sessions consistent. Use one stable browser profile for a sequence that shares cookies, logins or other state.
  • Don’t randomize signals blindly. Changing canvas output on every page can create inconsistencies and may break drawing tools. An antidetect browser can isolate authorized testing profiles, but it doesn’t make automation invisible.
  • Respect site controls. Follow terms and robots.txt, keep request rates reasonable and use an official API when one is available.
  • Test privacy settings. Browser protections may block canvas readback or add noise, but stronger restrictions can affect maps, editors and charts.

FAQ

Can canvas fingerprinting track me after I clear cookies?

Yes, but not perfectly. Canvas fingerprinting doesn’t need stored cookie data, though browser updates, privacy protections or device changes can alter the result.

Does a proxy change my canvas fingerprint?

No. A proxy changes your visible IP address, while canvas rendering happens in the browser. Changing both requires separate browser-level controls.

How can I prevent canvas fingerprinting?

You can reduce exposure with built-in browser anti-fingerprinting settings or by blocking canvas readback. These controls may break sites that use canvas for charts, image editing or other interactive features.

Related Terms

View All Terms