Log into the admin site
Go to Users & Groups
Click Export These Users to export users displayed by the current filter (and use Modify Filter to change the displayed users)
Click Export All Activated Users to export all users who have an active account in the system.