The Whale Optimization Algorithm (WOA) is regarded as a classic metaheuristic algorithm, yet it suffers from limited population diversity, imbalance between exploitation and exploration, and low solution accuracy. In this paper, we propose the Spiral-Enhanced Whale Optimization Algorithm (SEWOA), which incorporates a nonlinear time-varying self-adaptive perturbation strategy and an Archimedean spiral structure into the original WOA. The Archimedean spiral structure enhances the diversity of the solution space, aiding the algorithm in escaping local optima. The nonlinear time-varying self-adaptive optimization dynamic perturbation strategy improves the algorithm’s local search capability and enhances solution accuracy. The effectiveness of the proposed algorithm is validated from multiple perspectives using CEC2014 test functions, CEC2017 test functions, and 23 benchmark test functions. The experimental results demonstrate that the enhanced Whale Optimization Algorithm significantly improves population diversity, balances global and local search, and enhances solution accuracy. Additionally, SEWOA exhibits excellent performance in solving three engineering design problems, showcasing its value and wide range of potential applications.