ToolFeather
Image & MediaRuns in your browser

GIF to RAW Converter

Decode a GIF and export its pixels as headerless RAW bytes — choose the channel order, row order and output (.raw, C/C++ header or hex text).

Quick presets

GIF to RAW Converter

Pixel layout
Download

–

Width × height
–
–
Bytes per pixel
–
–
Output size
–
–
vs GIF
–
–
First bytes
Load an image to see its first 64 bytes.
Read it back
–
RAW files have no header — whatever reads them needs the width, height and pixel layout shown above. Note them down (they're also in the file name).

Runs in your browser — nothing you enter is uploaded or stored.

ToolFeather · GIF → RAW pixels
Scratchpad auto-saved
Stored in this browser (localStorage)
Step-by-step~40s read

How it works — in four simple steps

No signup and nothing to install — it all runs in your browser.

1

Drop a GIF

It's decoded in your browser.

2

Choose the pixel layout

RGBA, RGB, BGR, RGB565… plus row order and premultiplied alpha.

3

Pick the output

Binary .raw, a C header or hex text.

4

Download and note the size

Width, height and layout are in the file name; RAW has no header.

Pro tip

RGB565 little-endian is what most SPI TFT displays (ILI9341, ST7789) and LVGL expect.

Features

Eight pixel layouts

RGBA, RGB, BGRA, BGR, ARGB, grayscale, gray + alpha and RGB565 — as .raw, a C header or hex.

Nothing uploaded

Decoding and encoding run in your browser tab; the files never leave your device.

About the GIF to RAW Converter

GIFs are compressed with LZW and stored as palette indices, so code can't read the pixels directly. Exporting RAW expands the palette into real RGB(A) values in the layout your display driver or shader expects.

The GIF is decoded by your browser; animated GIFs give their first frame.

After decoding, the pixels are read from a canvas and written in the layout you choose — channel order, top-down or bottom-up rows, optional premultiplied alpha — with no header or padding. Snippets for NumPy, FFmpeg and ImageMagick show how to read the file back.

GIF vs RAW pixels compared

PropertyGIFRAW pixels
Origin / standardCompuServe, 1987 · GIF89a (1989)No standard — a plain pixel dump
CompressionLossless LZW on a ≤256-colour paletteNone
Transparency1-bit (on/off)If the layout includes it (RGBA, BGRA, ARGB, YA)
Colour depth1–8 bits per pixel (palette)8-bit channels, RGB565, grayscale
Animation / pagesYesNo
Maximum size65,535 × 65,535 pxAny
Typical useSimple animations, icons, legacy webFirmware, GPU uploads, NumPy, FFmpeg rawvideo
Opens inEverythingCode, FFmpeg, ImageMagick (with size given)

RAW file sizes

RAW output has no compression, so its size depends only on the dimensions and the pixel layout — exactly width × height × bytes per pixel:

ImageRGBA / BGRA / ARGBRGB / BGRRGB565 · gray + alphaGrayscale
320 × 240307,200230,400153,60076,800
800 × 4801,536,0001,152,000768,000384,000
1920 × 10808,294,4006,220,8004,147,2002,073,600

Sizes in bytes. A C header (.h) is about 6× larger as text, hex text about 3×.

Things to know

Frequently asked questions

3 answers
How big is the RAW file?
Exactly width × height × bytes per pixel — for example a 320 × 240 image is 153,600 bytes as RGB565 and 307,200 as RGBA.
What's the difference from camera RAW?
Camera RAW (CR2, NEF, ARW, DNG) holds unprocessed sensor data. This RAW is simply decoded pixels with no header.
Is my image uploaded?
No. GIF files are decoded and the RAW pixels is created entirely in your browser — nothing is sent to a server, and EXIF/GPS metadata isn't copied.