Photocathode laser pulse shaping is a crucial technology for enhancing the performance of X-ray free-electron lasers by optimizing the quality of electron beams generated from photocathodes within high-gradient radio frequency guns. By precisely shaping these laser pulses, it is possible to significantly reduce the transverse emittance of produced electron bunches. The optimal pulse shape is an ellipsoidal distribution, commonly referred to as the Kapchinskij–Vladimirskij profile. A pulse-shaping scheme utilizing a commercial Yb:KGW laser operating at 514 nm with a repetition rate of 1 MHz and duration of 260 fs has been developed for generating electron bunches with high peak and average power. This study presents the experimental realization of ellipsoidal pulses via three-dimensional amplitude shaping using spatial light modulators at 514 nm, followed by conversion to UV (257 nm) suitable for Cs 2Te photocathodes. The preservation of pulse shape and a high conversion efficiency during this process are investigated and our experiments pave the way for future emittance minimization for X-ray free-electron lasers.