HbA1c, also known as hemoglobin A1c or glycosylated hemoglobin, is a blood test used to measure the average blood sugar (glucose) levels over a period of approximately 2-3 months. It is commonly used in the management of diabetes, both Type 1 and Type 2, to assess how well blood sugar levels have been controlled over time.