SummaryThis paper presents a selective harmonic PWM strategy (HSE‐PWM) to control a five‐phase three‐level T‐NPC inverter. The proposed method aims to reduce switching losses and directly eliminate specific orders of harmonics, while also controlling the fundamental magnitude. MATLAB/Simulink simulations are conducted using an RL load, and the implementation is tested using a simplified method on an STM32F4 controller board. Experimental tests are then carried out to validate the simulation results. Additionally, power losses and efficiency are studied using Plecs software. The paper explores four different cases of switching angles number and proposes three SHE methods: a simple SHE based on Newton Raphson's method, SHE with current THD optimization, and SHE with common mode voltage (CMV) optimization using the PSO algorithm. The proposed methods provide complete control over the fundamental of the output voltage and the selected harmonics while reducing switching losses. A comparison is carried out in terms of voltage waveform, maximum CMV, fundamental magnitude, total harmonic distortion (THD), and power efficiency for the three methods. The paper concludes that the proposed modulation can be useful in high‐power applications.