How to convert a multisite with subfolders to subdomains

When setting up a Wordpress multisite network install, I accidentally set up the network subsites to be added to subfolders instead of subdomains.

Is there a way to convert the entire network of subsites to subdomains instead of subfolders without losing information on the sites? (I've seen a lot of information about moving from subdomains to subfolders but not the other way around.)

Thanks in advance for your help!