SYDNEY—The next boom in electric vehicles could be the world’s mining fleet.

From rural Canada to Australia’s dusty Outback, companies are swapping out diesel-fueled drills, loaders and utility vehicles for equipment powered by lithium-ion batteries. They are looking to reduce emissions and eliminate the exhaust fumes that foul the underground air and risk miners’ health.

About...