<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.25.2</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>504</ContextCount>
  <ElementCount>634</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>149</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>14</UnitCount>
  <MyReports>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>0000001 - Document - Cover</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/Cover</Role>
      <ShortName>Cover</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>0000002 - Document - Audit Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/AuditInformation</Role>
      <ShortName>Audit Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>9952151 - Statement - CONSOLIDATED BALANCE SHEETS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/CONSOLIDATEDBALANCESHEETS</Role>
      <ShortName>CONSOLIDATED BALANCE SHEETS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>9952152 - Statement - CONSOLIDATED BALANCE SHEETS (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/CONSOLIDATEDBALANCESHEETSParenthetical</Role>
      <ShortName>CONSOLIDATED BALANCE SHEETS (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>9952153 - Statement - CONSOLIDATED STATEMENTS OF OPERATIONS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/CONSOLIDATEDSTATEMENTSOFOPERATIONS</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF OPERATIONS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>9952154 - Statement - CONSOLIDATED STATEMENTS OF COMPREHENSIVE (LOSS) INCOME</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVELOSSINCOME</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF COMPREHENSIVE (LOSS) INCOME</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>9952155 - Statement - CONSOLIDATED STATEMENTS OF COMPREHENSIVE (LOSS) INCOME (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVELOSSINCOMEParenthetical</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF COMPREHENSIVE (LOSS) INCOME (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>9952156 - Statement - CONSOLIDATED STATEMENTS OF STOCKHOLDERS' EQUITY</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/CONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITY</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF STOCKHOLDERS' EQUITY</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>9952157 - Statement - CONSOLIDATED STATEMENTS OF CASH FLOWS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWS</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF CASH FLOWS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>9952158 - Disclosure - SIGNIFICANT ACCOUNTING POLICIES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/SIGNIFICANTACCOUNTINGPOLICIES</Role>
      <ShortName>SIGNIFICANT ACCOUNTING POLICIES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>9952159 - Disclosure - RECENTLY ADOPTED AND ISSUED ACCOUNTING PRONOUNCEMENTS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/RECENTLYADOPTEDANDISSUEDACCOUNTINGPRONOUNCEMENTS</Role>
      <ShortName>RECENTLY ADOPTED AND ISSUED ACCOUNTING PRONOUNCEMENTS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>9952160 - Disclosure - REVENUE RECOGNITION</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/REVENUERECOGNITION</Role>
      <ShortName>REVENUE RECOGNITION</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>9952161 - Disclosure - RESTRUCTURING, ACQUISITION AND INTEGRATION RELATED EXPENSES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/RESTRUCTURINGACQUISITIONANDINTEGRATIONRELATEDEXPENSES</Role>
      <ShortName>RESTRUCTURING, ACQUISITION AND INTEGRATION RELATED EXPENSES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>9952162 - Disclosure - PROPERTY AND EQUIPMENT, NET</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/PROPERTYANDEQUIPMENTNET</Role>
      <ShortName>PROPERTY AND EQUIPMENT, NET</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>9952163 - Disclosure - GOODWILL AND INTANGIBLE ASSETS, NET</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/GOODWILLANDINTANGIBLEASSETSNET</Role>
      <ShortName>GOODWILL AND INTANGIBLE ASSETS, NET</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>9952164 - Disclosure - FAIR VALUE MEASUREMENTS OF FINANCIAL INSTRUMENTS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/FAIRVALUEMEASUREMENTSOFFINANCIALINSTRUMENTS</Role>
      <ShortName>FAIR VALUE MEASUREMENTS OF FINANCIAL INSTRUMENTS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>9952165 - Disclosure - DERIVATIVES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/DERIVATIVES</Role>
      <ShortName>DERIVATIVES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>9952166 - Disclosure - LONG-TERM DEBT</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/LONGTERMDEBT</Role>
      <ShortName>LONG-TERM DEBT</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>9952167 - Disclosure - COMPREHENSIVE (LOSS) INCOME AND ACCUMULATED OTHER COMPREHENSIVE LOSS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/COMPREHENSIVELOSSINCOMEANDACCUMULATEDOTHERCOMPREHENSIVELOSS</Role>
      <ShortName>COMPREHENSIVE (LOSS) INCOME AND ACCUMULATED OTHER COMPREHENSIVE LOSS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>9952168 - Disclosure - LEASES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/LEASES</Role>
      <ShortName>LEASES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>9952169 - Disclosure - SHARE-BASED AWARDS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/SHAREBASEDAWARDS</Role>
      <ShortName>SHARE-BASED AWARDS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>9952170 - Disclosure - BENEFIT PLANS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/BENEFITPLANS</Role>
      <ShortName>BENEFIT PLANS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>9952171 - Disclosure - INCOME TAXES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/INCOMETAXES</Role>
      <ShortName>INCOME TAXES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>9952172 - Disclosure - (LOSS) EARNINGS PER SHARE</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/LOSSEARNINGSPERSHARE</Role>
      <ShortName>(LOSS) EARNINGS PER SHARE</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>9952173 - Disclosure - BUSINESS SEGMENTS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/BUSINESSSEGMENTS</Role>
      <ShortName>BUSINESS SEGMENTS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>9952174 - Disclosure - COMMITMENTS, CONTINGENCIES AND OFF-BALANCE SHEET ARRANGEMENTS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/COMMITMENTSCONTINGENCIESANDOFFBALANCESHEETARRANGEMENTS</Role>
      <ShortName>COMMITMENTS, CONTINGENCIES AND OFF-BALANCE SHEET ARRANGEMENTS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>995445 - Disclosure - Insider Trading Arrangements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements</Role>
      <ShortName>Insider Trading Arrangements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>27</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>995447 - Disclosure - Insider Trading Policies and Procedures</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/InsiderTradingPoliciesProc</Role>
      <ShortName>Insider Trading Policies and Procedures</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>28</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>995550 - Disclosure - Cybersecurity Risk Management and Strategy Disclosure</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure</Role>
      <ShortName>Cybersecurity Risk Management and Strategy Disclosure</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>29</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>9955511 - Disclosure - SIGNIFICANT ACCOUNTING POLICIES (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/SIGNIFICANTACCOUNTINGPOLICIESPolicies</Role>
      <ShortName>SIGNIFICANT ACCOUNTING POLICIES (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <Position>30</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>9955512 - Disclosure - SIGNIFICANT ACCOUNTING POLICIES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/SIGNIFICANTACCOUNTINGPOLICIESTables</Role>
      <ShortName>SIGNIFICANT ACCOUNTING POLICIES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.unfi.com/role/SIGNIFICANTACCOUNTINGPOLICIES</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>9955513 - Disclosure - REVENUE RECOGNITION (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/REVENUERECOGNITIONTables</Role>
      <ShortName>REVENUE RECOGNITION (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.unfi.com/role/REVENUERECOGNITION</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>9955514 - Disclosure - RESTRUCTURING, ACQUISITION AND INTEGRATION RELATED EXPENSES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/RESTRUCTURINGACQUISITIONANDINTEGRATIONRELATEDEXPENSESTables</Role>
      <ShortName>RESTRUCTURING, ACQUISITION AND INTEGRATION RELATED EXPENSES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.unfi.com/role/RESTRUCTURINGACQUISITIONANDINTEGRATIONRELATEDEXPENSES</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>9955515 - Disclosure - PROPERTY AND EQUIPMENT, NET (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/PROPERTYANDEQUIPMENTNETTables</Role>
      <ShortName>PROPERTY AND EQUIPMENT, NET (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.unfi.com/role/PROPERTYANDEQUIPMENTNET</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>9955516 - Disclosure - GOODWILL AND INTANGIBLE ASSETS, NET (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/GOODWILLANDINTANGIBLEASSETSNETTables</Role>
      <ShortName>GOODWILL AND INTANGIBLE ASSETS, NET (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.unfi.com/role/GOODWILLANDINTANGIBLEASSETSNET</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>9955517 - Disclosure - FAIR VALUE MEASUREMENTS OF FINANCIAL INSTRUMENTS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/FAIRVALUEMEASUREMENTSOFFINANCIALINSTRUMENTSTables</Role>
      <ShortName>FAIR VALUE MEASUREMENTS OF FINANCIAL INSTRUMENTS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.unfi.com/role/FAIRVALUEMEASUREMENTSOFFINANCIALINSTRUMENTS</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>9955518 - Disclosure - DERIVATIVES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/DERIVATIVESTables</Role>
      <ShortName>DERIVATIVES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.unfi.com/role/DERIVATIVES</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>9955519 - Disclosure - LONG-TERM DEBT (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/LONGTERMDEBTTables</Role>
      <ShortName>LONG-TERM DEBT (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.unfi.com/role/LONGTERMDEBT</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>9955520 - Disclosure - COMPREHENSIVE (LOSS) INCOME AND ACCUMULATED OTHER COMPREHENSIVE LOSS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/COMPREHENSIVELOSSINCOMEANDACCUMULATEDOTHERCOMPREHENSIVELOSSTables</Role>
      <ShortName>COMPREHENSIVE (LOSS) INCOME AND ACCUMULATED OTHER COMPREHENSIVE LOSS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.unfi.com/role/COMPREHENSIVELOSSINCOMEANDACCUMULATEDOTHERCOMPREHENSIVELOSS</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>9955521 - Disclosure - LEASES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/LEASESTables</Role>
      <ShortName>LEASES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.unfi.com/role/LEASES</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>9955522 - Disclosure - SHARE-BASED AWARDS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/SHAREBASEDAWARDSTables</Role>
      <ShortName>SHARE-BASED AWARDS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.unfi.com/role/SHAREBASEDAWARDS</ParentRole>
      <Position>41</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>9955523 - Disclosure - BENEFIT PLANS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/BENEFITPLANSTables</Role>
      <ShortName>BENEFIT PLANS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.unfi.com/role/BENEFITPLANS</ParentRole>
      <Position>42</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>9955524 - Disclosure - INCOME TAXES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/INCOMETAXESTables</Role>
      <ShortName>INCOME TAXES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.unfi.com/role/INCOMETAXES</ParentRole>
      <Position>43</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>9955525 - Disclosure - (LOSS) EARNINGS PER SHARE (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/LOSSEARNINGSPERSHARETables</Role>
      <ShortName>(LOSS) EARNINGS PER SHARE (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.unfi.com/role/LOSSEARNINGSPERSHARE</ParentRole>
      <Position>44</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>9955526 - Disclosure - BUSINESS SEGMENTS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/BUSINESSSEGMENTSTables</Role>
      <ShortName>BUSINESS SEGMENTS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.unfi.com/role/BUSINESSSEGMENTS</ParentRole>
      <Position>45</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>9955527 - Disclosure - SIGNIFICANT ACCOUNTING POLICIES - Cost of Sales (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/SIGNIFICANTACCOUNTINGPOLICIESCostofSalesDetails</Role>
      <ShortName>SIGNIFICANT ACCOUNTING POLICIES - Cost of Sales (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>9955528 - Disclosure - SIGNIFICANT ACCOUNTING POLICIES - Cash and Cash Equivalents (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/SIGNIFICANTACCOUNTINGPOLICIESCashandCashEquivalentsDetails</Role>
      <ShortName>SIGNIFICANT ACCOUNTING POLICIES - Cash and Cash Equivalents (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>9955529 - Disclosure - SIGNIFICANT ACCOUNTING POLICIES - Inventories, Net (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/SIGNIFICANTACCOUNTINGPOLICIESInventoriesNetDetails</Role>
      <ShortName>SIGNIFICANT ACCOUNTING POLICIES - Inventories, Net (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>9955530 - Disclosure - SIGNIFICANT ACCOUNTING POLICIES - Cloud Computing Arrangements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/SIGNIFICANTACCOUNTINGPOLICIESCloudComputingArrangementsDetails</Role>
      <ShortName>SIGNIFICANT ACCOUNTING POLICIES - Cloud Computing Arrangements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>9955531 - Disclosure - SIGNIFICANT ACCOUNTING POLICIES - Intangible Assets With Definite Lives (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/SIGNIFICANTACCOUNTINGPOLICIESIntangibleAssetsWithDefiniteLivesDetails</Role>
      <ShortName>SIGNIFICANT ACCOUNTING POLICIES - Intangible Assets With Definite Lives (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>9955532 - Disclosure - SIGNIFICANT ACCOUNTING POLICIES - Treasury Stock (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/SIGNIFICANTACCOUNTINGPOLICIESTreasuryStockDetails</Role>
      <ShortName>SIGNIFICANT ACCOUNTING POLICIES - Treasury Stock (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>9955533 - Disclosure - SIGNIFICANT ACCOUNTING POLICIES - Self-Insurance Liabilities, Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/SIGNIFICANTACCOUNTINGPOLICIESSelfInsuranceLiabilitiesNarrativeDetails</Role>
      <ShortName>SIGNIFICANT ACCOUNTING POLICIES - Self-Insurance Liabilities, Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>9955534 - Disclosure - SIGNIFICANT ACCOUNTING POLICIES - Changes in Self-Insurance Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/SIGNIFICANTACCOUNTINGPOLICIESChangesinSelfInsuranceLiabilitiesDetails</Role>
      <ShortName>SIGNIFICANT ACCOUNTING POLICIES - Changes in Self-Insurance Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>9955535 - Disclosure - REVENUE RECOGNITION - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/REVENUERECOGNITIONNarrativeDetails</Role>
      <ShortName>REVENUE RECOGNITION - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>9955536 - Disclosure - REVENUE RECOGNITION - Accounts and Notes Receivable (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.unfi.com/role/REVENUERECOGNITIONAccountsandNotesReceivableDetails</Role>
      <ShortName>REVENUE RECOGNITION - Accounts and Notes Receivable (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>9955537 - Disclosure - REVENUE RECOGNITION - Allowance for Uncollectible Receivables (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/REVENUERECOGNITIONAllowanceforUncollectibleReceivablesDetails</Role>
      <ShortName>REVENUE RECOGNITION - Allowance for Uncollectible Receivables (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>9955538 - Disclosure - RESTRUCTURING, ACQUISITION AND INTEGRATION RELATED EXPENSES - Schedule of Expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/RESTRUCTURINGACQUISITIONANDINTEGRATIONRELATEDEXPENSESScheduleofExpenseDetails</Role>
      <ShortName>RESTRUCTURING, ACQUISITION AND INTEGRATION RELATED EXPENSES - Schedule of Expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>9955539 - Disclosure - RESTRUCTURING, ACQUISITION AND INTEGRATION RELATED EXPENSES - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/RESTRUCTURINGACQUISITIONANDINTEGRATIONRELATEDEXPENSESNarrativeDetails</Role>
      <ShortName>RESTRUCTURING, ACQUISITION AND INTEGRATION RELATED EXPENSES - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.unfi.com/role/RESTRUCTURINGACQUISITIONANDINTEGRATIONRELATEDEXPENSESTables</ParentRole>
      <Position>58</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>9955540 - Disclosure - RESTRUCTURING, ACQUISITION AND INTEGRATION RELATED EXPENSES - Schedule of Restructuring Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/RESTRUCTURINGACQUISITIONANDINTEGRATIONRELATEDEXPENSESScheduleofRestructuringLiabilitiesDetails</Role>
      <ShortName>RESTRUCTURING, ACQUISITION AND INTEGRATION RELATED EXPENSES - Schedule of Restructuring Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>9955541 - Disclosure - PROPERTY AND EQUIPMENT, NET - Property and Equipment, Net (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/PROPERTYANDEQUIPMENTNETPropertyandEquipmentNetDetails</Role>
      <ShortName>PROPERTY AND EQUIPMENT, NET - Property and Equipment, Net (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>9955542 - Disclosure - PROPERTY AND EQUIPMENT, NET - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/PROPERTYANDEQUIPMENTNETNarrativeDetails</Role>
      <ShortName>PROPERTY AND EQUIPMENT, NET - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>9955543 - Disclosure - GOODWILL AND INTANGIBLE ASSETS, NET - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/GOODWILLANDINTANGIBLEASSETSNETNarrativeDetails</Role>
      <ShortName>GOODWILL AND INTANGIBLE ASSETS, NET - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>9955544 - Disclosure - GOODWILL AND INTANGIBLE ASSETS, NET - Identifiable Intangible Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/GOODWILLANDINTANGIBLEASSETSNETIdentifiableIntangibleAssetsDetails</Role>
      <ShortName>GOODWILL AND INTANGIBLE ASSETS, NET - Identifiable Intangible Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>9955545 - Disclosure - GOODWILL AND INTANGIBLE ASSETS, NET - Estimated Future Amortization Expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/GOODWILLANDINTANGIBLEASSETSNETEstimatedFutureAmortizationExpenseDetails</Role>
      <ShortName>GOODWILL AND INTANGIBLE ASSETS, NET - Estimated Future Amortization Expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>64</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>9955546 - Disclosure - FAIR VALUE MEASUREMENTS OF FINANCIAL INSTRUMENTS - Recurring Fair Value Measurements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/FAIRVALUEMEASUREMENTSOFFINANCIALINSTRUMENTSRecurringFairValueMeasurementsDetails</Role>
      <ShortName>FAIR VALUE MEASUREMENTS OF FINANCIAL INSTRUMENTS - Recurring Fair Value Measurements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>9955547 - Disclosure - FAIR VALUE MEASUREMENTS OF FINANCIAL INSTRUMENTS - Fair Value Estimates (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/FAIRVALUEMEASUREMENTSOFFINANCIALINSTRUMENTSFairValueEstimatesDetails</Role>
      <ShortName>FAIR VALUE MEASUREMENTS OF FINANCIAL INSTRUMENTS - Fair Value Estimates (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>9955548 - Disclosure - DERIVATIVES - Outstanding Swap Contracts (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/DERIVATIVESOutstandingSwapContractsDetails</Role>
      <ShortName>DERIVATIVES - Outstanding Swap Contracts (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>67</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>9955549 - Disclosure - DERIVATIVES - Interest Rate Swap Contracts (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/DERIVATIVESInterestRateSwapContractsDetails</Role>
      <ShortName>DERIVATIVES - Interest Rate Swap Contracts (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>68</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>9955550 - Disclosure - LONG-TERM DEBT - Schedule of Long-term Debt (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/LONGTERMDEBTScheduleofLongtermDebtDetails</Role>
      <ShortName>LONG-TERM DEBT - Schedule of Long-term Debt (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>69</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>9955551 - Disclosure - LONG-TERM DEBT - Schedule of Maturities of Long-term Debt (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/LONGTERMDEBTScheduleofMaturitiesofLongtermDebtDetails</Role>
      <ShortName>LONG-TERM DEBT - Schedule of Maturities of Long-term Debt (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>70</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>9955552 - Disclosure - LONG-TERM DEBT - Term Loan Facility (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/LONGTERMDEBTTermLoanFacilityDetails</Role>
      <ShortName>LONG-TERM DEBT - Term Loan Facility (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>71</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>9955553 - Disclosure - LONG-TERM DEBT - ABL Credit Facility (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/LONGTERMDEBTABLCreditFacilityDetails</Role>
      <ShortName>LONG-TERM DEBT - ABL Credit Facility (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>72</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>9955554 - Disclosure - LONG-TERM DEBT - Applicable Margins and Fees (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/LONGTERMDEBTApplicableMarginsandFeesDetails</Role>
      <ShortName>LONG-TERM DEBT - Applicable Margins and Fees (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>73</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>9955555 - Disclosure - LONG-TERM DEBT - Balance Sheet Assets Securing Outstanding Obligations (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/LONGTERMDEBTBalanceSheetAssetsSecuringOutstandingObligationsDetails</Role>
      <ShortName>LONG-TERM DEBT - Balance Sheet Assets Securing Outstanding Obligations (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>74</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>9955556 - Disclosure - LONG-TERM DEBT - Unused Credit under the ABL Facilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/LONGTERMDEBTUnusedCreditundertheABLFacilitiesDetails</Role>
      <ShortName>LONG-TERM DEBT - Unused Credit under the ABL Facilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>75</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>9955557 - Disclosure - LONG-TERM DEBT - Senior Notes (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.unfi.com/role/LONGTERMDEBTSeniorNotesDetails</Role>
      <ShortName>LONG-TERM DEBT - Senior Notes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>76</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>9955558 - Disclosure - LONG-TERM DEBT - Debt Covenants (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/LONGTERMDEBTDebtCovenantsDetails</Role>
      <ShortName>LONG-TERM DEBT - Debt Covenants (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>77</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>9955559 - Disclosure - COMPREHENSIVE (LOSS) INCOME AND ACCUMULATED OTHER COMPREHENSIVE LOSS - Changes by Component (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/COMPREHENSIVELOSSINCOMEANDACCUMULATEDOTHERCOMPREHENSIVELOSSChangesbyComponentDetails</Role>
      <ShortName>COMPREHENSIVE (LOSS) INCOME AND ACCUMULATED OTHER COMPREHENSIVE LOSS - Changes by Component (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.unfi.com/role/COMPREHENSIVELOSSINCOMEANDACCUMULATEDOTHERCOMPREHENSIVELOSSTables</ParentRole>
      <Position>78</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>9955560 - Disclosure - COMPREHENSIVE (LOSS) INCOME AND ACCUMULATED OTHER COMPREHENSIVE LOSS - Reclassification out of Other Comprehensive Loss (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/COMPREHENSIVELOSSINCOMEANDACCUMULATEDOTHERCOMPREHENSIVELOSSReclassificationoutofOtherComprehensiveLossDetails</Role>
      <ShortName>COMPREHENSIVE (LOSS) INCOME AND ACCUMULATED OTHER COMPREHENSIVE LOSS - Reclassification out of Other Comprehensive Loss (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.unfi.com/role/COMPREHENSIVELOSSINCOMEANDACCUMULATEDOTHERCOMPREHENSIVELOSSTables</ParentRole>
      <Position>79</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>9955561 - Disclosure - LEASES - Lease Assets and Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/LEASESLeaseAssetsandLiabilitiesDetails</Role>
      <ShortName>LEASES - Lease Assets and Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>80</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R81.htm</HtmlFileName>
      <LongName>9955562 - Disclosure - LEASES - Lease Cost (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/LEASESLeaseCostDetails</Role>
      <ShortName>LEASES - Lease Cost (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>81</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R82.htm</HtmlFileName>
      <LongName>9955563 - Disclosure - LEASES - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/LEASESNarrativeDetails</Role>
      <ShortName>LEASES - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>82</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R83.htm</HtmlFileName>
      <LongName>9955564 - Disclosure - LEASES - Future Minimum Lease Payments and Lease Receipts (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/LEASESFutureMinimumLeasePaymentsandLeaseReceiptsDetails</Role>
      <ShortName>LEASES - Future Minimum Lease Payments and Lease Receipts (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>83</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R84.htm</HtmlFileName>
      <LongName>9955565 - Disclosure - LEASES - Schedule of Other Information Related to Leases (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/LEASESScheduleofOtherInformationRelatedtoLeasesDetails</Role>
      <ShortName>LEASES - Schedule of Other Information Related to Leases (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>84</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R85.htm</HtmlFileName>
      <LongName>9955566 - Disclosure - SHARE-BASED AWARDS - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/SHAREBASEDAWARDSNarrativeDetails</Role>
      <ShortName>SHARE-BASED AWARDS - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>85</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R86.htm</HtmlFileName>
      <LongName>9955567 - Disclosure - SHARE-BASED AWARDS - Share-Based Compensation Expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/SHAREBASEDAWARDSShareBasedCompensationExpenseDetails</Role>
      <ShortName>SHARE-BASED AWARDS - Share-Based Compensation Expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>86</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R87.htm</HtmlFileName>
      <LongName>9955568 - Disclosure - SHARE-BASED AWARDS - Restricted Stock Awards (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/SHAREBASEDAWARDSRestrictedStockAwardsDetails</Role>
      <ShortName>SHARE-BASED AWARDS - Restricted Stock Awards (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>87</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R88.htm</HtmlFileName>
      <LongName>9955569 - Disclosure - SHARE-BASED AWARDS - Performance-Based Share Awards (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/SHAREBASEDAWARDSPerformanceBasedShareAwardsDetails</Role>
      <ShortName>SHARE-BASED AWARDS - Performance-Based Share Awards (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>88</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R89.htm</HtmlFileName>
      <LongName>9955570 - Disclosure - SHARE-BASED AWARDS - Stock Options (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/SHAREBASEDAWARDSStockOptionsDetails</Role>
      <ShortName>SHARE-BASED AWARDS - Stock Options (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>89</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R90.htm</HtmlFileName>
      <LongName>9955571 - Disclosure - BENEFIT PLANS - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/BENEFITPLANSNarrativeDetails</Role>
      <ShortName>BENEFIT PLANS - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>90</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R91.htm</HtmlFileName>
      <LongName>9955572 - Disclosure - BENEFIT PLANS - Defined Benefit Pension Plans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/BENEFITPLANSDefinedBenefitPensionPlansDetails</Role>
      <ShortName>BENEFIT PLANS - Defined Benefit Pension Plans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>91</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R92.htm</HtmlFileName>
      <LongName>9955573 - Disclosure - BENEFIT PLANS - Fair Value of Plan Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/BENEFITPLANSFairValueofPlanAssetsDetails</Role>
      <ShortName>BENEFIT PLANS - Fair Value of Plan Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>92</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R93.htm</HtmlFileName>
      <LongName>9955574 - Disclosure - BENEFIT PLANS - Net Periodic Benefit (Income) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/BENEFITPLANSNetPeriodicBenefitIncomeDetails</Role>
      <ShortName>BENEFIT PLANS - Net Periodic Benefit (Income) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>93</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R94.htm</HtmlFileName>
      <LongName>9955575 - Disclosure - BENEFIT PLANS - Amounts Recognized in Consolidated Balance Sheets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/BENEFITPLANSAmountsRecognizedinConsolidatedBalanceSheetsDetails</Role>
      <ShortName>BENEFIT PLANS - Amounts Recognized in Consolidated Balance Sheets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>94</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R95.htm</HtmlFileName>
      <LongName>9955576 - Disclosure - BENEFIT PLANS - Benefit Plan Assumptions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/BENEFITPLANSBenefitPlanAssumptionsDetails</Role>
      <ShortName>BENEFIT PLANS - Benefit Plan Assumptions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>95</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R96.htm</HtmlFileName>
      <LongName>9955577 - Disclosure - BENEFIT PLANS - Allocation of Pension Plan Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/BENEFITPLANSAllocationofPensionPlanAssetsDetails</Role>
      <ShortName>BENEFIT PLANS - Allocation of Pension Plan Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>96</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R97.htm</HtmlFileName>
      <LongName>9955578 - Disclosure - BENEFIT PLANS - Fair Value of Defined Benefit Pension Plans Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/BENEFITPLANSFairValueofDefinedBenefitPensionPlansAssetsDetails</Role>
      <ShortName>BENEFIT PLANS - Fair Value of Defined Benefit Pension Plans Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>97</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R98.htm</HtmlFileName>
      <LongName>9955579 - Disclosure - BENEFIT PLANS - Contributions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/BENEFITPLANSContributionsDetails</Role>
      <ShortName>BENEFIT PLANS - Contributions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>98</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R99.htm</HtmlFileName>
      <LongName>9955580 - Disclosure - BENEFIT PLANS - Estimated Future Benefit Payments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/BENEFITPLANSEstimatedFutureBenefitPaymentsDetails</Role>
      <ShortName>BENEFIT PLANS - Estimated Future Benefit Payments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>99</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R100.htm</HtmlFileName>
      <LongName>9955581 - Disclosure - BENEFIT PLANS - Defined Contribution Plans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/BENEFITPLANSDefinedContributionPlansDetails</Role>
      <ShortName>BENEFIT PLANS - Defined Contribution Plans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>100</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R101.htm</HtmlFileName>
      <LongName>9955582 - Disclosure - BENEFIT PLANS - Post-Employment Benefits (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/BENEFITPLANSPostEmploymentBenefitsDetails</Role>
      <ShortName>BENEFIT PLANS - Post-Employment Benefits (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>101</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R102.htm</HtmlFileName>
      <LongName>9955583 - Disclosure - BENEFIT PLANS - Multiemployer Pension Plans, Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/BENEFITPLANSMultiemployerPensionPlansNarrativeDetails</Role>
      <ShortName>BENEFIT PLANS - Multiemployer Pension Plans, Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>102</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R103.htm</HtmlFileName>
      <LongName>9955584 - Disclosure - BENEFIT PLANS - Significant Multiemployer Plans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/BENEFITPLANSSignificantMultiemployerPlansDetails</Role>
      <ShortName>BENEFIT PLANS - Significant Multiemployer Plans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>103</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R104.htm</HtmlFileName>
      <LongName>9955585 - Disclosure - BENEFIT PLANS - Schedule of Collective Bargaining Agreement Dates and Contributions to Each Plan Table (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/BENEFITPLANSScheduleofCollectiveBargainingAgreementDatesandContributionstoEachPlanTableDetails</Role>
      <ShortName>BENEFIT PLANS - Schedule of Collective Bargaining Agreement Dates and Contributions to Each Plan Table (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>104</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R105.htm</HtmlFileName>
      <LongName>9955586 - Disclosure - BENEFIT PLANS - Multiemployer Benefit Plans Other than Pensions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/BENEFITPLANSMultiemployerBenefitPlansOtherthanPensionsDetails</Role>
      <ShortName>BENEFIT PLANS - Multiemployer Benefit Plans Other than Pensions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>105</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R106.htm</HtmlFileName>
      <LongName>9955587 - Disclosure - BENEFIT PLANS - Collective Bargaining Agreements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/BENEFITPLANSCollectiveBargainingAgreementsDetails</Role>
      <ShortName>BENEFIT PLANS - Collective Bargaining Agreements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>106</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R107.htm</HtmlFileName>
      <LongName>9955588 - Disclosure - INCOME TAXES - Income Tax (Benefit) Expense, Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/INCOMETAXESIncomeTaxBenefitExpenseNarrativeDetails</Role>
      <ShortName>INCOME TAXES - Income Tax (Benefit) Expense, Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>107</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R108.htm</HtmlFileName>
      <LongName>9955589 - Disclosure - INCOME TAXES - Income Tax (Benefit) Expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/INCOMETAXESIncomeTaxBenefitExpenseDetails</Role>
      <ShortName>INCOME TAXES - Income Tax (Benefit) Expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>108</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R109.htm</HtmlFileName>
      <LongName>9955590 - Disclosure - INCOME TAXES - Federal and State Income Tax (Benefit) Expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/INCOMETAXESFederalandStateIncomeTaxBenefitExpenseDetails</Role>
      <ShortName>INCOME TAXES - Federal and State Income Tax (Benefit) Expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>109</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R110.htm</HtmlFileName>
      <LongName>9955591 - Disclosure - INCOME TAXES - Effective Income Tax Rate Reconciliation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/INCOMETAXESEffectiveIncomeTaxRateReconciliationDetails</Role>
      <ShortName>INCOME TAXES - Effective Income Tax Rate Reconciliation (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>110</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R111.htm</HtmlFileName>
      <LongName>9955592 - Disclosure - INCOME TAXES - Reconciliation of Unrecognized Tax Benefits (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/INCOMETAXESReconciliationofUnrecognizedTaxBenefitsDetails</Role>
      <ShortName>INCOME TAXES - Reconciliation of Unrecognized Tax Benefits (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>111</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R112.htm</HtmlFileName>
      <LongName>9955593 - Disclosure - INCOME TAXES - Uncertain Tax Positions, Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/INCOMETAXESUncertainTaxPositionsNarrativeDetails</Role>
      <ShortName>INCOME TAXES - Uncertain Tax Positions, Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>112</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R113.htm</HtmlFileName>
      <LongName>9955594 - Disclosure - INCOME TAXES - Schedule of Deferred Tax Assets and Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/INCOMETAXESScheduleofDeferredTaxAssetsandLiabilitiesDetails</Role>
      <ShortName>INCOME TAXES - Schedule of Deferred Tax Assets and Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>113</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R114.htm</HtmlFileName>
      <LongName>9955595 - Disclosure - INCOME TAXES - Tax Credits and Valuation Allowances (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/INCOMETAXESTaxCreditsandValuationAllowancesDetails</Role>
      <ShortName>INCOME TAXES - Tax Credits and Valuation Allowances (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>114</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R115.htm</HtmlFileName>
      <LongName>9955596 - Disclosure - INCOME TAXES - Effective Tax Rate (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/INCOMETAXESEffectiveTaxRateDetails</Role>
      <ShortName>INCOME TAXES - Effective Tax Rate (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>115</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R116.htm</HtmlFileName>
      <LongName>9955597 - Disclosure - (LOSS) EARNINGS PER SHARE - (Loss) Earnings per Share Reconciliation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/LOSSEARNINGSPERSHARELossEarningsperShareReconciliationDetails</Role>
      <ShortName>(LOSS) EARNINGS PER SHARE - (Loss) Earnings per Share Reconciliation (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.unfi.com/role/LOSSEARNINGSPERSHARETables</ParentRole>
      <Position>116</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R117.htm</HtmlFileName>
      <LongName>9955598 - Disclosure - BUSINESS SEGMENTS - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/BUSINESSSEGMENTSNarrativeDetails</Role>
      <ShortName>BUSINESS SEGMENTS - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>117</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R118.htm</HtmlFileName>
      <LongName>9955599 - Disclosure - BUSINESS SEGMENTS - Segment Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/BUSINESSSEGMENTSSegmentInformationDetails</Role>
      <ShortName>BUSINESS SEGMENTS - Segment Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>118</Position>
    </Report>
    <Report instance="unfi-20250802.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R119.htm</HtmlFileName>
      <LongName>9955600 - Disclosure - COMMITMENTS, CONTINGENCIES AND OFF-BALANCE SHEET ARRANGEMENTS (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/COMMITMENTSCONTINGENCIESANDOFFBALANCESHEETARRANGEMENTSDetails</Role>
      <ShortName>COMMITMENTS, CONTINGENCIES AND OFF-BALANCE SHEET ARRANGEMENTS (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.unfi.com/role/COMMITMENTSCONTINGENCIESANDOFFBALANCESHEETARRANGEMENTS</ParentRole>
      <Position>119</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File doctype="10-K" isDefinitelyFs="true" isUsgaap="true" original="unfi-20250802.htm">unfi-20250802.htm</File>
    <File>unfi-20250802.xsd</File>
    <File>unfi-20250802_cal.xml</File>
    <File>unfi-20250802_def.xml</File>
    <File>unfi-20250802_lab.xml</File>
    <File>unfi-20250802_pre.xml</File>
  </InputFiles>
  <SupplementalFiles>
    <File>unfi-20250802_g1.jpg</File>
    <File>unfi-20250802_g2.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="1">http://fasb.org/srt/2025</BaseTaxonomy>
    <BaseTaxonomy items="1755">http://fasb.org/us-gaap/2025</BaseTaxonomy>
    <BaseTaxonomy items="16">http://xbrl.sec.gov/cyd/2025</BaseTaxonomy>
    <BaseTaxonomy items="40">http://xbrl.sec.gov/dei/2025</BaseTaxonomy>
    <BaseTaxonomy items="5">http://xbrl.sec.gov/ecd/2025</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
