As long as it was up to code when it was installed it is ok now. If you ever remodel or change it around it must then be up to the latest code.
The only practical way to do that would be to sell the electric clothes dryer and use the proceeds toward purchase of a gas dryer. Even if it was possible to convert the dryer the cost would be prohibitive versus a new dryer. If you mean converting the building, then you would need to have natural gas plumbing installed, and you would need an outlet that matches the voltage of the new dryer.
Hair dryer: U.S. Clothes dryer: France
A clothes dryer converts electrical energy into heat energy to dry wet clothes.
Get a new dryer
A clothes dryer can generate static electricity due to the friction between clothes and the dryer drum or between clothes themselves. As the clothes tumble and rub against each other and the dryer, electrons can be transferred, leading to a buildup of static charge that discharges when you touch the clothes.
To dry clothes
pictures of the first ever clothes dryer
Clothes pockets turn inside out in a clothes dryer due to the tumbling motion during the drying cycle. The pockets get caught on other clothes or the dryer drum, causing them to become inverted. To prevent this, emptying pockets before putting clothes in the dryer can help.
G T Sampson invented the clothes dryer
Clothes stick to the dryer because of static electricity that builds up during the drying cycle. The friction between the clothes and the dryer drum causes static charges to accumulate, leading to the clothes clinging to the drum or to each other. Using dryer sheets or dryer balls can help reduce static and prevent clothes from sticking.
In a clothes dryer, electrical energy is transformed into heat energy. The heated air inside the dryer helps evaporate the water from the wet clothes, drying them in the process.
to dry clothes when they are wet