McPriv Browser fingerprint & privacy test

WebGL GPU Fingerprinting Explained

How WEBGL_debug_renderer_info exposes graphics hardware strings, why Safari and Firefox mask them, and how to test WebGL exposure locally.

WebGL GPU
surface
Local
testable on /
2026-11-26
last updated

What WebGL Exposes Beyond 3D Graphics

WebGL lets browsers execute GPU-accelerated 3D and 2D shaders directly inside web pages. To help developers diagnose graphics bugs, browsers historically shipped the WEBGL_debug_renderer_info extension, which exposes two high-signal strings: UNMASKED_VENDOR_WEBGL and UNMASKED_RENDERER_WEBGL. On a desktop Windows or Linux machine running default Chromium, those fields often reveal the exact graphics card generation, driver backend, and Direct3D or OpenGL version.

Even if WEBGL_debug_renderer_info is disabled, scripts can still read WebGL parameter limits such as MAX_TEXTURE_SIZE, MAX_VERTEX_ATTRIBS, supported shader precision formats, the list of supported WebGL extensions, and rendered 3D test triangles. Combined with Canvas 2D readback and display resolution, GPU metadata is one of the strongest hardware discriminators available to client-side JavaScript.

Generic vs Unmasked vs Software Renderer Strings

Not every WebGL string carries equal privacy risk. Real-world browser outputs fall into three distinct buckets that any honest test must distinguish carefully rather than treating every non-empty string as a leak:

First, unmasked strings such as 'ANGLE (NVIDIA, NVIDIA GeForce RTX 4080 Direct3D11 vs_5_0 ps_5_0)' pinpoint exact discrete hardware and driver revisions. Second, generic masked strings such as Safari's 'Apple GPU' or Firefox RFP's 'Mozilla' intentionally collapse millions of distinct devices into one shared bucket. Third, software renderers like 'Google SwiftShader' or 'llvmpipe' usually indicate headless automation, virtual machines, or disabled GPU acceleration rather than consumer privacy hardening. You can inspect your live WebGL classification right now on the McPriv Browser Fingerprint Test.

How Each Major Browser Protects WebGL

Browser vendors have moved steadily toward clamping or standardizing WebGL strings, though default behavior still varies significantly across engines.

  • Safari (macOS and iOS): Reports the generic renderer string 'Apple GPU' across modern Apple Silicon and iOS devices, preventing sites from distinguishing between specific M-series or A-series GPU variants via debug strings.
  • Firefox: Standard Enhanced Tracking Protection reduces tracker access, while enabling privacy.resistFingerprinting in about:config masks WebGL vendor and renderer strings to generic 'Mozilla' values and normalizes capability limits.
  • Brave: Applies per-session farbling to WebGL parameter readback and shader pixel output under Shields (brave://settings/shields -> Block fingerprinting: Standard or Strict).
  • Chrome and Edge: Continue exposing detailed ANGLE GPU strings by default on desktop. Disabling hardware acceleration swaps the string to SwiftShader, which degrades video and map performance and flags automation heuristics.

Trade-offs of Disabling WebGL Completely

Completely disabling WebGL breaks interactive maps, 3D product previews, data visualizations, CAD tools, and browser games. Ironically, having WebGL completely unavailable in a modern desktop browser is itself an uncommon trait that can add distinguishing bits if you browse sites that log API availability.

A better strategy is using a browser that reports a standardized generic GPU string (Safari or Firefox RFP) or session-farbles WebGL outputs (Brave), rather than installing extensions that spoof fake GPU names inconsistent with your operating system. Review our Scoring Methodology to see how McPriv weights WebGL strings and consistency signals.

How to Verify Your WebGL Surface in Browser DevTools

You do not have to trust any third-party test blindly. Open DevTools in your browser, switch to the Console tab, and run a four-line snippet: create a temporary canvas, request canvas.getContext('webgl'), fetch gl.getExtension('WEBGL_debug_renderer_info'), and log gl.getParameter(dbg.UNMASKED_RENDERER_WEBGL). If the extension returns null, your browser is already blocking unmasked GPU strings completely.

Pay attention to two subtle details when inspecting the result. First, compare the unmasked renderer string against your operating system: seeing Direct3D11 on a browser whose User-Agent claims macOS or Linux is a classic spoof mismatch that anti-fraud engines flag immediately. Second, inspect gl.getSupportedExtensions().length and gl.getParameter(gl.MAX_TEXTURE_SIZE). Even when UNMASKED_RENDERER_WEBGL is masked, an unusual combination of shader extensions or an 8192 vs 16384 texture limit can still narrow down GPU architecture families. Run our dedicated WebGL Fingerprint Test after changing browser settings to confirm both the raw string and the extension count.

Common WebGL Hardening Mistakes to Avoid

Two frequent mistakes actually hurt privacy or usability when people try to lock down WebGL. The first is turning off hardware acceleration in Chrome or Edge just to hide an NVIDIA or AMD card. That forces Chromium onto Google SwiftShader, a CPU-based software rasterizer that drains battery, stutters on video calls, and triggers bot-detection heuristics because headless servers and virtual machines also advertise SwiftShader.

The second mistake is installing a JavaScript extension that injects a hardcoded fake GPU string on top of an unmodified desktop driver. Tracking scripts compare WebGL shader compilation precision (gl.getShaderPrecisionFormat) and rendered triangle anti-aliasing against the claimed vendor string. When a browser claims to be an Apple GPU while executing Direct3D shaders on Windows, the contradiction stands out far more than an ordinary unmasked laptop GPU. Stick to built-in browser masking in Safari, Firefox, or Brave Shields instead.

Sources & Further Reading

Guide FAQ

Why does McPriv mark 'Apple GPU' as generic instead of exposed?

Safari intentionally returns the same 'Apple GPU' string across millions of Apple devices so websites cannot distinguish your exact chip model through WEBGL_debug_renderer_info.

Is Google SwiftShader good for privacy?

No. SwiftShader is a CPU-based software renderer typical of virtual machines and headless bots. Websites often treat it as an automation signal rather than normal human traffic.

Does WebGL fingerprinting work in private or incognito mode?

Yes. Incognito windows isolate cookies and storage, not your underlying GPU driver or WebGL strings, unless the browser adds anti-fingerprinting protections in private mode.