Use a plugin like Export Users to CSV. Go to the Users section in your WordPress dashboard and select the users you want to export. Then, click on the Export Users button, and the plugin will generate a CSV file with the selected user data.