Skip to content

Self-hosting fonts or using a font service

Last checked 24 November 2026

Both routes work. For fonts under the SIL Open Font Licence, the files can sit on the same server as your other site files, or load from a separate font service.1 Which suits you depends on how much setup you want.

The two routes

Two ways a font reaches the browserChoose the fontHost the file yourself, or paste a service's codeBrowser fetches the fileText is drawn in the font
Both end the same way. Only the starting point differs.

Font service. A company stores and serves the files for you. Online font services generally handle the @font-face code too, so you paste a line or two into your site.2 MDN's tutorial describes most of these services as subscription-based, with Google Fonts as a notable exception.2 Prices and plans change, so check each service's own pricing page and note the date.

Self-hosting. You upload the font file to your own hosting, then write the @font-face rule yourself. MDN's walkthrough shows how, using one WOFF2 file per font.2

Side by side

Font service Self-hosting
Setup Paste a link and a font name Upload files, write CSS
File preparation Usually done for you You do it
Who serves the file The service Your host

If a service charges, read its own pricing page and note the date you checked. Plans change.

Which is faster?

It isn't clear cut. On paper a self-hosted font should be quicker, since it avoids a connection to another site. In practice the differences between the two options are less clear cut.3

web.dev says to confirm your site uses a CDN (a network of servers that delivers files from somewhere close to the visitor) and HTTP/2 before expecting a self-hosted gain.3 Its suggestion for a fair test is to serve a font file from your own server and compare the transfer time with a third-party font.3

If you use a service, web.dev adds that fonts from third-party sites need particular care. Downloading them needs separate connection setups.3

What you take on when you self-host

  • File preparation. Third-party font providers typically compress and subset files for you. When you move to self-hosting, that step is easy to miss, and your files can end up larger.3 See [page:web-font-file-formats].
  • Licence checks. Always check the font licences to confirm they allow subsetting and self-hosting.3
  • Updates. If the maker releases a new version, you need to swap the file yourself.

What you take on with a service

  • Another company's terms. The service sets its own terms, so read them.
  • Another connection. The browser has to reach the service before it can fetch the file.3
  • Visitor data. Your visitors' browsers talk to someone else's servers. If that matters for your readers' privacy, read the service's own privacy information and your country's official guidance. Australia's Office of the Australian Information Commissioner is the place to start for the Privacy Act. This page is general information, not legal advice.

How to choose

  • Pick a service if you want it working in minutes and you're happy with the terms.
  • Pick self-hosting if you want fewer outside dependencies and don't mind preparing the files.
  • Either way, check the licence first. See [page:font-licences-in-plain-words]. MDN also says to make sure you've satisfied licensing requirements before using a font in a commercial or web project.2
  • Either way, keep the number of files small. See [page:how-many-fonts-are-too-many].

Whatever you choose, put a generic family at the end of your font stack, in case the file doesn't load. See [page:system-fonts-and-font-stacks].

Cited material

  1. OFL FAQ, SIL Global
  2. Web fonts - Learn web development, MDN Web Docs (Mozilla)
  3. Best practices for fonts, web.dev (Google)