Bit Depth & Resolution Explorer

See how color depth and image size affect file storage requirements

Image Resolution

Current: 4×4 = 16 pixels

Bit Depth (Colors per pixel)

Current: 2-bit = 4 colors

Interactive Image

Click pixels to change colors!

Binary Data Stream

The image requires 2 bits per pixel to represent 4 colors

File Size Calculation

Current Image
Resolution: 4×4
Bit depth: 2-bit
Total pixels: 16
Size: 32 bits (4 bytes)
Working
16 pixels × 2 bits = 32 bits
32 bits ÷ 8 = 4 bytes
4 bytes ÷ 1024 = 0.004 KB
Raw image data only
Resolution 1-bit (B&W) 2-bit (4 colors) 4-bit (16 colors) 8-bit (256 colors)