The growing public concern over traffic safety hazards caused by pedestrians’ distracted behavior, particularly related to mobile phone usage at pedestrian crossings. Through video recording of pedestrians’ street-crossing behaviors on 12 sidewalks across 9 urban road intersections in Nanjing city, 1778 valid pedestrian samples were collected. The study categorizes mobile phone use during the crossing into five distinct types: no use, voice call, screen gaze, screen gaze with operation, and listening to music with headphones. Then, the effects of gender, age and companion conditions on the mobile phone during the crossing were examined by chi-square tests. Utilizing binomial logistic and Relogit regression models, the study analyzed the impact and safety risks of distraction on crossing behavior. Additionally, a random parameters (RP) logit model with heterogeneity in means was used to investigate the determinants affecting mobile phone usage. Notably, individuals aged 18 to 30 years were identified as the random parameter, while factors such as being under 18 years old, having a companion without interaction, having a companion with interaction, weekdays, sidewalk length, and the total number of other pedestrians were identified as fixed parameters. The study also presented significant variables affecting the probability of mobile phone usage through marginal effects, highlighting the potential safety risks associated with mobile phone usage during street crossing. These findings emphasize the need for heightened pedestrian safety awareness and a reduction in distracted behaviors to enhance overall traffic safety.