Over the past two decades, young people's engagement in online activities has grown markedly. The aim of the present study was to examine the relationship between two specific online behaviors (i.e., cyberbullying perpetration, problematic social media use) and their relationships with social connectedness, belongingness, depression, and self-esteem among high school and university students. Data were collected from two different study groups via two questionnaires that included the Cyberbullying Offending Scale, Social Media Use Questionnaire, Social Connectedness Scale, General Belongingness Scale, Short Depression-Happiness Scale, and Single Item Self-Esteem Scale. Study 1 comprised 804 high school students (48% female; mean age 16.20 years). Study 2 comprised 760 university students (60% female; mean age 21.48 years). Results indicated that problematic social media use and cyberbullying perpetration (which was stronger among high school students) were directly associated with each other. Belongingness (directly) and social connectedness (indirectly) were both associated with cyberbullying perpetration and problematic social media use. Path analysis demonstrated that while age was a significant direct predictor of problematic social media use and cyberbullying perpetration among university students, it was not Int J Ment Health Addiction