<?xml version="1.0" encoding="UTF-8"?>

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2026 Workiva-->
<!--r:019e217b-bdc4-7536-b7f9-714a75d6f30b,g:01b152cb-7d11-4b6b-9289-451a2d7a80b7-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:unf="http://unifirst.com/20260530" xmlns:xbrli="http://www.xbrl.org/2003/instance" xmlns:dtr-types="http://www.xbrl.org/dtr/type/2024-01-31" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://unifirst.com/20260530">
  <xs:import namespace="http://fasb.org/srt/2026" schemaLocation="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd"/>
  <xs:import namespace="http://fasb.org/us-gaap/2026" schemaLocation="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd"/>
  <xs:import namespace="http://www.xbrl.org/2003/instance" schemaLocation="http://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd"/>
  <xs:import namespace="http://www.xbrl.org/2003/linkbase" schemaLocation="http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd"/>
  <xs:import namespace="http://www.xbrl.org/dtr/type/2024-01-31" schemaLocation="https://www.xbrl.org/dtr/type/2024-01-31/types.xsd"/>
  <xs:import namespace="http://xbrl.org/2005/xbrldt" schemaLocation="http://www.xbrl.org/2005/xbrldt-2005.xsd"/>
  <xs:import namespace="http://xbrl.sec.gov/dei/2026" schemaLocation="https://xbrl.sec.gov/dei/2026/dei-2026.xsd"/>
  <xs:import namespace="http://xbrl.sec.gov/ecd/2026" schemaLocation="https://xbrl.sec.gov/ecd/2026/ecd-2026.xsd"/>
  <xs:annotation>
    <xs:appinfo>
      <link:linkbaseRef xmlns:xlink="http://www.w3.org/1999/xlink" xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase" xlink:href="unf-20260530_pre.xml" xlink:role="http://www.xbrl.org/2003/role/presentationLinkbaseRef" xlink:type="simple"/>
      <link:linkbaseRef xmlns:xlink="http://www.w3.org/1999/xlink" xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase" xlink:href="unf-20260530_def.xml" xlink:role="http://www.xbrl.org/2003/role/definitionLinkbaseRef" xlink:type="simple"/>
      <link:linkbaseRef xmlns:xlink="http://www.w3.org/1999/xlink" xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase" xlink:href="unf-20260530_lab.xml" xlink:role="http://www.xbrl.org/2003/role/labelLinkbaseRef" xlink:type="simple"/>
      <link:linkbaseRef xmlns:xlink="http://www.w3.org/1999/xlink" xlink:arcrole="http://www.w3.org/1999/xlink/properties/linkbase" xlink:href="unf-20260530_cal.xml" xlink:role="http://www.xbrl.org/2003/role/calculationLinkbaseRef" xlink:type="simple"/>
      <link:roleType id="Cover" roleURI="http://unifirst.com/role/Cover">
        <link:definition>0000001 - Document - Cover</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="ConsolidatedStatementsofIncome" roleURI="http://unifirst.com/role/ConsolidatedStatementsofIncome">
        <link:definition>9952151 - Statement - Consolidated Statements of Income</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="ConsolidatedStatementsofComprehensiveIncome" roleURI="http://unifirst.com/role/ConsolidatedStatementsofComprehensiveIncome">
        <link:definition>9952152 - Statement - Consolidated Statements of Comprehensive Income</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="ConsolidatedBalanceSheets" roleURI="http://unifirst.com/role/ConsolidatedBalanceSheets">
        <link:definition>9952153 - Statement - Consolidated Balance Sheets</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="ConsolidatedBalanceSheetsParenthetical" roleURI="http://unifirst.com/role/ConsolidatedBalanceSheetsParenthetical">
        <link:definition>9952154 - Statement - Consolidated Balance Sheets (Parenthetical)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="ConsolidatedStatementsofShareholdersEquity" roleURI="http://unifirst.com/role/ConsolidatedStatementsofShareholdersEquity">
        <link:definition>9952155 - Statement - Consolidated Statements of Shareholders' Equity</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="ConsolidatedStatementsofShareholdersEquityParentheticals" roleURI="http://unifirst.com/role/ConsolidatedStatementsofShareholdersEquityParentheticals">
        <link:definition>9952156 - Statement - Consolidated Statements of Shareholders' Equity (Parentheticals)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="ConsolidatedStatementsofCashFlows" roleURI="http://unifirst.com/role/ConsolidatedStatementsofCashFlows">
        <link:definition>9952157 - Statement - Consolidated Statements of Cash Flows</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="ConsolidatedStatementsofCashFlowsParentheticals" roleURI="http://unifirst.com/role/ConsolidatedStatementsofCashFlowsParentheticals">
        <link:definition>9952158 - Statement - Consolidated Statements of Cash Flows (Parentheticals)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SummaryofSignificantAccountingPolicies" roleURI="http://unifirst.com/role/SummaryofSignificantAccountingPolicies">
        <link:definition>9952159 - Disclosure - Summary of Significant Accounting Policies</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="RevenueRecognition" roleURI="http://unifirst.com/role/RevenueRecognition">
        <link:definition>9952160 - Disclosure - Revenue Recognition</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Acquisitions" roleURI="http://unifirst.com/role/Acquisitions">
        <link:definition>9952161 - Disclosure - Acquisitions</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="EmployeeBenefitPlans" roleURI="http://unifirst.com/role/EmployeeBenefitPlans">
        <link:definition>9952162 - Disclosure - Employee Benefit Plans</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="IncomePerShare" roleURI="http://unifirst.com/role/IncomePerShare">
        <link:definition>9952163 - Disclosure - Income Per Share</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="Inventories" roleURI="http://unifirst.com/role/Inventories">
        <link:definition>9952164 - Disclosure - Inventories</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="GoodwillandOtherIntangibleAssets" roleURI="http://unifirst.com/role/GoodwillandOtherIntangibleAssets">
        <link:definition>9952165 - Disclosure - Goodwill and Other Intangible Assets</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="AssetRetirementObligations" roleURI="http://unifirst.com/role/AssetRetirementObligations">
        <link:definition>9952166 - Disclosure - Asset Retirement Obligations</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CommitmentsandContingencies" roleURI="http://unifirst.com/role/CommitmentsandContingencies">
        <link:definition>9952167 - Disclosure - Commitments and Contingencies</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="IncomeTaxes" roleURI="http://unifirst.com/role/IncomeTaxes">
        <link:definition>9952168 - Disclosure - Income Taxes</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LongTermDebt" roleURI="http://unifirst.com/role/LongTermDebt">
        <link:definition>9952169 - Disclosure - Long-Term Debt</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="AccumulatedOtherComprehensiveLoss" roleURI="http://unifirst.com/role/AccumulatedOtherComprehensiveLoss">
        <link:definition>9952170 - Disclosure - Accumulated Other Comprehensive Loss</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SegmentReporting" roleURI="http://unifirst.com/role/SegmentReporting">
        <link:definition>9952171 - Disclosure - Segment Reporting</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SharesRepurchasedandDividends" roleURI="http://unifirst.com/role/SharesRepurchasedandDividends">
        <link:definition>9952172 - Disclosure - Shares Repurchased and Dividends</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="RelatedParty" roleURI="http://unifirst.com/role/RelatedParty">
        <link:definition>9952173 - Disclosure - Related Party</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SummaryofSignificantAccountingPoliciesPolicies" roleURI="http://unifirst.com/role/SummaryofSignificantAccountingPoliciesPolicies">
        <link:definition>9955511 - Disclosure - Summary of Significant Accounting Policies (Policies)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="RevenueRecognitionTables" roleURI="http://unifirst.com/role/RevenueRecognitionTables">
        <link:definition>9955512 - Disclosure - Revenue Recognition (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="AcquisitionsTables" roleURI="http://unifirst.com/role/AcquisitionsTables">
        <link:definition>9955513 - Disclosure - Acquisitions (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="IncomePerShareTables" roleURI="http://unifirst.com/role/IncomePerShareTables">
        <link:definition>9955514 - Disclosure - Income Per Share (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="InventoriesTables" roleURI="http://unifirst.com/role/InventoriesTables">
        <link:definition>9955515 - Disclosure - Inventories (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="GoodwillandOtherIntangibleAssetsTables" roleURI="http://unifirst.com/role/GoodwillandOtherIntangibleAssetsTables">
        <link:definition>9955516 - Disclosure - Goodwill and Other Intangible Assets (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="AssetRetirementObligationsTables" roleURI="http://unifirst.com/role/AssetRetirementObligationsTables">
        <link:definition>9955517 - Disclosure - Asset Retirement Obligations (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CommitmentsandContingenciesTables" roleURI="http://unifirst.com/role/CommitmentsandContingenciesTables">
        <link:definition>9955518 - Disclosure - Commitments and Contingencies (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="AccumulatedOtherComprehensiveLossTables" roleURI="http://unifirst.com/role/AccumulatedOtherComprehensiveLossTables">
        <link:definition>9955519 - Disclosure - Accumulated Other Comprehensive Loss (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SegmentReportingTables" roleURI="http://unifirst.com/role/SegmentReportingTables">
        <link:definition>9955520 - Disclosure - Segment Reporting (Tables)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SummaryofSignificantAccountingPoliciesDetails" roleURI="http://unifirst.com/role/SummaryofSignificantAccountingPoliciesDetails">
        <link:definition>9955521 - Disclosure - Summary of Significant Accounting Policies (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="RevenueRecognitionScheduleofTotalRevenueDisaggregatedbySegmentDetails" roleURI="http://unifirst.com/role/RevenueRecognitionScheduleofTotalRevenueDisaggregatedbySegmentDetails">
        <link:definition>9955522 - Disclosure - Revenue Recognition - Schedule of Total Revenue Disaggregated by Segment (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="RevenueRecognitionScheduleofChangeinAllowanceforCreditLossesDetails" roleURI="http://unifirst.com/role/RevenueRecognitionScheduleofChangeinAllowanceforCreditLossesDetails">
        <link:definition>9955523 - Disclosure - Revenue Recognition - Schedule of Change in Allowance for Credit Losses (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="RevenueRecognitionScheduleofDeferredCommissionsDetails" roleURI="http://unifirst.com/role/RevenueRecognitionScheduleofDeferredCommissionsDetails">
        <link:definition>9955524 - Disclosure - Revenue Recognition - Schedule of Deferred Commissions (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="RevenueRecognitionScheduleofAmortizationExpenseRelatedtoDeferredCommissionsDetails" roleURI="http://unifirst.com/role/RevenueRecognitionScheduleofAmortizationExpenseRelatedtoDeferredCommissionsDetails">
        <link:definition>9955525 - Disclosure - Revenue Recognition - Schedule of Amortization Expense Related to Deferred Commissions (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="AcquisitionsNarrativeDetails" roleURI="http://unifirst.com/role/AcquisitionsNarrativeDetails">
        <link:definition>9955526 - Disclosure - Acquisitions - Narrative (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="AcquisitionsScheduleofAcquisitionofBusinessesDetails" roleURI="http://unifirst.com/role/AcquisitionsScheduleofAcquisitionofBusinessesDetails">
        <link:definition>9955527 - Disclosure - Acquisitions - Schedule of Acquisition of Businesses (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="EmployeeBenefitPlansDetails" roleURI="http://unifirst.com/role/EmployeeBenefitPlansDetails">
        <link:definition>9955528 - Disclosure - Employee Benefit Plans (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="IncomePerShareScheduleofComputationofBasicIncomePerShareDetails" roleURI="http://unifirst.com/role/IncomePerShareScheduleofComputationofBasicIncomePerShareDetails">
        <link:definition>9955529 - Disclosure - Income Per Share - Schedule of Computation of Basic Income Per Share (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="IncomePerShareScheduleofComputationofDilutedIncomePerShareDetails" roleURI="http://unifirst.com/role/IncomePerShareScheduleofComputationofDilutedIncomePerShareDetails">
        <link:definition>9955530 - Disclosure - Income Per Share - Schedule of Computation of Diluted Income Per Share (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="InventoriesDetails" roleURI="http://unifirst.com/role/InventoriesDetails">
        <link:definition>9955531 - Disclosure - Inventories (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="GoodwillandOtherIntangibleAssetsScheduleofChangesinCarryingAmountofGoodwillDetails" roleURI="http://unifirst.com/role/GoodwillandOtherIntangibleAssetsScheduleofChangesinCarryingAmountofGoodwillDetails">
        <link:definition>9955532 - Disclosure - Goodwill and Other Intangible Assets - Schedule of Changes in Carrying Amount of Goodwill (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="GoodwillandOtherIntangibleAssetsScheduleofIntangibleAssetsNetDetails" roleURI="http://unifirst.com/role/GoodwillandOtherIntangibleAssetsScheduleofIntangibleAssetsNetDetails">
        <link:definition>9955533 - Disclosure - Goodwill and Other Intangible Assets - Schedule of Intangible Assets, Net (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="AssetRetirementObligationsDetails" roleURI="http://unifirst.com/role/AssetRetirementObligationsDetails">
        <link:definition>9955534 - Disclosure - Asset Retirement Obligations (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CommitmentsandContingenciesNarrativeDetails" roleURI="http://unifirst.com/role/CommitmentsandContingenciesNarrativeDetails">
        <link:definition>9955535 - Disclosure - Commitments and Contingencies - Narrative (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CommitmentsandContingenciesScheduleofChangestoEnvironmentalLiabilitiesDetails" roleURI="http://unifirst.com/role/CommitmentsandContingenciesScheduleofChangestoEnvironmentalLiabilitiesDetails">
        <link:definition>9955536 - Disclosure - Commitments and Contingencies - Schedule of Changes to Environmental Liabilities (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CommitmentsandContingenciesScheduleofAnticipatedPaymentsandInsuranceProceedsofCurrentlyIdentifiedEnvironmentalRemediationLiabilitiesDetails" roleURI="http://unifirst.com/role/CommitmentsandContingenciesScheduleofAnticipatedPaymentsandInsuranceProceedsofCurrentlyIdentifiedEnvironmentalRemediationLiabilitiesDetails">
        <link:definition>9955537 - Disclosure - Commitments and Contingencies - Schedule of Anticipated Payments and Insurance Proceeds of Currently Identified Environmental Remediation Liabilities (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="CommitmentsandContingenciesScheduleofAnticipatedPaymentsandInsuranceProceedsofCurrentlyIdentifiedEnvironmentalRemediationLiabilitiesDetails_1" roleURI="http://unifirst.com/role/CommitmentsandContingenciesScheduleofAnticipatedPaymentsandInsuranceProceedsofCurrentlyIdentifiedEnvironmentalRemediationLiabilitiesDetails_1">
        <link:definition>9955537 - Disclosure - Commitments and Contingencies - Schedule of Anticipated Payments and Insurance Proceeds of Currently Identified Environmental Remediation Liabilities (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="IncomeTaxesDetails" roleURI="http://unifirst.com/role/IncomeTaxesDetails">
        <link:definition>9955538 - Disclosure - Income Taxes (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="LongTermDebtDetails" roleURI="http://unifirst.com/role/LongTermDebtDetails">
        <link:definition>9955539 - Disclosure - Long-Term Debt (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="AccumulatedOtherComprehensiveLossComponentsofAccumulatedOtherComprehensiveLossNetofTaxDetails" roleURI="http://unifirst.com/role/AccumulatedOtherComprehensiveLossComponentsofAccumulatedOtherComprehensiveLossNetofTaxDetails">
        <link:definition>9955540 - Disclosure - Accumulated Other Comprehensive Loss - Components of Accumulated Other Comprehensive Loss, Net of Tax (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="AccumulatedOtherComprehensiveLossAmountsReclassifiedfromAccumulatedOtherComprehensiveLossDetails" roleURI="http://unifirst.com/role/AccumulatedOtherComprehensiveLossAmountsReclassifiedfromAccumulatedOtherComprehensiveLossDetails">
        <link:definition>9955541 - Disclosure - Accumulated Other Comprehensive Loss - Amounts Reclassified from Accumulated Other Comprehensive Loss (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SegmentReportingNarrativeDetails" roleURI="http://unifirst.com/role/SegmentReportingNarrativeDetails">
        <link:definition>9955542 - Disclosure - Segment Reporting - Narrative (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SegmentReportingScheduleofSegmentReportingInformationDetails" roleURI="http://unifirst.com/role/SegmentReportingScheduleofSegmentReportingInformationDetails">
        <link:definition>9955543 - Disclosure - Segment Reporting - Schedule of Segment Reporting Information (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SegmentReportingScheduleofReconciliationofTotalSegmentOperatingIncometoConsolidatedNetIncomeDetails" roleURI="http://unifirst.com/role/SegmentReportingScheduleofReconciliationofTotalSegmentOperatingIncometoConsolidatedNetIncomeDetails">
        <link:definition>9955544 - Disclosure - Segment Reporting - Schedule of Reconciliation of Total Segment Operating Income to Consolidated Net Income (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="SharesRepurchasedandDividendsDetails" roleURI="http://unifirst.com/role/SharesRepurchasedandDividendsDetails">
        <link:definition>9955545 - Disclosure - Shares Repurchased and Dividends (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
      <link:roleType id="RelatedPartyDetails" roleURI="http://unifirst.com/role/RelatedPartyDetails">
        <link:definition>9955546 - Disclosure - Related Party (Details)</link:definition>
        <link:usedOn>link:presentationLink</link:usedOn>
        <link:usedOn>link:calculationLink</link:usedOn>
        <link:usedOn>link:definitionLink</link:usedOn>
      </link:roleType>
    </xs:appinfo>
  </xs:annotation>
  <xs:element id="unf_RentalMerchandiseInService" abstract="false" name="RentalMerchandiseInService" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="unf_PrepaidTaxesCurrent" abstract="false" name="PrepaidTaxesCurrent" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="unf_AccruedAndDeferredIncomeTaxesLongTerm" abstract="false" name="AccruedAndDeferredIncomeTaxesLongTerm" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="unf_StockIssuedDuringPeriodSharesShareBasedCompensationExercised" abstract="false" name="StockIssuedDuringPeriodSharesShareBasedCompensationExercised" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:sharesItemType"/>
  <xs:element id="unf_StockIssuedDuringPeriodValueShareBasedCompensationExercised" abstract="false" name="StockIssuedDuringPeriodValueShareBasedCompensationExercised" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="unf_AccretionOnEnvironmentalContingencies" abstract="false" name="AccretionOnEnvironmentalContingencies" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="unf_IncreaseDecreaseInRentalMerchandiseInService" abstract="false" name="IncreaseDecreaseInRentalMerchandiseInService" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="unf_PaymentsForProceedsFromExerciseOfShareBasedAwards" abstract="false" name="PaymentsForProceedsFromExerciseOfShareBasedAwards" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="unf_ScheduleOfEnvironmentalLiabilitiesTableTextBlock" abstract="false" name="ScheduleOfEnvironmentalLiabilitiesTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:textBlockItemType"/>
  <xs:element id="unf_ScheduleOfEnvironmentalRemediationLiabilitiesTableTextBlock" abstract="false" name="ScheduleOfEnvironmentalRemediationLiabilitiesTableTextBlock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:textBlockItemType"/>
  <xs:element id="unf_SummaryOfSignificantAccountingPoliciesTable" abstract="true" name="SummaryOfSignificantAccountingPoliciesTable" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrldt:hypercubeItem" type="xbrli:stringItemType"/>
  <xs:element id="unf_CintasCorporationMember" abstract="true" name="CintasCorporationMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="unf_SummaryOfSignificantAccountingPoliciesLineItems" abstract="true" name="SummaryOfSignificantAccountingPoliciesLineItems" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="unf_BusinessCombinationRightToReceiveCashUponConversionOfEachShareOfStock" abstract="false" name="BusinessCombinationRightToReceiveCashUponConversionOfEachShareOfStock" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:perShareItemType"/>
  <xs:element id="unf_BusinessCombinationConversionRatio" abstract="false" name="BusinessCombinationConversionRatio" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:pureItemType"/>
  <xs:element id="unf_BusinessCombinationPotentialTerminationFeePayment" abstract="false" name="BusinessCombinationPotentialTerminationFeePayment" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="unf_BusinessCombinationPotentialTerminationFeePaymentByAcquirer" abstract="false" name="BusinessCombinationPotentialTerminationFeePaymentByAcquirer" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="unf_UniformAndFacilityServiceSolutionsMember" abstract="true" name="UniformAndFacilityServiceSolutionsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="unf_FirstAidAndSafetySolutionsMember" abstract="true" name="FirstAidAndSafetySolutionsMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="unf_AccountsReceivableAllowanceForCreditLossWriteoffAndOther" abstract="false" name="AccountsReceivableAllowanceForCreditLossWriteoffAndOther" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="unf_CintasMember" abstract="true" name="CintasMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="unf_CurrentAcquisitionOfBusinessesMember" abstract="true" name="CurrentAcquisitionOfBusinessesMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="unf_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCustomerContracts" abstract="false" name="BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCustomerContracts" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="unf_BusinessCombinationConsiderationContingentHoldbacks" abstract="false" name="BusinessCombinationConsiderationContingentHoldbacks" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="unf_BusinessCombinationRecognizedAssetAcquiredToLiabilityAssumedExcessLessAndGoodwillExcludingHoldbacks" abstract="false" name="BusinessCombinationRecognizedAssetAcquiredToLiabilityAssumedExcessLessAndGoodwillExcludingHoldbacks" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="unf_NonqualifiedDeferredCompensationPlanMember" abstract="true" name="NonqualifiedDeferredCompensationPlanMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="unf_DefinedBenefitPlanNumberOfFrozenPlans" abstract="false" name="DefinedBenefitPlanNumberOfFrozenPlans" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="xbrli:integerItemType"/>
  <xs:element id="unf_DeferredCompensationPlanOtherIncomeExpense" abstract="false" name="DeferredCompensationPlanOtherIncomeExpense" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="unf_EstimatedImpactOfInflationPerYear" abstract="false" name="EstimatedImpactOfInflationPerYear" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types:percentItemType"/>
  <xs:element id="unf_RiskFreeRatesOfInterestUsedToDiscountRemediationCosts" abstract="false" name="RiskFreeRatesOfInterestUsedToDiscountRemediationCosts" nillable="true" xbrli:periodType="instant" substitutionGroup="xbrli:item" type="dtr-types:percentItemType"/>
  <xs:element id="unf_SiteContingencyEnvironmentalRemediationObligationsNumberofSites" abstract="false" name="SiteContingencyEnvironmentalRemediationObligationsNumberofSites" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:integerItemType"/>
  <xs:element id="unf_NumberOfInsuranceCompanies" abstract="false" name="NumberOfInsuranceCompanies" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:integerItemType"/>
  <xs:element id="unf_TaxAssessmentIssuedAmount" abstract="false" name="TaxAssessmentIssuedAmount" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="unf_TaxAssessmentIssuedAmountIncludingSurchargesFinesAndPenalties" abstract="false" name="TaxAssessmentIssuedAmountIncludingSurchargesFinesAndPenalties" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="unf_TaxAssessmentIssuedAmountNet" abstract="false" name="TaxAssessmentIssuedAmountNet" nillable="true" xbrli:periodType="duration" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="unf_RecordedInsuranceEnvironmentalRecoveriesAmount" abstract="false" name="RecordedInsuranceEnvironmentalRecoveriesAmount" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="unf_EnvironmentalLiabilitiesChangesInDiscountRates" abstract="false" name="EnvironmentalLiabilitiesChangesInDiscountRates" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="unf_AccrualForEnvironmentalLossContingencyUndiscountedToBePaidAfterYearFour" abstract="false" name="AccrualForEnvironmentalLossContingencyUndiscountedToBePaidAfterYearFour" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="unf_EstimatedInsuranceProceedsForEnvironmentalLossContingenciesFiscalYearMaturityAbstract" abstract="true" name="EstimatedInsuranceProceedsForEnvironmentalLossContingenciesFiscalYearMaturityAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="unf_EstimatedInsuranceProceedsForEnvironmentalLossContingenciesUndiscountedToBePaidRemainderOfFiscalYear" abstract="false" name="EstimatedInsuranceProceedsForEnvironmentalLossContingenciesUndiscountedToBePaidRemainderOfFiscalYear" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="unf_EstimatedInsuranceProceedsForEnvironmentalLossContingenciesUndiscountedToBePaidYearOne" abstract="false" name="EstimatedInsuranceProceedsForEnvironmentalLossContingenciesUndiscountedToBePaidYearOne" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="unf_EstimatedInsuranceProceedsForEnvironmentalLossContingenciesUndiscountedToBePaidYearTwo" abstract="false" name="EstimatedInsuranceProceedsForEnvironmentalLossContingenciesUndiscountedToBePaidYearTwo" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="unf_EstimatedInsuranceProceedsForEnvironmentalLossContingenciesUndiscountedToBePaidYearThree" abstract="false" name="EstimatedInsuranceProceedsForEnvironmentalLossContingenciesUndiscountedToBePaidYearThree" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="unf_EstimatedInsuranceProceedsForEnvironmentalLossContingenciesUndiscountedToBePaidYearFour" abstract="false" name="EstimatedInsuranceProceedsForEnvironmentalLossContingenciesUndiscountedToBePaidYearFour" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="unf_EstimatedInsuranceProceedsForEnvironmentalLossContingenciesUndiscountedToBePaidAfterYearFour" abstract="false" name="EstimatedInsuranceProceedsForEnvironmentalLossContingenciesUndiscountedToBePaidAfterYearFour" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="unf_EstimatedInsuranceProceedsForEnvironmentalLossContingenciesGross" abstract="false" name="EstimatedInsuranceProceedsForEnvironmentalLossContingenciesGross" nillable="true" xbrli:periodType="instant" xbrli:balance="debit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="unf_AccrualForEnvironmentalLossContingenciesNetOfEstimatedInsuranceProceedsFiscalYearMaturityAbstract" abstract="true" name="AccrualForEnvironmentalLossContingenciesNetOfEstimatedInsuranceProceedsFiscalYearMaturityAbstract" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:stringItemType"/>
  <xs:element id="unf_AccrualForEnvironmentalLossContingenciesUndiscountedToBePaidRemainderOfFiscalYearNetOfEstimatedInsuranceProceeds" abstract="false" name="AccrualForEnvironmentalLossContingenciesUndiscountedToBePaidRemainderOfFiscalYearNetOfEstimatedInsuranceProceeds" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="unf_AccrualForEnvironmentalLossContingenciesUndiscountedToBePaidYearOneNetOfEstimatedInsuranceProceeds" abstract="false" name="AccrualForEnvironmentalLossContingenciesUndiscountedToBePaidYearOneNetOfEstimatedInsuranceProceeds" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="unf_AccrualForEnvironmentalLossContingenciesUndiscountedToBePaidYearTwoNetOfEstimatedInsuranceProceeds" abstract="false" name="AccrualForEnvironmentalLossContingenciesUndiscountedToBePaidYearTwoNetOfEstimatedInsuranceProceeds" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="unf_AccrualForEnvironmentalLossContingenciesUndiscountedToBePaidYearThreeNetOfEstimatedInsuranceProceeds" abstract="false" name="AccrualForEnvironmentalLossContingenciesUndiscountedToBePaidYearThreeNetOfEstimatedInsuranceProceeds" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="unf_AccrualForEnvironmentalLossContingenciesUndiscountedToBePaidYearFourNetOfEstimatedInsuranceProceeds" abstract="false" name="AccrualForEnvironmentalLossContingenciesUndiscountedToBePaidYearFourNetOfEstimatedInsuranceProceeds" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="unf_AccrualForEnvironmentalLossContingenciesUndiscountedToBePaidAfterYearFourNetOfEstimatedInsuranceProceeds" abstract="false" name="AccrualForEnvironmentalLossContingenciesUndiscountedToBePaidAfterYearFourNetOfEstimatedInsuranceProceeds" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="unf_AccrualForEnvironmentalLossContingenciesNetOfEstimatedInsuranceProceeds" abstract="false" name="AccrualForEnvironmentalLossContingenciesNetOfEstimatedInsuranceProceeds" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="unf_AccrualForEnvironmentalLossContingenciesEffectOfInflation" abstract="false" name="AccrualForEnvironmentalLossContingenciesEffectOfInflation" nillable="true" xbrli:periodType="instant" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="unf_CreditAgreementMember" abstract="true" name="CreditAgreementMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="unf_TriggeringEventAxisAxis" abstract="true" name="TriggeringEventAxisAxis" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrldt:dimensionItem" type="xbrli:stringItemType"/>
  <xs:element id="unf_TriggeringEventAxisDomain" abstract="true" name="TriggeringEventAxisDomain" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="unf_PossibleIncreaseMember" abstract="true" name="PossibleIncreaseMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
  <xs:element id="unf_LineOfCreditFacilityIncreaseTheAggregateCommitment" abstract="false" name="LineOfCreditFacilityIncreaseTheAggregateCommitment" nillable="true" xbrli:periodType="duration" xbrli:balance="credit" substitutionGroup="xbrli:item" type="xbrli:monetaryItemType"/>
  <xs:element id="unf_CommonStockVotingRightsNumberOfVotes" abstract="false" name="CommonStockVotingRightsNumberOfVotes" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="xbrli:integerItemType"/>
  <xs:element id="unf_CommonStockDividendRatePercentage" abstract="false" name="CommonStockDividendRatePercentage" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:percentItemType"/>
  <xs:element id="unf_StockRepurchasedPricePerShare" abstract="false" name="StockRepurchasedPricePerShare" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:perShareItemType"/>
  <xs:element id="unf_ServedAsAnSeniorOfficerMember" abstract="true" name="ServedAsAnSeniorOfficerMember" nillable="true" xbrli:periodType="duration" substitutionGroup="xbrli:item" type="dtr-types:domainItemType"/>
</xs:schema>
