In recent years, wind energy conversion systems (WECSs) have been growing rapidly. Due to various advantages, a permanent magnet synchronous generator (PMSG) is an appealing solution among different types of wind generators. As wind power penetration level in the grid increases, wind power impacts the grid and vice versa. The most essential concerns in the system are voltage sag and swell, and grid code compliance, particularly for low voltage ride-through (LVRT) and high voltage ride-through (HVRT) capability, is a pressing necessity. This paper presents a parallel capacitor (PC) control strategy to enhance the LVRT and HVRT capability of PMSG. Furthermore, this study presents a method for the sizing of a PC system for the reduction of the overvoltage of the DC-link during voltage sags and swell. Fast Fourier transform analysis is used to determine the total harmonic distortion (THD) for the injected current into the grid. The obtained results illustrate the effectiveness of the proposed system in keeping the DC-link voltage below the limit, power quality improvement, and increasing the LVRT and HVRT capability. Models of wind turbine, PMSG, and PC control system are built using MATLAB/SIMULINK software.