Adaptive Neural Network- based Fractional-order PID Control (NN-FO-PID) approach is designed for H-bridge inverter. This inverter has an LC filter to decrease the level of Total Harmonic Distortion (THD) that can affect the efficiency of the system. In addition, the reduction of THD and stability insurance of the filter are challenging performances. To fulfill this function, a fractional order proportional integrated derivative (FO-PID) controller is developed for the inverter. A few merits of the Fractional-Order notion as a useful technique include reduced sensitivity to noise and parametric fluctuation; however, for a wider range of disturbances, such as noise, this approach shows an unsuitable practical application based on its fixed gain values. Moreover, having parameters uncertainties including parametric variations, load uncertainty, supply voltage variation uplifts this challenging condition severely, and the parameters need to be adjusted once more for more dependable operations. As a result, the control parameters must be optimized once more to provide ideal operations. Here, an adaptive mechanism is proposed based on neural network structure to optimize the gains of the FO-PID controller for better performances. In real applications, this approach has some benefits, since it uses the Black-box technique, which does not necessitate a precise mathematical model of the system, resulting in a reduced computational burden, simple implementation, and reduced dependence on the model’s states. Even under extremely difficult circumstances, the artificial neural network structure effectively optimizes the FO-PID gains in real-time. This benefit can reduce the amount of THD-level for the inverter, properly. Additionally, to have a proper response in the first step condition, and trying to reduce the level of dangerous conditions, based on benefits of the ant lion optimization method, it is considered to select the initial values of the FO-PID controller gains. Here to verify the superiority of the proposed controller, PID and FO-PID controllers are offered to drive a comparison with this method, which are optimized using the PSO optimization algorithm. The analysis of simulation data shows that the suggested control strategy is appropriate for maintaining stability as well as adequately compensating for disturbances and uncertainties in the inverter. Furthermore, with the help of this controller, THD level decreased lower than 2 percent.