In order to obtain large room-temperature electrocaloric effect (ECE) and wide operation temperature range simultaneously in lead-free ceramics, we proposed designing a relaxor ferroelectric with a Tm (the temperature at which the maximum dielectric permittivity is achieved) near-room temperature and glass addition. Based on this strategy, we designed and fabricated lead-free 0.76NaNbO3–0.24BaTiO3 (NN-24BT) ceramics with 1wt.% BaO–B2O3–SiO2 glass addition, which showed distinct relaxor ferroelectric characteristics with strongly diffused phase transition and a Tm near-room temperature. Based on a direct measurement method, a large ΔT (adiabatic temperature change) of 1.3 K was obtained at room temperature under a high field of 11.0 kV mm−1. Additionally, large ECE can be maintained (>0.6 K@6.1 kV mm−1) over a broad temperature range from 23 °C to 69 °C. Moreover, the ECE displayed excellent cyclic stability with a variation in ΔT below ±7% within 100 test cycles. The comprehensive ECE performance is significantly better than other lead-free ceramics. Our work provides a general and effective approach to designing lead-free, high-performance ECE ceramics, and the approach possesses the potential to be utilized to improve the ECE performance of other lead-free ferroelectric ceramic systems.