Open BGZone
AI & privacy

WebGPU, Explained

What WebGPU is, why it lets web pages run AI models and graphics much faster, and what to do if your browser or device doesn't support it.

2 min read · Published

WebGPU is a modern web technology that lets websites use your device's graphics processor, or GPU, for demanding work. It's one of the reasons AI tools can now run in a browser.

What a GPU is good at

A GPU is designed to do many simple calculations at the same time. That's ideal for graphics, where millions of pixels need updating, and for AI, where models multiply large grids of numbers. For these tasks, a GPU can be many times faster than a CPU. See GPU vs. CPU for AI.

What came before

Older web technologies like WebGL allowed graphics on the GPU, but they were designed for drawing, not general calculations. Using them for AI was possible but awkward. WebGPU provides a more modern, flexible way to run general computations on the GPU from a web page.

Why it matters for privacy

Before browsers could use the GPU efficiently, heavy AI work was often done on servers. With WebGPU, more of it can run on your device, so your images and data don't need to be uploaded. See on-device AI explained.

Browser support

WebGPU is available in many current browsers, with support continuing to expand across browsers and operating systems. It may not be available on older devices, some operating systems, or when graphics drivers are outdated. Check your browser's documentation for current support.

What happens without it

Well-built tools fall back to other methods, usually WebAssembly on the CPU. Everything still works, just more slowly.

Tips if things are slow

  • Update your browser and operating system.
  • Update graphics drivers on desktop computers.
  • Close other heavy tabs and apps.
  • Plug in laptops; some reduce GPU power on battery.

Security

Browsers run WebGPU in a protected sandbox, like other web features, so websites can't use it to access your files or other apps.

In BGZone

BGZone's cutout model uses the graphics card through WebGPU when the browser offers it, and runs on the processor otherwise. The Image Playground's text-to-image models need WebGPU. See the Image Playground.