xTools

Favorite Tools

Your saved tools, one tap away.

No favorite tools yet.

Tap the heart on any tool to save it.

All tools
Design

Webfont CSS Generator

Generate @font-face CSS.

CSS
@font-face {
  font-family: 'MyFont';
  src: url('https://example.com/font.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

About Webfont CSS Generator

Generate @font-face CSS.

How to use

  1. 1Open the Webfont CSS Generator above and fill in any required inputs.
  2. 2Adjust options if the tool exposes them , changes preview live.
  3. 3Copy or download the result using the buttons provided.

Tips

  • Everything runs locally in your browser , your data never leaves the device.
  • Bookmark this page for quick access next time.

Related tools

More from Design