Unified Power Quality Conditioner (UPQC) is an electrical device with series and shunt converters that are connected continuously and it mainly concerns resolving the Power Quality (PQ) issues related to current and voltage harmonics. The presented work focuses on the enhancement of power quality by optimal allocation and sizing of UPQC devices under a variety of operating states. Consequently, the “Salp Swarm-Crow Search algorithm (SS-CSA)” is deployed in the presented work for determining the optimal sizing and location of UPQC by resolving the power quality. At last, analysis is carried out for proving the superiority of the deployed scheme over other traditional schemes in terms of cost analysis and convergence analysis.