The drilling and blasting method is still the main method in mountain tunnel excavation. For large cross-section tunnel in horizontal layered rock mass, tunnel blasting often causes serious overbreak and underbreak. In this study, blasting excavation tests of tunnel upper face were conducted and failure mechanisms of surrounding rocks with weak beddings and joints were analyzed based on the Panlongshan tunnel. Then, the blasthole pattern, the cut mode, a variety of peripheral holes, the charge structure and the maximum single-hole charge were optimized. Compared with the failure characteristics, overbreak and underbreak, and deformations of surrounding rocks before and after optimization, the latter was better in tunnel contour forming and surrounding rock stability. The results show that after optimization, the large-area separation of vault rock mass is solved, the step-like overbreak of spandrel rock mass is reduced and the large-size rock blocks and underbreak are avoided. The maximum linear overbreak of vault, spandrel, and haunch surrounding rocks is decreased by 42.3%, 53.7% and 45.1%, respectively. The underbreak at the bottom of the upper face is reduced from -111.5 to - 16.5 cm. The average overbreak area is decreased by 61.1%. In addition, the displacements after optimization finally converge to the smaller values. The arch crown settlement and the horizontal convergence of haunch are reduced by about 21.6% and 18.3%, respectively. Furthermore, from the completion of blasting excavation to the stabilization of surrounding rock, it takes less time by using the optimized blasting scheme.