Home / Image / GIF to C Array (Arduino / OLED)
GIF to C Array (Arduino / OLED)
Convert a GIF or image into monochrome byte arrays for SSD1306 OLEDs with Adafruit GFX or U8g2.
Free, no uploads, no sign-up. Runs 100% in your browser.
How GIF to C Array (Arduino / OLED) works
Each frame is fitted to the display size, turned into 1-bit pixels with a threshold or ordered dither, and packed in the byte order your display library expects.
Input: GIF, APNG, WEBP, AVIF, PNG, JPG. Output: C, H.
How to use GIF to C Array (Arduino / OLED)
- Drop one or more images onto GIF to C Array (Arduino / OLED).
- Tune the options. The before/after preview updates live.
- Process the batch.
- Download a single image, or everything as a ZIP.
Tips
- 128×64 SSD1306 frames are 1 KB each; an Uno has room for about 25.
- Use the U8g2 layout with drawXBM and the Adafruit layout with drawBitmap.
GIF to C Array (Arduino / OLED) FAQ
- Are my files uploaded?
- No. This tool runs entirely in your browser tab. Files are read from your disk into memory and the result is generated locally.
- Is it free? Are there limits or watermarks?
- Free and open source (MIT). There are no file-size caps, daily quotas, accounts or watermarks.
- Does it work offline?
- Yes, once the page (and any engine it needs) has loaded, it keeps working without a connection thanks to the service worker cache.
Related tools
- Sprite Sheet Maker & Cutter: Turn a GIF, clip or images into a sprite sheet with CSS and JSON, or cut a sheet back into frames or a GIF.
- Image to Base64: Encode images as data URIs, or decode Base64 back to images.
- Resize, Crop & Rotate GIF: Resize, crop, rotate, flip or change the canvas and aspect ratio of GIF, APNG and WebP animations.
- Image Compressor: Shrink images in bulk with quality and width controls and live savings.