Image โ Code Converter
Drop an image and get it as a byte array in your language of choice
๐ผ๏ธ
Drop an
image file
here or click to browse
PNG ยท JPG ยท GIF ยท WEBP ยท BMP ยท ICO ยท SVG
โ
Size:
โ
Type:
โ
Dims:
โ
Output Language / Format
C++ โ std::vector<uint8_t>
C++ โ std::vector<char>
C++ โ std::vector<unsigned char>
C++ โ uint8_t[] (static array)
C++ โ constexpr uint8_t[]
C โ uint8_t[] (static)
C โ unsigned char[]
C# โ byte[]
C# โ List<byte>
C# โ static readonly byte[]
Rust โ &[u8]
Rust โ Vec<u8>
Python โ bytes
Python โ bytearray
Python โ list[int]
Java โ byte[]
Kotlin โ ByteArray
Go โ []byte
JS โ Uint8Array
TS โ Uint8Array
JS โ number[]
Raw hex dump (xxd-style)
Variable Name
Bytes Per Line
8
16
32
All on one line
Byte Format
Hex (0xFF)
Decimal (255)
Octal (0377)
Convert
Output
Copy