<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.25.4</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>266</ContextCount>
  <ElementCount>283</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>72</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>7</UnitCount>
  <MyReports>
    <Report instance="unfi-20260131.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-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>9952151 - Statement - CONDENSED CONSOLIDATED BALANCE SHEETS (unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSunaudited</Role>
      <ShortName>CONDENSED CONSOLIDATED BALANCE SHEETS (unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>9952152 - Statement - CONDENSED CONSOLIDATED BALANCE SHEETS (unaudited) (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSunauditedParenthetical</Role>
      <ShortName>CONDENSED CONSOLIDATED BALANCE SHEETS (unaudited) (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>9952153 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF OPERATIONS (unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONSunaudited</Role>
      <ShortName>CONDENSED CONSOLIDATED STATEMENTS OF OPERATIONS (unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>9952154 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME (LOSS) (unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSSunaudited</Role>
      <ShortName>CONDENSED CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME (LOSS) (unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>9952155 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME (LOSS) (unaudited) (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMELOSSunauditedParenthetical</Role>
      <ShortName>CONDENSED CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME (LOSS) (unaudited) (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>9952156 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF STOCKHOLDERS' EQUITY (unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITYunaudited</Role>
      <ShortName>CONDENSED CONSOLIDATED STATEMENTS OF STOCKHOLDERS' EQUITY (unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>9952157 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS (unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWSunaudited</Role>
      <ShortName>CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS (unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.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>9</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.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>10</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.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>11</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.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>12</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>9952162 - Disclosure - ASSET IMPAIRMENT CHARGES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/ASSETIMPAIRMENTCHARGES</Role>
      <ShortName>ASSET IMPAIRMENT CHARGES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.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>14</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.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>15</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.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>16</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.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>17</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>9952167 - Disclosure - COMPREHENSIVE LOSS AND ACCUMULATED OTHER COMPREHENSIVE LOSS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/COMPREHENSIVELOSSANDACCUMULATEDOTHERCOMPREHENSIVELOSS</Role>
      <ShortName>COMPREHENSIVE LOSS AND ACCUMULATED OTHER COMPREHENSIVE LOSS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>9952168 - Disclosure - BENEFIT PLANS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/BENEFITPLANS</Role>
      <ShortName>BENEFIT PLANS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>9952169 - Disclosure - INCOME TAXES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/INCOMETAXES</Role>
      <ShortName>INCOME TAXES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>9952170 - Disclosure - EARNINGS (LOSS) PER SHARE</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/EARNINGSLOSSPERSHARE</Role>
      <ShortName>EARNINGS (LOSS) PER SHARE</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>9952171 - Disclosure - BUSINESS SEGMENTS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/BUSINESSSEGMENTS</Role>
      <ShortName>BUSINESS SEGMENTS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>9952172 - 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>23</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.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>24</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.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>25</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>9955512 - 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>26</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>9955513 - 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>27</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>9955514 - 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>28</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>9955515 - 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>29</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>9955516 - 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>30</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>9955517 - 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>31</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>9955518 - Disclosure - COMPREHENSIVE LOSS AND ACCUMULATED OTHER COMPREHENSIVE LOSS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/COMPREHENSIVELOSSANDACCUMULATEDOTHERCOMPREHENSIVELOSSTables</Role>
      <ShortName>COMPREHENSIVE LOSS AND ACCUMULATED OTHER COMPREHENSIVE LOSS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.unfi.com/role/COMPREHENSIVELOSSANDACCUMULATEDOTHERCOMPREHENSIVELOSS</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>9955519 - 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>33</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>9955520 - Disclosure - EARNINGS (LOSS) PER SHARE (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/EARNINGSLOSSPERSHARETables</Role>
      <ShortName>EARNINGS (LOSS) PER SHARE (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.unfi.com/role/EARNINGSLOSSPERSHARE</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>9955521 - 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>35</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>9955522 - Disclosure - SIGNIFICANT ACCOUNTING POLICIES (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/SIGNIFICANTACCOUNTINGPOLICIESDetails</Role>
      <ShortName>SIGNIFICANT ACCOUNTING POLICIES (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.unfi.com/role/SIGNIFICANTACCOUNTINGPOLICIESPolicies</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>9955523 - Disclosure - REVENUE RECOGNITION - Accounts Receivable (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/REVENUERECOGNITIONAccountsReceivableDetails</Role>
      <ShortName>REVENUE RECOGNITION - Accounts Receivable (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>37</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>9955524 - 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>38</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>9955525 - 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>39</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>9955526 - 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>40</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>9955527 - 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>41</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>9955528 - Disclosure - ASSET IMPAIRMENT CHARGES (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/ASSETIMPAIRMENTCHARGESDetails</Role>
      <ShortName>ASSET IMPAIRMENT CHARGES (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.unfi.com/role/ASSETIMPAIRMENTCHARGES</ParentRole>
      <Position>42</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>9955529 - 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>43</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>9955530 - 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>44</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>9955531 - 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>45</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>9955532 - 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>46</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>9955533 - Disclosure - FAIR VALUE MEASUREMENTS OF FINANCIAL INSTRUMENTS - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/FAIRVALUEMEASUREMENTSOFFINANCIALINSTRUMENTSNarrativeDetails</Role>
      <ShortName>FAIR VALUE MEASUREMENTS OF FINANCIAL INSTRUMENTS - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.unfi.com/role/FAIRVALUEMEASUREMENTSOFFINANCIALINSTRUMENTSTables</ParentRole>
      <Position>47</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>9955534 - 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>48</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>9955535 - 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>49</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>9955536 - 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>50</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>9955537 - Disclosure - LONG-TERM DEBT - Schedule of Debt (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/LONGTERMDEBTScheduleofDebtDetails</Role>
      <ShortName>LONG-TERM DEBT - Schedule of Debt (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>9955538 - 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>52</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>9955539 - 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>53</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>9955540 - 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>54</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>9955541 - 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>55</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>9955542 - 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>56</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>9955543 - Disclosure - COMPREHENSIVE LOSS AND ACCUMULATED OTHER COMPREHENSIVE LOSS - Changes by Component (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/COMPREHENSIVELOSSANDACCUMULATEDOTHERCOMPREHENSIVELOSSChangesbyComponentDetails</Role>
      <ShortName>COMPREHENSIVE LOSS AND ACCUMULATED OTHER COMPREHENSIVE LOSS - Changes by Component (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>9955544 - Disclosure - COMPREHENSIVE LOSS AND ACCUMULATED OTHER COMPREHENSIVE LOSS - Reclassification out of Other Comprehensive Loss (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/COMPREHENSIVELOSSANDACCUMULATEDOTHERCOMPREHENSIVELOSSReclassificationoutofOtherComprehensiveLossDetails</Role>
      <ShortName>COMPREHENSIVE LOSS AND ACCUMULATED OTHER COMPREHENSIVE LOSS - Reclassification out of Other Comprehensive Loss (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>9955545 - Disclosure - COMPREHENSIVE LOSS AND ACCUMULATED OTHER COMPREHENSIVE LOSS - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/COMPREHENSIVELOSSANDACCUMULATEDOTHERCOMPREHENSIVELOSSNarrativeDetails</Role>
      <ShortName>COMPREHENSIVE LOSS AND ACCUMULATED OTHER COMPREHENSIVE LOSS - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.unfi.com/role/COMPREHENSIVELOSSANDACCUMULATEDOTHERCOMPREHENSIVELOSSTables</ParentRole>
      <Position>59</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>9955546 - Disclosure - BENEFIT PLANS - Net Periodic Benefit (Income) Costs for Defined Benefit Pension Plans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/BENEFITPLANSNetPeriodicBenefitIncomeCostsforDefinedBenefitPensionPlansDetails</Role>
      <ShortName>BENEFIT PLANS - Net Periodic Benefit (Income) Costs for Defined Benefit Pension Plans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>9955547 - 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>61</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>9955548 - Disclosure - INCOME TAXES (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/INCOMETAXESDetails</Role>
      <ShortName>INCOME TAXES (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.unfi.com/role/INCOMETAXES</ParentRole>
      <Position>62</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>9955549 - Disclosure - EARNINGS (LOSS) PER SHARE (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/EARNINGSLOSSPERSHAREDetails</Role>
      <ShortName>EARNINGS (LOSS) PER SHARE (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.unfi.com/role/EARNINGSLOSSPERSHARETables</ParentRole>
      <Position>63</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>9955550 - 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>64</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>9955551 - 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>65</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>9955552 - Disclosure - BUSINESS SEGMENTS - Reportable Segments Including Depreciation and Amortization and Payments For Capital Expenditures (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.unfi.com/role/BUSINESSSEGMENTSReportableSegmentsIncludingDepreciationandAmortizationandPaymentsForCapitalExpendituresDetails</Role>
      <ShortName>BUSINESS SEGMENTS - Reportable Segments Including Depreciation and Amortization and Payments For Capital Expenditures (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="unfi-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>9955553 - 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>67</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-Q" isDefinitelyFs="true" isUsgaap="true" original="unfi-20260131.htm">unfi-20260131.htm</File>
    <File>unfi-20260131.xsd</File>
    <File>unfi-20260131_cal.xml</File>
    <File>unfi-20260131_def.xml</File>
    <File>unfi-20260131_lab.xml</File>
    <File>unfi-20260131_pre.xml</File>
  </InputFiles>
  <SupplementalFiles>
    <File>unfi-20260131_g1.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="967">http://fasb.org/us-gaap/2025</BaseTaxonomy>
    <BaseTaxonomy items="30">http://xbrl.sec.gov/dei/2025</BaseTaxonomy>
    <BaseTaxonomy items="4">http://xbrl.sec.gov/ecd/2025</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
