For my gloves or any of my cycling cloths and washable gear I wash them in the washer, it has a gentle hand wash setting. And I dry them in the dryer, it has a gentle low heat setting.
But unless your dryer has a low heat setting do not dry any kind of cycling clothing or wearable gear in the dryer. Any amount of heat above low will ruin your gear.