A USB adapter for a car's cigarette lighter has a 12 V input. I marked "+" and "-" in the image below.
Then there is the USB receptacle as the output.
That's all you need.
Of course there is also a variety of modules that do the same job, like
e.g. this one. Lots of similar devices easily available on your favorite shopping platform.