Individuals with type 2 diabetes mellitus (T2DM) have an increased risk of bone metabolic disorders and bone fracture due to disease progression and clinical treatment. The effect of sodium-glucose cotransporter 2 (SGLT2) inhibitors, now greatly prescribed for the treatment of T2DM, on bone metabolism is not clear. This study aimed to explore the possible influence of bone metabolic disorder and the underlying mechanism through a comparison of three different SGLT2 inhibitors (canagliflozin, dapagliflozin, and empagliflozin) in the treatment of type 2 diabetic mice. For the in vivo experiments, four groups (DM, DM+Cana, DM+Dapa, and DM+Empa) were established using micro-CT to detect the bone microarchitecture and bone-related parameters. The study results indicated that canagliflozin, but not dapagliflozin or empagliflozin, increased bone mineral density (p<0.05) and improved bone microarchitecture in type 2 diabetic mice. Furthermore, canagliflozin promoted osteoblast differentiation at a concentration of 5 μM under high glucose concentration (HG). Phosphorylated adenosine 5'-monophosphate (AMP)-activated protein kinase (AMPK) α (Thr172) has been confirmed to activate run-related transcription factor-2 (RUNX2) to perform this function. This effect can be partially reversed by the AMPK inhibitor dorsomorphin (compound C) and strengthened by the AMPK activator acadesine (AICAR) in vitro. The level trend of RUNX2 and p-AMPK in vivo were consistent with those in vitro. This study suggested that canagliflozin played a beneficial role in bone metabolism in type 2 diabetic mice compared with dapagliflozin and empagliflozin. It provides some theoretical support for the chosen drugs, especially for patients with osteoporosis or a high risk of fracture.