Rims are the metal part that holds the tire.
You need a different hub, the rims have nothing to do with the axle size.
You could buy a new wheel (hub+rim+spokes) or you could just buy a new hub and use your existing rim. If you buy a new hub, you might need different length spokes.
An inexpensive hub would be something like the DMR Revolver 20mm thru-axle hub ($60 at universalcycles.com).
You need a different hub, the rims have nothing to do with the axle size.
You could buy a new wheel (hub+rim+spokes) or you could just buy a new hub and use your existing rim. If you buy a new hub, you might need different length spokes.
An inexpensive hub would be something like the DMR Revolver 20mm thru-axle hub ($60 at universalcycles.com).