If you want an expanded range (to get the most of your 10-bits), you could either use a zener diode (say, 21V) to give you a suppressed-zero, then your 0-5V range will be from 21 to 26V with 0.5mV resolution.
Since Zeners are not ideal and will change voltage with temperature, choose two or...