Heat stress inhibits plant growth and productivity. Among the main regulators, B-box zinc-finger (BBX) proteins are well-known for their contribution to plant photomorphogenesis and responses to abiotic stress. Our research pinpoints that SlBBX31, a BBX protein harboring a conserved B-box domain, serves as a suppressor of plant growth and heat tolerance in tomato (Solanum lycopersicum L.). Overexpressing (OE) SlBBX31 in tomato exhibited yellowing leaves due to notable reduction in chlorophyll content and net photosynthetic rate (Pn). Furthermore, the pollen viability of OE lines obviously decreased and fruit bearing was delayed. This not only affected the fruit setting rate and the number of plump seeds but also influenced the size of the fruit. These results indicate that SlBBX31 may be involved in the growth process of tomato, specifically in terms of photosynthesis, flowering, and the fruiting process. Conversely, under heat-stress treatment, SlBBX31 knockout (KO) plants displayed superior heat tolerance, evidenced by their improved membrane stability, heightened antioxidant enzyme activities, and reduced accumulation of reactive oxygen species (ROS). Further transcriptome analysis between OE lines and KO lines under heat stress revealed the impact of SlBBX31 on the expression of genes linked to photosynthesis, heat-stress signaling, ROS scavenging, and hormone regulation. These findings underscore the essential role of SlBBX31 in regulating tomato growth and heat-stress resistance and will provide valuable insights for improving heat-tolerant tomato varieties.