Open the Data Loader.
Click Export. …
Enter your Salesforce username and password, and click Log in.
When you’re logged in, click Next. …
Choose an object. …
Select the CSV file to export the data to. …
Click Next.
Create a SOQL query for the data export.