Membership user list download

How can I get a .csv file download from all users on the membership list? I want to upload a existing membership list that includes the subscription and levels.