OTF to SVG converter

An .otf usually draws its letters with CFF outlines: cubic Bézier curves, the same kind SVG's "C" command draws. So an OTF to SVG conversion does not need to approximate anything, and this one does not. HarfBuzz, compiled to WebAssembly and running in this tab, reads each glyph's charstring and the curves are written to SVG as the cubics they are. Type text to get it back as shaped, kerned paths, take one SVG file per character, or export a legacy SVG font.

Drop the OTF font to draw as SVG. TTF, WOFF and WOFF2 files work too.

Outlines are read and shaped in this tab with HarfBuzz compiled to WebAssembly.

Files are read and processed in this browser tab. Nothing is uploaded — the page’s Content-Security-Policy blocks connections to any other origin.

What happens to a CFF glyph on the way to SVG

A CFF charstring is a small program: moves, lines and curves, plus subroutine calls that share common pieces between glyphs and hint operators for rasterisers. HarfBuzz runs that program and reports only the drawing operations, which become "M", "L", "C" and "Z" commands. Coordinates are rounded to two decimals of a font unit, far below anything visible.

The hints are not drawn, because they are instructions for fitting an outline to a pixel grid, not part of its shape; SVG has nowhere to put them. Neither is anything else that is not an outline: colour layers, bitmap glyphs and OpenType feature choices beyond the default shaping of your text.

Getting the file you actually need

For a word, logo or headline as artwork, use the text SVG. Your text is shaped the way a browser shapes it, with the font's kerning and standard ligatures, and the result opens in Illustrator, Figma, Inkscape or cutting-machine software as plain paths that need no font installed.

For an icon font or a set of letterforms, take the glyph ZIP: one file per character, named by code point, each one advance-width wide so they line up when placed side by side. The SVG font output exists for older tools that still ask for one; no current browser renders SVG fonts.

If the .otf turns out to hold TrueType outlines (the extension does not guarantee CFF), the same tool writes their quadratic curves as quadratic SVG commands, again without approximation. The inspector tells you which outline model your file has.

CFF2 variable fonts

A variable OpenType font with a "CFF2" table is drawn at its default instance, the design the font shows before any axis is moved. To get a different weight as SVG, convert a static instance of that weight instead.

When it does not work

The SVG paths use "Q" commands, not "C".

Why: The .otf holds TrueType (glyf) outlines, which are quadratic. They are written as they are rather than converted to cubics.

Fix: Nothing is wrong: every SVG editor reads both. The inspector's Overview panel shows the outline model of your file.

Some letters in the text SVG are drawn as an empty box.

Why: The font has no glyph for those characters, so the shaper used its .notdef glyph, as a browser would.

Fix: The result lists the missing code points; check them in the glyph coverage tool before choosing another font.

Small text looks different in the SVG than in your design app.

Why: Design apps apply the font's PostScript hints at small sizes. SVG paths carry the unhinted outline, which renderers scale smoothly.

Fix: At display sizes the two match. For small text that must stay text, use the font itself as a web font instead of paths.

Related

  • TTF to SVG

    Convert TTF, OTF, WOFF or WOFF2 fonts to SVG in your browser: type text and get kerned SVG paths, download every glyph as its own SVG file, or export an SVG font. Nothing is uploaded.

    Open: TTF to SVG
  • Inspector

    Read everything inside a font file in your browser: family and PostScript names, version, copyright and licence text, OS/2 embedding permissions, variation axes, colour tables and the full table directory.

    Open: Inspector
  • OTF to TTF

    Convert OpenType/CFF fonts to real TrueType in your browser. Outlines are genuinely redrawn from cubic to quadratic curves to a stated tolerance, not renamed. Nothing is uploaded.

    Open: OTF to TTF
  • Glyph coverage

    See exactly which characters a font covers, grouped by Unicode block. Paste text to find missing characters before they render as tofu, and export a CSS unicode-range.

    Open: Glyph coverage