We introduce a scheme for the generation of tunable few-optical-cycle UV pulses based on sum-frequency generation between a broadband visible pulse and a narrowband pulse ranging from the visible to the near-IR. This configuration generates broadband UV pulses tunable from 0.3 to 0.4 μm, with energy up to 1.5 μJ. By exploiting nonlinear phase transfer, transform-limited pulse durations are achieved. Full characterization of the UV pulse spectral phase is obtained by two-dimensional spectral shearing interferometry, which is here extended to the UV spectral range. We demonstrate clean 8.4 fs UV pulses.