GDPR-Compliant Google Fonts: How to Host Fonts Locally

When Google Fonts load straight from Google's servers, your visitors' IP addresses end up with Google—a privacy problem. Here's how to check your website and self-host your fonts in a few steps.

Fonts shape the personality of a website. Yet many websites load their fonts directly from Google’s servers—often without the site owner even knowing. That’s because countless themes, page builders and plugins embed Google Fonts externally by default. The problem: every visitor’s IP address gets sent to Google in the process.

Why Externally Loaded Google Fonts Are a Problem

Under the GDPR, an IP address counts as personal data. If it’s transferred to a third party without consent, there’s generally no legal basis for doing so. The Munich Regional Court I (Landgericht München I) ruled that embedding Google Fonts dynamically without consent violates the GDPR and awarded a visitor damages (judgment of January 20, 2022, case no. 3 O 17493/20). In the aftermath, a large number of website owners received cease-and-desist letters (Abmahnungen).

The good news: the problem is easy to fix. If the font files live on your own server, no data flows to Google—and your website often loads faster, too.

How to Check Whether Your Website Loads Google Fonts Externally

  1. Open your website in your browser and launch the developer tools (right-click → “Inspect”).
  2. Switch to the “Network” tab and reload the page.
  3. Type “fonts.googleapis.com” into the filter field, then “fonts.gstatic.com”.
  4. If any entries show up, fonts are being loaded externally from Google.

Check several pages: some plugins only load fonts where they’re needed—on the contact page, for instance, or wherever a map is embedded.

Step by Step: How to Self-Host Your Fonts

1. Download the Font Files

Download the font styles you need in the modern WOFF2 format—for example with the “google-webfonts-helper” or directly from the font’s repository. Stick to the styles you actually use: every extra file adds to your load time.

2. Upload the Files to Your Server

Put the files in a folder inside your theme or child theme, for example under /assets/fonts/.

3. Load the Fonts via CSS

Use the CSS rule @font-face to make the font available in your theme:

@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

4. Remove the External Embed

Next, turn off the Google Fonts option in your theme or page builder. Many themes have a dedicated setting for this; for others, a small code snippet or a specialized plugin will do the trick.

5. Check the Result

Repeat the test from the previous section. If no more requests to Google’s servers show up, the switch worked. Clear your cache beforehand—both in your browser and in any caching plugins you use.

Self-Hosted Fonts Are Faster, Too

Privacy isn’t the only win—your load time benefits as well. The browser doesn’t have to open connections to additional servers, and key font files can be preloaded. That has a positive effect on your Core Web Vitals, and with it, your visibility on Google.

The Bottom Line

Self-hosting Google Fonts is a small change with a big impact: you close a common privacy gap and make your website faster at the same time. If you’re not sure whether your website is affected, I’m happy to check it for you.

Note: I’m a developer, not a lawyer—this article is no substitute for legal advice on your specific situation.

Marcel Czeranski

Web designer and developer based in Berlin. I build WordPress websites, apps, and plugins—and run my own digital products: Sponties, Fleißstern, Todoly, and KakapoWP.

More about me