Image to C Array & Bitmap Converter

Turn PNG, JPG, GIF, and video into C byte arrays, XBM, RGB565, and LVGL bitmaps for U8g2, Adafruit GFX, TFT_eSPI, and more. Crop, resize, dither, and inspect every pixel.

How it works

  1. Choose your target library (U8g2, Adafruit GFX, TFT_eSPI, ArduinoGFX, LVGL, GxEPD2, ESPHome, or MicroPython) and display resolution.
  2. Drop PNG, JPG, BMP, or GIF files, then crop, resize, invert, or dither while checking exact 1:1 display pixels.
  3. Copy the generated C byte array and draw call, or download the header files straight into your Arduino IDE or PlatformIO sketch.

Supported libraries and displays

Works as a modern browser image2cpp alternative with live 1-bit monochrome and RGB565 preview. Generates ready-to-paste PROGMEM byte arrays, XBMP bitmaps, and LVGL image descriptors for SSD1306, SH1106, ST7789, ILI9341, e-paper, Arduino, and ESP32.

PNG, JPG, GIF, MP4, XBM, RGB565, and LVGL

Frequently asked questions

Is this a free image2cpp alternative?

Yes. It converts PNG, JPG, BMP, and GIF images into C byte arrays and XBM bitmaps right in your browser with no account, plus adds live dithering preview, RGB565 colour output, and ready draw calls.

Which output formats are supported?

You can export 1-bit monochrome XBMP and PROGMEM byte arrays for U8g2 and Adafruit GFX, 16-bit RGB565 arrays for TFT_eSPI and ArduinoGFX, and LVGL image arrays, as well as plain byte arrays.

Does it work with SSD1306 OLEDs and ST7789 or ILI9341 TFTs?

Yes. Set any panel width and height such as 128x64 for SSD1306/SH1106 OLEDs or 240x320 for ST7789/ILI9341 TFT panels, and the converter matches the library bit order automatically.

More Lopaka tools and guides:

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