{
  "cik": 717954,
  "cik_padded": "0000717954",
  "entityName": "UNIFIRST CORP",
  "fiscal_years": [
    {
      "accn": "0001193125-25-256222",
      "filed": "2025-10-29",
      "fiscal_year": 2025,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "cash": "USD",
        "dividends_paid": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 70895000.0,
        "capex": 154345000.0,
        "cash": 203501000.0,
        "dividends_paid": 24625000.0,
        "eps_diluted": 7.98,
        "free_cash_flow": 142527000.0,
        "net_income": 148271000.0,
        "operating_cash_flow": 296872000.0,
        "operating_income": 184498000.0,
        "revenue": 2432352000.0,
        "stockholders_equity": 2168957000.0,
        "total_assets": 2778155000.0,
        "total_liabilities": 609198000.0
      },
      "period_end": "2025-08-30",
      "ratio_units": {
        "leverage": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "payout_ratio": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "leverage": 0.2808714050117176,
        "net_margin": 0.0609578712291642,
        "operating_margin": 0.07585168594019287,
        "payout_ratio": 0.16608102730810476,
        "revenue_growth_yoy": 0.0020272460885602927,
        "roa_avg2y": 0.05416719638882922,
        "roa_period_end": 0.053370312311588085,
        "roe_avg2y": 0.06932652681446126,
        "roe_period_end": 0.06836050691645801
      }
    },
    {
      "accn": "0001193125-25-256222",
      "filed": "2025-10-29",
      "fiscal_year": 2024,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "cash": "USD",
        "dividends_paid": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 23780000.0,
        "capex": 160417000.0,
        "cash": 161571000.0,
        "dividends_paid": 23345000.0,
        "eps_diluted": 7.77,
        "free_cash_flow": 134852000.0,
        "net_income": 145474000.0,
        "operating_cash_flow": 295269000.0,
        "operating_income": 183578000.0,
        "revenue": 2427431000.0,
        "stockholders_equity": 2108511000.0,
        "total_assets": 2696413000.0,
        "total_liabilities": 587902000.0
      },
      "period_end": "2024-08-31",
      "ratio_units": {
        "leverage": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "payout_ratio": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "leverage": 0.27882330232092695,
        "net_margin": 0.0599292008712091,
        "operating_margin": 0.0756264544697666,
        "payout_ratio": 0.1604754114137234,
        "revenue_growth_yoy": 0.08704877237245791,
        "roa_avg2y": 0.05524621429336388,
        "roa_period_end": 0.0539509340742683,
        "roe_avg2y": 0.07074773293234166,
        "roe_period_end": 0.06899371167615441
      }
    },
    {
      "accn": "0001193125-25-256222",
      "filed": "2025-10-29",
      "fiscal_year": 2023,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "cash": "USD",
        "dividends_paid": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 0.0,
        "capex": 171991000.0,
        "cash": 79443000.0,
        "dividends_paid": 22100000.0,
        "eps_diluted": 5.53,
        "free_cash_flow": 43771000.0,
        "net_income": 103674000.0,
        "operating_cash_flow": 215762000.0,
        "operating_income": 133603000.0,
        "revenue": 2233047000.0,
        "stockholders_equity": 2003960000.0,
        "total_assets": 2569975000.0,
        "total_liabilities": 566015000.0
      },
      "period_end": "2023-08-26",
      "ratio_units": {
        "leverage": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "payout_ratio": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "leverage": 0.28244825246012895,
        "net_margin": 0.046427146405785456,
        "operating_margin": 0.05982990953616292,
        "payout_ratio": 0.2131682003202346,
        "revenue_growth_yoy": 0.11606479736828164,
        "roa_avg2y": 0.04148663441208961,
        "roa_period_end": 0.040340470238037336,
        "roe_avg2y": 0.052897178475296514,
        "roe_period_end": 0.05173456556019082
      }
    },
    {
      "accn": "0001193125-25-256222",
      "filed": "2025-10-29",
      "fiscal_year": 2022,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "cash": "USD",
        "dividends_paid": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 44412000.0,
        "capex": 144319000.0,
        "cash": 376399000.0,
        "dividends_paid": 20791000.0,
        "eps_diluted": 5.46,
        "free_cash_flow": -21670000.0,
        "net_income": 103404000.0,
        "operating_cash_flow": 122649000.0,
        "operating_income": 134351000.0,
        "revenue": 2000822000.0,
        "stockholders_equity": 1915871000.0,
        "total_assets": 2427972000.0,
        "total_liabilities": 512101000.0
      },
      "period_end": "2022-08-27",
      "ratio_units": {
        "leverage": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "payout_ratio": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "leverage": 0.2672940923475537,
        "net_margin": 0.051680759207965526,
        "operating_margin": 0.06714790221219079,
        "payout_ratio": 0.20106572279602336,
        "revenue_growth_yoy": 0.09561081493098297,
        "roa_avg2y": 0.04300403594316284,
        "roa_period_end": 0.04258862952291048,
        "roe_avg2y": 0.05458370581048521,
        "roe_period_end": 0.05397231859556307
      }
    },
    {
      "accn": "0000950170-24-127140",
      "filed": "2024-11-14",
      "fiscal_year": 2021,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "cash": "USD",
        "dividends_paid": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 11222000.0,
        "capex": 133639000.0,
        "cash": 512868000.0,
        "dividends_paid": 18147000.0,
        "eps_diluted": 7.94,
        "free_cash_flow": 78663000.0,
        "net_income": 151111000.0,
        "operating_cash_flow": 212302000.0,
        "operating_income": 195825000.0,
        "revenue": 1826216000.0,
        "stockholders_equity": 1872952000.0,
        "total_assets": 2381065000.0,
        "total_liabilities": 508113000.0
      },
      "period_end": "2021-08-28",
      "ratio_units": {
        "leverage": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "payout_ratio": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "leverage": 0.2712899209376428,
        "net_margin": 0.08274541456213286,
        "operating_margin": 0.10722992241881574,
        "payout_ratio": 0.1200905294783305,
        "revenue_growth_yoy": 0.012225640866464651,
        "roa_avg2y": 0.06598601076135588,
        "roa_period_end": 0.06346361817086052,
        "roe_avg2y": 0.08362347163774138,
        "roe_period_end": 0.08068065812685003
      }
    },
    {
      "accn": "0001564590-21-052248",
      "filed": "2023-10-26",
      "fiscal_year": 2020,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "dividends_paid": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 21745000.0,
        "capex": 116717000.0,
        "dividends_paid": 15700000.0,
        "eps_diluted": 7.13,
        "free_cash_flow": 169967000.0,
        "net_income": 135770000.0,
        "operating_cash_flow": 286684000.0,
        "operating_income": 172729000.0,
        "revenue": 1804159000.0,
        "stockholders_equity": 1741129000.0,
        "total_assets": 2199027000.0,
        "total_liabilities": 457898000.0
      },
      "period_end": "2020-08-29",
      "ratio_units": {
        "leverage": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "payout_ratio": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "leverage": 0.2629891294671446,
        "net_margin": 0.07525389946229795,
        "operating_margin": 0.09573934448127909,
        "payout_ratio": 0.11563673860204758,
        "revenue_growth_yoy": -0.0028833144686344907,
        "roa_avg2y": 0.06394672880007216,
        "roa_period_end": 0.06174094269874812,
        "roe_avg2y": 0.08028124749620014,
        "roe_period_end": 0.07797813947157275
      }
    },
    {
      "accn": "0001564590-21-052248",
      "filed": "2022-10-26",
      "fiscal_year": 2019,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "dividends_paid": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 30515000.0,
        "capex": 119815000.0,
        "dividends_paid": 8260000.0,
        "eps_diluted": 9.33,
        "free_cash_flow": 162327000.0,
        "net_income": 179134000.0,
        "operating_cash_flow": 282142000.0,
        "operating_income": 232008000.0,
        "revenue": 1809376000.0,
        "stockholders_equity": 1641230000.0,
        "total_assets": 2047320000.0,
        "total_liabilities": 406090000.0
      },
      "period_end": "2019-08-31",
      "ratio_units": {
        "leverage": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "payout_ratio": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "leverage": 0.2474302809478257,
        "net_margin": 0.09900319226075731,
        "operating_margin": 0.1282254213607343,
        "payout_ratio": 0.04611073274755211,
        "revenue_growth_yoy": 0.0665415455095789,
        "roa_avg2y": 0.09208303068903176,
        "roa_period_end": 0.08749682511771488,
        "roe_avg2y": 0.11533975469038184,
        "roe_period_end": 0.10914618913863382
      }
    },
    {
      "accn": "0001564590-21-052248",
      "filed": "2021-10-27",
      "fiscal_year": 2018,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "dividends_paid": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 146011000.0,
        "capex": 112747000.0,
        "dividends_paid": 4218000.0,
        "eps_diluted": 8.21,
        "free_cash_flow": 117326000.0,
        "net_income": 163895000.0,
        "operating_cash_flow": 230073000.0,
        "operating_income": 182376000.0,
        "revenue": 1696489000.0,
        "stockholders_equity": 1464967000.0,
        "total_assets": 1843386000.0,
        "total_liabilities": 392846000.0
      },
      "period_end": "2018-08-25",
      "ratio_units": {
        "leverage": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "payout_ratio": "ratio",
        "revenue_growth_yoy": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "leverage": 0.26816030668267615,
        "net_margin": 0.09660834818262895,
        "operating_margin": 0.1075020232963491,
        "payout_ratio": 0.025735989505476068,
        "revenue_growth_yoy": 0.06633173220160432,
        "roa_avg2y": 0.08949863399839564,
        "roa_period_end": 0.08890975628544429,
        "roe_avg2y": 0.11232766960265017,
        "roe_period_end": 0.11187624021564989
      }
    },
    {
      "accn": "0001564590-20-048412",
      "filed": "2020-10-28",
      "fiscal_year": 2017,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "dividends_paid": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "revenue": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 0.0,
        "capex": 108554000.0,
        "dividends_paid": 2898000.0,
        "eps_diluted": 3.44,
        "free_cash_flow": 109720000.0,
        "net_income": 70196000.0,
        "operating_cash_flow": 218274000.0,
        "operating_income": 110283000.0,
        "revenue": 1590958000.0,
        "stockholders_equity": 1453192000.0,
        "total_assets": 1819128000.0,
        "total_liabilities": 365936000.0
      },
      "period_end": "2017-08-26",
      "ratio_units": {
        "leverage": "ratio",
        "net_margin": "ratio",
        "operating_margin": "ratio",
        "payout_ratio": "ratio",
        "roa_avg2y": "ratio",
        "roa_period_end": "ratio",
        "roe_avg2y": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "leverage": 0.2518153141498164,
        "net_margin": 0.044121843568466296,
        "operating_margin": 0.0693186118049628,
        "payout_ratio": 0.04128440366972477,
        "roa_avg2y": 0.0398712347013108,
        "roa_period_end": 0.03858771895105787,
        "roe_avg2y": 0.04982020764570846,
        "roe_period_end": 0.048304697521043334
      }
    },
    {
      "accn": "0001628280-17-010136",
      "filed": "2019-10-30",
      "fiscal_year": 2016,
      "form": "10-K",
      "fundamental_units": {
        "buybacks": "USD",
        "capex": "USD",
        "cash": "USD",
        "dividends_paid": "USD",
        "eps_diluted": "USD/shares",
        "free_cash_flow": "USD",
        "net_income": "USD",
        "operating_cash_flow": "USD",
        "operating_income": "USD",
        "stockholders_equity": "USD",
        "total_assets": "USD",
        "total_liabilities": "USD"
      },
      "fundamentals": {
        "buybacks": 0.0,
        "capex": 98235000.0,
        "cash": 363795000.0,
        "dividends_paid": 2878000.0,
        "eps_diluted": 6.17,
        "free_cash_flow": 109401000.0,
        "net_income": 125026000.0,
        "operating_cash_flow": 207636000.0,
        "operating_income": 201160000.0,
        "stockholders_equity": 1364781000.0,
        "total_assets": 1702007000.0,
        "total_liabilities": 337226000.0
      },
      "period_end": "2016-08-27",
      "ratio_units": {
        "leverage": "ratio",
        "payout_ratio": "ratio",
        "roa_period_end": "ratio",
        "roe_period_end": "ratio"
      },
      "ratios": {
        "leverage": 0.24709165792900106,
        "payout_ratio": 0.023019212003903188,
        "roa_period_end": 0.07345798225271694,
        "roe_period_end": 0.0916088368756599
      }
    },
    {
      "accn": "0001437749-16-040348",
      "filed": "2016-10-26",
      "fiscal_year": 2015,
      "form": "10-K",
      "fundamental_units": {
        "cash": "USD"
      },
      "fundamentals": {
        "cash": 276553000.0
      },
      "period_end": "2015-08-29",
      "ratios": {}
    },
    {
      "accn": "0001437749-16-040348",
      "filed": "2016-10-26",
      "fiscal_year": 2014,
      "form": "10-K",
      "fundamental_units": {
        "cash": "USD"
      },
      "fundamentals": {
        "cash": 191769000.0
      },
      "period_end": "2014-08-30",
      "ratios": {}
    },
    {
      "accn": "0001437749-16-040348",
      "filed": "2016-10-26",
      "fiscal_year": 2013,
      "form": "10-K",
      "fundamental_units": {
        "cash": "USD"
      },
      "fundamentals": {
        "cash": 197479000.0
      },
      "period_end": "2013-08-31",
      "ratios": {}
    },
    {
      "accn": "0001437749-15-019003",
      "filed": "2015-10-28",
      "fiscal_year": 2012,
      "form": "10-K",
      "fundamental_units": {
        "cash": "USD"
      },
      "fundamentals": {
        "cash": 120123000.0
      },
      "period_end": "2012-08-25",
      "ratios": {}
    }
  ],
  "latest_filing": {
    "accn": "0001193125-25-256222",
    "filed": "2025-10-29",
    "form": "10-K"
  },
  "note": "Static grepcent export of verified SEC companyfacts-derived values. Monetary values are raw reported units from grepcent's resolved facts; no scaling and no FX conversion. Capex, dividends, and buybacks are reported as positive outflow magnitudes. ROE/ROA include both period-end basis (site-consistent) and average-of-two-years basis where the prior-year denominator exists.",
  "schema_version": "1",
  "sic": "7200",
  "sic_description": "Services-Personal Services",
  "source_urls": {
    "sec_companyfacts": "https://data.sec.gov/api/xbrl/companyfacts/CIK0000717954.json",
    "sec_submissions": "https://data.sec.gov/submissions/CIK0000717954.json"
  },
  "ticker": "UNF"
}
