The application of pulse width modulation (PWM) technology will produce a high-frequency switching ripple. Generally, it is considered to filter it with an LCL filter to ensure the compensation performance of the shunt active power filter. According to the system requirements for ripple current suppression and maximum current tracking capability, this paper first optimizes the design of the filter inductance in the LCL. Then, aiming at the shortcomings of the traditional inductor design process that is complicated and cumbersome, with repetitiveness and difficulty to obtain reliable analytical solutions, a 4-dimensional visualization based multi-objective optimized algorithm is proposed, and the ternary function expression between each design goal and known independent variables is first derived and established. And then, through the visual programming of the 4-dimensional data field, the optimal solution set that meets the multi-objective design requirements is directly given, which is intuitive, clear, simple, and practical. Finally, according to the algorithm results, the corresponding inductance was wound and applied to a 50kVA three-phase four-wire active power filter prototype. The experimental results verified the feasibility and effectiveness of the proposed design method.