dt

devtoolsforme

Fast browser-side utilities

Back to toolsEmbedded

devtoolsforme

Integer Type Ranges

Reference min and max values for common fixed-width signed and unsigned C integer types.

Quick reference for common fixed-width integer types used in embedded C and firmware code.
TypeBitsMinMaxHex span
uint8_t802550x00 - 0xFF
int8_t8-1281270x80 - 0x7F
uint16_t16065,5350x0000 - 0xFFFF
int16_t16-32,76832,7670x8000 - 0x7FFF
uint32_t3204,294,967,2950x00000000 - 0xFFFFFFFF
int32_t32-2,147,483,6482,147,483,6470x80000000 - 0x7FFFFFFF
uint64_t64018,446,744,073,709,551,6150x0000000000000000 - 0xFFFFFFFFFFFFFFFF
int64_t64-9,223,372,036,854,775,8089,223,372,036,854,775,8070x8000000000000000 - 0x7FFFFFFFFFFFFFFF