File to C style array converter
Select a file to convert...
File info
Name
Size
Type
Last modified
Preview
The grey border around the image is for visibility only.
If it is shorter than 32px, or taller than 100px, it will be resized. Again, for visibility reasons.
Conversion settings
Code format
Hex (0x00)
Hex (\x00)
Decimal (000)
Binary (B00000000)
Treat as binary
Palette mod
32 bit RGBA (4bytes/pixel)
32-bit BGRA (4bytes/pixel)
24bit RGB (3bytes/pixel)
16bit RRRRRGGGGGGBBBBB (2byte/pixel)
16bit BBBBBGGGGGGRRRRR (2byte/pixel)
15bit RRRRRGGGGGBBBBBA (2byte/pixel)
8bit RRRGGGBB (1byte/pixel)
8bit grayscale (1byte/pixel)
1bit line art (1bit/pixel)
Resize
x
(Fill only one to maintain aspect ratio)
Multi line
Optimize for column read
Separate bytes of pixels
Endianness
Little-endian
Big-endian
static
const
unsigned
Data type
byte
char
int
word
short
long
int8_t
int16_t
int32_t
int64_t
uint8_t
uint16_t
uint32_t
uint64_t
PROGMEM
...
Result