Total bilirubin is a blood test that measures the total amount of bilirubin in your bloodstream. Bilirubin is a yellow pigment that is produced when red blood cells break down. It plays a crucial role in the body's process of recycling old red blood cells and is eventually excreted by the liver.