SVG to Icon Font Generator
Build a web font from SVG icons or an SVG font. Free, and runs entirely in your browser — nothing you enter is uploaded, stored or sent to a server.
About Icon Font Generator
Add SVG icons — dropped in, chosen from disk or pasted as markup, a few at a time — and get a web font back: WOFF2, WOFF, TrueType, OpenType, EOT and an SVG font, whichever you ask for, with the stylesheet that binds each icon to a class name and a zip holding the lot. Point an existing SVG font at it instead and its glyphs are read straight out, which is how an old icon set is brought forward without redrawing it.
The icons stay a list you can work with: each one shows the outline the font will actually carry, keeps a name you can edit — the name becomes the CSS class — and can be dropped from the set without starting again. The preview is drawn from the extracted geometry rather than by rendering the file, so nothing inside an untrusted SVG is ever executed here.
The awkward part is co-ordinates. An SVG draws downwards from the top-left corner of its viewBox in whatever units the artboard used; a font draws upwards from a baseline in em units. Each icon is therefore scaled into the em square, centred, flipped, and set on the baseline where a capital letter sits, so an icon lines up with the text beside it rather than floating above it.
Code points start at U+E900 in the private use area, the same place IcoMoon and Fontello start, and the table lists what each icon became: its class, its code point, and the escape to write in content. The preview grid is drawn by the generated font itself rather than by the original SVGs, so what you see is what a page using the stylesheet would show.
Everything happens in this tab — the icons are never uploaded — and the font is assembled from filled outlines. Strokes, <use> references and even-odd fills are the three things that do not survive the trip, and each is called out when it is found.
Where it helps
- Reads a folder of SVG icons or an existing SVG font, and writes OpenType, WOFF and the CSS together.
- Scales and centres every icon on the baseline, so glyphs line up with text instead of drifting.
- Lists each icon's class, code point and CSS escape, which is the part people otherwise write out by hand.
- Previews the result with the generated font itself, not with the source SVGs.
- Runs entirely in the browser, so an unreleased icon set never leaves the machine.
Limits
- A font holds filled outlines only: stroke-based icons have to be converted to outlines first, and the tool says so when it sees one.
- Fonts fill by the non-zero rule, so a shape relying on even-odd may lose its holes unless the inner contour runs the other way.
- Colour is dropped — an icon font is monochrome by definition, and multi-colour icons should stay as SVG.
- WOFF2 is written by Google's own encoder, which repacks the glyphs before compressing them; it is a megabyte of wasm and is fetched only the first time that format is asked for.
<use>references are not resolved, so an icon assembled from symbols will be missing that part.
Frequently asked questions
Why do my icons come out hollow or empty?
They are drawn with strokes rather than fills. A font has no notion of a stroke, so convert the strokes to outlines — Illustrator's *Object → Path → Outline Stroke*, Figma's *Flatten* — and rebuild.
Where do the code points come from?
They are assigned in order from the first one you give, U+E900 by default, which sits in the private use area set aside for exactly this. Nothing standard lives there, so no real character is displaced.
Should I still be using an icon font?
Inline SVG is the modern default: it takes colour, scales cleanly and needs no font loading. An icon font still wins when icons must be styled as text through font-size and color, or when a legacy stylesheet already expects one.
Which formats do I actually need?
WOFF2 alone covers every browser still receiving updates, with WOFF as a fallback for older ones. TrueType is for desktop applications and build tools, OpenType is the CFF-outline equivalent, EOT is only for Internet Explorer 8 and earlier, and the SVG font is for toolchains that still read one. Whatever you pick, the zip holds all of it plus the stylesheet.
How do I use the files?
Put the WOFF and OpenType files beside the stylesheet, keep the names as generated, and the @font-face rule in the CSS resolves them. Then <i class="icon-name"></i> renders the icon.
Can it read an existing icon font?
An SVG font, yes — its glyphs, names and code points are carried across. A TTF or WOFF is not read back; export it to an SVG font first, or keep the original SVG sources.
Related tools
- Image Converter — Convert between PNG, JPEG, JFIF, WebP, GIF, HEIC and SVG
- Image Compressor — Resize and re-encode images to save bytes
- Image Colour Picker — Pick a colour out of a picture and read it back
- Base64 — Encode or decode UTF-8 text and URL-safe Base64
- Image Resizer — Resize to a size, a proportion or a longest side
- Crop Image — Cut a rectangle out, or trim a flat border away
More Images & Files tools
- Image Converter — Convert between PNG, JPEG, JFIF, WebP, GIF, HEIC and SVG
- Image Resizer — Resize to a size, a proportion or a longest side
- Crop Image — Cut a rectangle out, or trim a flat border away
- Rotate Image — Turn by a right angle or any angle, and flip
- Image Base64 Converter — Turn an image into a data URI for CSS or HTML, and read one back
- WebP Converter — To WebP for the web, or back out of it
- SVG Converter — Draw an SVG at any size, or wrap a bitmap in one
- Background Remover — Take a flat background out and keep the subject
- Image Compressor — Resize and re-encode images to save bytes
- Image Optimizer — Strip metadata and redundant markup without touching the picture
- Favicon Generator — Build favicon PNGs and a multi-size .ico
- File Checksum — Verify a download, and work out which algorithm made the checksum
- QR & Barcode Reader — Read a code out of an image, and say what it does before you follow it
- MIME Detector — Identify a file from its magic bytes
- Office Password — Protect a Word, Excel or PowerPoint file with a password
- Office Password Remover — Remove the password from a Word, Excel or PowerPoint file
- Image Editor — Crop, straighten, adjust and cut out, with every step visible and reversible
- Passport Photo Maker — Passport and visa photos at each country's size, with head guides and a print sheet
- PDF Editor — Move and retype what is already on the page, reorder, annotate, stamp and sign, with the document in front of you
- PDF Viewer — Read, search and inspect a PDF without leaving the browser
- PDF Password & Permissions — Lock a PDF with AES-256, and say what a reader may print, copy or change
- PDF Password Remover — Strip the password from a PDF you can already open
- Merge PDF — Join several PDFs into one document
- Split PDF — Cut a PDF into separate documents
- Delete PDF Pages — Remove pages from a PDF and keep the rest
- Rearrange PDF Pages — Put a PDF's pages in a different order
- Rotate PDF — Turn a PDF's pages the right way up
- Compress PDF — Make a PDF smaller, by rebuilding it or redrawing it
- Watermark PDF — Stamp text or a logo across a PDF's pages
- Sign PDF — Put a signature and a date onto a PDF
- Edit PDF — Add text to a PDF page, and hide what is underneath
- PDF to Images — Turn every page into a PNG, JPG, WebP, GIF or JFIF
- OCR PDF — Read the text off a scanned PDF
- PDF to Word — Turn a PDF into an editable .docx that keeps its layout
- PDF to Excel — Pull a PDF's tables into a .xlsx workbook that keeps their formatting
- PDF to PowerPoint — Turn a PDF's pages into editable .pptx slides that look the same
- Word to PDF — Turn a .docx document into a PDF that looks the way it does in Word
- Excel to PDF — Print a .xlsx workbook to PDF with its formatting and page setup
- PowerPoint to PDF — Turn a .pptx deck into a PDF that looks the way the slides do
- Images to PDF — Turn photos or scans into one PDF document
- PDF to Text — Pull the text out of a PDF as plain text
- Crop PDF — Trim the margins off every page
- Page Numbers — Number the pages of a PDF
- Header & Footer — Put a running head or foot on every page
- Bates Numbering — Stamp sequential legal numbers across pages
- Reverse Pages — Flip a PDF's page order end to end
- Add Blank Pages — Insert empty pages anywhere in a PDF
- N-Up PDF — Put several pages on one sheet
- PDF Booklet — Reorder pages for folded booklet printing
- PDF Metadata — Read, change or strip a PDF's properties
- Flatten PDF — Make form answers part of the page
- Alternate & Mix Pages — Interleave two PDFs a page at a time
- PDF Overlay — Draw one PDF over or under another
- Combine to Single Page — Stack every page into one continuous strip
- Divide Pages — Cut every page in half or into quarters
- Posterize PDF — Tile a large page across several printable sheets
- Fix Page Size — Put every page onto one uniform sheet
- Page Dimensions — Measure every page, its rotation and its sheet
- Rotate by Any Angle — Turn pages by a fraction of a degree or more
- Remove Annotations — Strip comments, highlights, links and stamps
- PDF Attachments — List, extract, add or remove embedded files
- PDFs to ZIP — Package several PDFs into one archive
- PDF Bookmarks — Read, write or remove a PDF's outline
- Table of Contents — Build a contents page from the bookmarks
- Page Labels — Number front matter in roman and the body in arabic
- Sanitize PDF — Strip scripts, actions, attachments and metadata
- Extract Images — Pull every embedded picture out of a PDF
- Extract Tables — Turn a PDF's tables into CSV, JSON or Markdown
- PDF to Markdown — Convert a PDF into Markdown with its headings, emphasis, lists, tables and pictures
- PDF to JSON — Export a PDF's text as structured JSON
- Compare PDFs — See which pages of two PDFs differ, and by how much
- Remove Blank Pages — Find the empty pages, and take them out
- Invert PDF Colours — A dark-mode version of a document
- PDF to Greyscale — Convert every page to shades of grey
- Adjust PDF Colours — Brightness, contrast and saturation across a document
- Scanner Effect — Make a clean PDF look like a photocopy
- PDF Background Colour — Tint the paper behind the content
- Rasterize PDF — Flatten every page into a picture of itself
- PDF to CBZ — Turn a PDF into a comic book archive
- CBZ to PDF — Turn a comic book archive into a PDF
- Text to PDF — Set a plain text file as a document
- Markdown to PDF — Set Markdown as it renders: headings, emphasis, lists, code, quotes and tables
- JSON to PDF — Print a JSON file as an indented tree
- CSV to PDF — Set a spreadsheet export as a printed table
- XML to PDF — Print an XML document as an indented tree