HB electrophoresis is a laboratory test that separates the different types of hemoglobin in the blood based on their electrical charge and size. The test can identify abnormal hemoglobin types, such as hemoglobin S (found in sickle cell disease) or hemoglobin E (found in certain types of thalassemia).