---
schema_version: "1"
id: 4b17cbee4ab611be1b661065547127beb109349063e9f5d7fd7d57ad988bbf80
title: Export a Segment as a CSV File
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/mktg/264-0-0/mc_pers_segment_export_csv.md
canonical_url: https://help.salesforce.com/s/articleView?id=mktg.mc_pers_segment_export_csv.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 90dd3449cf5f7acbe202b6af32fc21857863768eeed9148491f97365c6c4469c
description: Export segment data as a CSV file.
products:
  - Marketing
  - Salesforce Personalization
release: "264"
---
# Export a Segment as a CSV File

Export segment data as a CSV file.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d46172e38">Permissions
              Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d46172e38 ">To export a segment:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d46172e38 ">A role with Segments Create/Edit permissions</td>

          </tr>
        </tbody>
      </table>

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-mktg-mc_personalization-264-0-0-production-enus/16bf1f60-f44c-4260-a56e-f052cfe515a3/images/icon_note.png)

Note Exported segment data is accurate to the time it is exported. Because this data is taken directly from the Personalization database, values can sometimes differ from data displayed in the Personalization interface.

1. From the main navigation, select **User Segments** | **User Segments**.
2. Double-click the segment you want to export.
3. Click **Export**.
4. From the dialog that appears, select an option from the **Custom Fields** section:
    
    <table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
            <colgroup>
              <col style="width:28.901734104046245%">
              <col style="width:71.09826589595376%">
            </colgroup>
            <thead class="slds-text-title_caps ">
              <tr class="">
                <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d46172e112">Option</th>
                <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d46172e115">Description</th>
              </tr>
            </thead>
            <tbody>
              <tr class="">
                <td data-label="Option" class="slds-cell-wrap" style="vertical-align:top;" headers="d46172e112 ">Include all custom fields</td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d46172e115 ">
                  <p>Includes all custom user profile attributes in the exported
                    file.</p>
                  <p style="margin-bottom:0;">To view the user profile attributes, select <span class="menucascade"><strong class="uicontrol">Settings </strong> | <strong class="uicontrol"> Attributes</strong></span> from the main navigation.</p>
                </td>

              </tr>
              <tr class="">
                <td data-label="Option" class="slds-cell-wrap" style="vertical-align:top;" headers="d46172e112 ">Exclude all custom fields</td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d46172e115 ">Excludes custom fields from the exported file. The Personalization
                  system includes only built-in user attributes, such as userId and
                  segment rule conditions, as columns in the exported file.</td>

              </tr>
              <tr class="">
                <td data-label="Option" class="slds-cell-wrap" style="vertical-align:top;" headers="d46172e112 ">Include only specific custom fields</td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d46172e115 ">Includes only the custom user profile attributes you select from
                  the dropdown that appears. If you select this option and don’t choose
                  additional attributes, the Personalization system excludes all custom
                  attributes in the exported file.</td>

              </tr>
            </tbody>
          </table>
5. Select an option from the **Built-In User Fields** section:
    
     
    | Option | Description |
    | --- | --- |
    | Include all built in user fields | Includes all built-in fields, such as userId, emailAddress, displayName, firstActivity, lastActivity, engagementScore, and segmentMemberships, in the exported file. |
    | Exclude all built-in user fields | Excludes all built-in fields except the userId. |
    | Include only specific built-in fields | Includes only the built-in user fields you select from the dropdown that appears. If you select this option and don’t choose additional fields, the Personalization system includes only the userId (and accountName if your dataset has accounts enabled) in the exported file. |
6. To include segment membership information, select **Include segment membership**.
    1. Select an option from the **Export Format** section:
        
         
        | Option | Description |
        | --- | --- |
        | Single column named “filtermemberships” | Rows contain segment names denoting user membership. |
        | Multicolumn | Each column heading corresponds to a segment name, and rows contain “yes” or “no” to denote membership in a segment. |
    2. Select an option from the **Filter Options** section:
        
         
        | Option | Description |
        | --- | --- |
        | Include all segments | Includes all other segments that the users in this segment are members of. |
        | Include only specific segments | Includes only segments that you select from the dropdown that appears. |
7. To exclude anonymous users, select **Exclude anonymous users from export**.
8. Click **Start Export**.