Unsigned integers represent only positive integers by using all the bits to represent the magnitude. Signed integers represent both positive and negative numbers by using the most significant bit to indicate the sign (0 for positive, 1 for negative) and the remaining bits to represent the magnitude. The 2's complement representation is commonly used to store negative numbers in computers, where the negative value is calculated by flipping the bits of the positive value and adding 1.