Webfont CSS Generator
Upload a font, preview its lettering, and create ready-to-copy @font-face CSS for your
website. Set font weight, style, loading behaviour and optional Unicode ranges. TTF, OTF, WOFF and
WOFF2 sources are converted to a matched WOFF2 + WOFF pair on the server.
Font settings
.woff2 and .woff are added automatically. Use a path relative to the CSS file.fonts/ and the CSS
lists both src URLs. Uploads are never stored after the download finishes.
Live font preview
Generated @font-face CSS
HTML usage example
How to use a custom font on your website
Choose a TTF, OTF, WOFF or WOFF2 file and generate the matching @font-face declaration.
Place your fonts on your own server in a fonts/ folder, update the URL in the generator,
then copy the CSS into your stylesheet. Apply the new font-family to your headings, paragraphs or
other elements.
WOFF2 and WOFF in one package
Download All builds a ZIP with fonts/your-font.woff2,
fonts/your-font.woff, a ready fonts.css, a sample.html demo page
and two shortcuts back to BrowseFonts and this
webfont generator. Unzip it at the root of
your site and the generated CSS already points at both files — modern browsers pick WOFF2, older ones
fall back to WOFF.
Which font format should I use?
WOFF2 is generally the preferred webfont format for modern browsers because it usually produces smaller files. WOFF1 is a useful fallback. TTF and OTF can also be loaded by modern browsers, but are not typically the most efficient webfont delivery formats.
Does the font upload go to the server?
Font preview and CSS generation happen locally in your browser. When you convert or download the package, the selected font is sent to this page, converted in memory and streamed back inside the ZIP; it is not saved on the server.
What about font licensing?
Check the font's licence before using it on a website. A font being downloadable does not necessarily grant web embedding or commercial-use rights.