This repository contains the de-identified dataset and supporting documentation for the cross-sectional study entitled Knowledge, Attitude, and Influencing Factors Towards Digital Professionalism Among Undergraduate Medical Students in Tanzania. The dataset includes anonymized participant responses collected using a structured questionnaire. Variables cover sociodemographic characteristics, knowledge of digital professionalism, attitudes toward digital professionalism, social media use characteristics, and other study variables used in the analyses. Personal identifiers have been removed to protect participant confidentiality. The repository also includes a data dictionary describing all variables and coding used in the dataset.