Abstract The three-level (3-L) neutral-point-clamped (NPC) converter has found widespread applications in various fields, due to its simple structure, low failure rate and high efficiency. However, the 3-L NPC converter suffers the issue of unbalanced neutral-point (NP) voltage due to the divided two dc-side capacitors. The large NP voltage ripple and offset Based on the detailed analysis of the effects of vectors and clamping patterns on the NP voltage, a discontinuous optimized modulation method for NPC grid-connected inverter with both low switching loss and ability to balance NP voltage is presented. By measuring NP voltage and utilizing the property that superfluous clamping patterns have opposing effects on the NP voltage, the modulation method adjusts the NP voltage with the injection of various zero sequence voltages (ZSV) into the original sinusoidal waves. The results of this study demonstrate that the CB-DPWM can control the NP voltage balanced and decrease switching loss compared to conventional DPWM and SVPWM strategies. Moreover, the CB-DPWM strategy does not need to identify sectors and subsectors or calculate dwelling times. This modulation strategy effectively suppresses low-frequency fluctuations and deviations of the NP voltage with the injection of a simple ZSV, and improves the power quality of the output voltages and currents. Compared to the traditional SVPWM scheme, the suggested CB-DPWM has a 27 % lower overall IGBT loss. Moreover, this method is implemented through carrier waves, which is simpler than modulation schemes based on space vector, greatly shortens the program running time, and is conducive to engineering implementation.