An old circuit I dug up, edited for slight improvements.
These are probably the simplest switchmode converters. All it's really doing is a PWM of the power supply and then cleaning up the output voltage with an LC filter (a slight oversimplification but close enough).