TTF to GFX, BDF & LVGL Font Converter

Convert TTF, OTF, BDF, and Adafruit GFX fonts into U8g2, Adafruit GFX, TFT_eSPI, LVGL, or BDF bitmap fonts at any pixel size with live preview.

How it works

  1. Upload a TTF, OTF, WOFF, BDF, or Adafruit GFX .h font, or start from a built-in embedded font.
  2. Choose target format (U8g2, Adafruit GFX, LVGL, or BDF), pixel height, and glyph subset (ASCII, digits, or custom characters).
  3. Check the pixel preview and flash byte estimate, then copy or download the generated .h header file.

Supported libraries and displays

A browser-based TTF to GFX and TTF to BDF converter (an interactive alternative to truetype2gfx and otf2bdf). Pick built-in retro bitmap fonts or upload TrueType files, choose custom character ranges to save flash memory, preview real rasterized glyphs, and download ready C headers.

TTF, OTF, BDF, GFX, U8g2, and LVGL

Frequently asked questions

How do I convert TTF to an Adafruit GFX .h font?

Drop your .ttf or .otf file, select Adafruit GFX as the target, set the pixel height, and download the generated GFXfont .h header to include in Arduino IDE or PlatformIO.

Can I convert TTF to U8g2 or BDF bitmap fonts online?

Yes. Pick U8g2 or BDF as the target format and choose only the glyphs your UI needs to keep flash usage small on Arduino Uno, Nano, and ESP32.

How does this compare to truetype2gfx?

Unlike single-format truetype2gfx scripts, Lopaka previews every glyph at 1:1 pixels, lets you trim unused characters to save flash, and exports U8g2, Adafruit GFX, LVGL, and BDF from one tool.

More Lopaka tools and guides:

Free Embedded Display Tools · Image to bitmap converter · Video to bitmap converter · Animation editor · Read the documentation · Open full Lopaka UI editor