SVG to TTF Converter

Create a one-glyph TrueType icon font from filled SVG shapes in your browser.

or drop files here

SV

SVG Format

Scalable Vector Graphics

An XML graphics format describing shapes, text, and embedded images. Vector geometry scales independently of resolution; embedded raster images retain their pixel limits.

  • resolution independent
  • XML text
  • supports animation and scripting
TT

TTF Format

TrueType font

An outline font format developed by Apple and licensed to Microsoft. It is supported by Windows, macOS, Linux and web browsers.

  • quadratic curve outlines
  • hinting instructions
  • cross-platform

How to make a TTF icon font from an SVG

Your SVG's filled shapes become one character of the font, at U+E000.

    1

    Upload your SVG icon.

    2

    We turn its filled shapes into one glyph at U+E000, the first Private Use Area code point, in a font named after your file.

    3

    Download the TTF, then install it or load it on a web page with @font-face.

    4

    Type the character U+E000 in that font:  in HTML, or content: "\e000" in CSS.

Before converting SVG to TTF

  • Prepare filled shapes; outline any strokes first.
  • The icon becomes one glyph on U+E000.
  • Colors, text, pictures, clipping and masks are not carried into the font.

About SVG and TTF

What is an SVG file?

SVG is an XML format for drawings. It describes shapes, text and embedded images, and the geometry scales without losing sharpness. A font outline is only a filled shape, so strokes, text, colors and masks have no place in it.

This page turns the filled shapes of one SVG into a single glyph. Prepare the icon as one simple filled drawing; the artboard sets the height the glyph gets.

Programs that open SVG files

  • Windows, Mac and Linux: Inkscape edits SVG natively, and FontForge opens the finished TrueType outlines.
  • Web: Chrome and Firefox display SVG.
  • Mobile: Safari displays SVG.
  • Windows: Windows Font Previewer shows a font before you install it.
  • Mac: Font Book installs and validates font files.
  • Linux: GNOME Fonts previews installed typefaces.

SVG and TTF compared

  • What they hold: an SVG holds drawing instructions. A TTF holds scalable character outlines in tagged tables, with glyph mappings, metrics and naming.
  • Origin: Apple developed TrueType and licensed it to Microsoft. The media type is font/ttf.
  • Scale: the font here is built at 1,000 units to the em, with the artboard (the viewBox, else width and height, else the drawing's bounds) at full height and 150 units below the baseline.
  • Limits: a glyph can have at most 65,535 points, and a drawing past that is refused as too detailed.

The icon lands on U+E000 in a font named after your file.

Other ways to convert SVG to TTF

  • FontForge interface (Windows, Mac, Linux): double-click a glyph slot, choose File > Import, change the format to SVG and pick the file. Drag the outline down to the baseline, scale it with Element > Transform, then use the Generate dialog and pick the True Type outline type.
  • FontForge scripting: glyph.importOutlines accepts svg files into the foreground layer, and font.generate takes its output type from the extension of the file name you give it.
  • IcoMoon (web): add SVGs in the Import panel, then open the Export panel, keep the Font format ticked and download the package. Code points are set in the Metadata tab of the Batch panel.

Problems with SVG files

  • Thin lines disappear: a stroke becomes nothing. Convert strokes to filled outlines first.
  • Holes fill in: a very complex shape can run past the page's time or room, and its crossing outlines then fill. Simplify the artwork.
  • Typing a letter shows nothing: the icon is on U+E000, not on a familiar key. Type that code point to see it.
  • The font won't display: a damaged font can fail to show; Font Book on a Mac validates font files.

Frequently Asked Questions

Everything you need to know about our converter

How do I convert SVG to TTF?

Which character holds the icon?

What is the font called?

Why was my SVG refused?

Are colors, text and images kept?

Do holes and overlapping shapes come out right?

Can it make a whole alphabet?

Is the SVG uploaded or run?