Free tool
Font Converter
Convert any TTF or OTF font to self-hosted woff2 with ready-to-paste @font-face CSS. Cut font payload by ~65%.
Font files are processed locally and never uploaded to our servers.
How it works
Why font format matters.
Fonts are downloaded before your text can show in them, and every weight and style is a separate file. TTF and OTF files are made for installing on a computer, not for the web, so they're much bigger than they need to be. WOFF2 holds exactly the same font, compressed, and every modern browser reads it.
Convert
Drop in a TTF or OTF file and download the WOFF2. Nothing leaves your browser.
Upload
Put the WOFF2 on your own website, next to your CSS or in a fonts folder.
Paste
Copy the @font-face rule into your CSS and point its url at where you put the file.
Checking the result
Once a font is converted, the converter shows how big the file was, how big it is now, and a preview drawn with the converted font, so you can see every letter came through. Set the family name, weight and style to match how your CSS already uses the font, and the @font-face rule updates as you type.
Questions
Web fonts, answered.
Why is this important?
Text in a web font can't show until the font has downloaded, so a heavy font means a blank or jumping page while it loads. Google measures how quickly a page's main content appears, and how much it shifts around as it loads, as part of how it ranks pages.
Why WOFF2?
WOFF2 is the font format made for the web. It's the same font as your TTF or OTF, compressed, and often half the size or less. Every modern browser supports it, so it's the only format most sites need.
Why host fonts myself?
A font from another service like Google Fonts means your visitors' browsers connect to that service before the font can load, which takes time. Browsers no longer share those downloads between websites, so there's no caching benefit either. Hosting the file yourself also stops your visitors' IP addresses going to a third party, which some European courts and regulators have objected to.
Which font-display should I choose?
Swap, the default, shows your text straight away in a fallback font and switches when your font arrives. Optional uses your font only if it arrives almost immediately, and keeps the fallback otherwise, so the page never shifts. Fallback sits between the two. Block hides the text for up to three seconds, so avoid it for body text.
Where does the font file go?
Anywhere on your website. The url in the @font-face rule is relative to your CSS file, so if you put the font in a fonts folder, change it to something like /fonts/your-font.woff2.
Should I preload my font?
Preload the one or two fonts your page needs first, usually the body text font, so the browser starts downloading them straight away. Add a link tag with rel="preload", as="font", type="font/woff2" and crossorigin to your page's head. Preloading every font slows the page down instead.
Am I allowed to convert my font?
Check your font's license. Many free fonts, including most on Google Fonts, allow it. Commercial fonts often need a web license, and some don't allow converting the files at all.
Which fonts can I convert?
TrueType (.ttf) and OpenType (.otf) files. Font collections (.ttc) aren't supported, and WOFF and WOFF2 files are already web fonts. The converter keeps every character in the font. It doesn't remove the ones you don't use.
We flag slow fonts automatically.
Bloomlight detects render-blocking fonts across your site and tells you exactly what to do — including generating the self-hosted @font-face code.
Fonts slowing you down?
Bloomlight detects every font performance issue across your site and walks you through the fix.