FontGen - Free CSS @font-face Generator and WOFF2 Converter

Description
What it does: turns font files into everything a website needs to self-host them. Drop TTF, OTF, WOFF, WOFF2, or TTC files, a whole family at once. FontGen reads the family, weight, and style stored inside each font and groups the files into one font-family: Regular, Italic, Bold, and Bold Italic become four @font-face rules, and a variable font gets its real weight range (font-weight: 400 700). Every file becomes WOFF2, about a third of a TTF. Keep only the languages your site uses (Latin, Latin Extended, Cyrillic, Greek, Vietnamese, or your own characters) and a font often drops to a tenth of its size, with the matching unicode-range in the CSS. Each family also gets a fallback font sized to its metrics, so the text keeps its place while the web font loads: on a test page the fallback line was as wide as PT Serif and the paragraph as tall, where plain Times New Roman was 9% narrower.
Who it is for: web developers and designers who self-host fonts: a brand font bought for the web, an open-source family, or a Google font moved onto your own server. The fonts never leave the browser, so licensed fonts are safe to use here, and nothing caps their size: a 9.6 MB Japanese font converts while the page stays responsive.
What you get: use it free in the live preview above, or take the whole tool: a one-page site for any static host with no server, no database, and no API keys, the font logic in its own JavaScript modules (reading, grouping, subsetting, CSS, ZIP) that also run in Node.js, 44 unit tests on openly licensed fonts, and HTML documentation on hosting it, changing texts, colors, and defaults, adding character sets, and embedding it in another page.
What you do: drop the fonts, check the names and styles it found, pick the languages and font-display, and click Download ZIP. Upload the fonts folder to your site and paste the two lines of HTML into your pages.
Features
- Several files at once: TTF, OTF, WOFF, WOFF2, and font collections (each font listed), a file that is not a font gets a plain message, the rest goes on.
- Family, weight, and style read from inside the font and grouped into one font-family, the name, weight, style, and fallback are editable, and two files claiming the same weight and style are flagged.
- Variable fonts kept variable: their weight, width, and slant ranges go into the CSS.
- WOFF2 for every file, WOFF as an option for browsers older than 2016.
- Optional subsetting by language or by your own characters, with unicode-range, each language shows how many of its letters your fonts have. Kerning, ligatures, and every OpenType feature stay unless you choose to drop the optional ones.
- Optional hinting removal, which can halve a hinted TrueType file (PT Serif: 103 KB to 51 KB).
- Clean @font-face CSS with font-display (swap, optional, fallback, block, auto), a fallback font tuned to your font's metrics against layout shift, and a CSS variable with the whole font stack.
- Preload tags for the styles you mark, and the folder of your site set once for the CSS and the HTML.
- A live preview of every style drawn with the generated file itself, so you see what a subset keeps, with your own preview text and the size before and after.
- One ZIP: the fonts and fonts.css in a
fontsfolder, and demo.html showing every style and how to use it, Copy buttons for the CSS and the HTML. - A short note on the row when a font says it may not be embedded, and one line reminding you to use only fonts whose license allows the web.
- Private and free: everything runs in your browser, nothing is uploaded or stored, no sign-up, no ads, works on a phone, with the keyboard, and keeps working offline once you start using it.
Screenshots
Categories
Tags
Products of the Week.
Submit馃
Free LinkedIn Likes From Real Members | LinkedInLikes
Get free LinkedIn likes on your posts from real members who react by hand. No password needed: you only share a link.
Website 路 14,502 views 路 53 clicksWebsite 路 Week 49 路 14,502 views 路 53 clicks
馃
Free Medium Claps From Real Writers | MediumPlace
Free Medium claps on your stories from verified accounts of real writers, each given by hand. No bots, no Medium password, nothing to pay. Paste a link.
Website 路 9,684 views 路 13 clicksWebsite 路 Week 49 路 9,684 views 路 13 clicks
馃
Free GitHub Stars From Real Developers | GitWow
Get free GitHub stars on your repository from real developers who star by hand. No token or password, and it's free.
Website 路 17,352 views 路 31 clicksWebsite 路 Week 49 路 17,352 views 路 31 clicks
#4
Free Substack Likes From Real Writers | StackRooms
Free Substack likes on your posts and Notes from verified accounts of real writers, given by hand. Free to ask, free to receive. Just share a link.
Website 路 9,430 views 路 2 clicksWebsite 路 Week 49 路 9,430 views 路 2 clicks
#5
Free Twitter Likes From Real People | SupaTwitter
Free Twitter likes on your tweets from verified accounts of real people, each given by hand. No bots, no Twitter password, nothing to pay. Paste a link.
Website 路 9,305 views 路 8 clicksWebsite 路 Week 49 路 9,305 views 路 8 clicks
#6
Free X Likes From Real People, Given by Hand | XFast
Free X likes on your posts from verified accounts of real people, each one given by hand. No bots, no X password, no conditions. Paste a link to start.
Website 路 9,189 views 路 2 clicksWebsite 路 Week 49 路 9,189 views 路 2 clicks



