    <SEC-DOCUMENT>0000950170-24-133612-index.html : 20241205
    <SEC-HEADER>0000950170-24-133612.hdr.sgml : 20241205
    <ACCEPTANCE-DATETIME>20241205140519
    ACCESSION NUMBER:		0000950170-24-133612
    CONFORMED SUBMISSION TYPE:	DEF 14A
    PUBLIC DOCUMENT COUNT:		27
    CONFORMED PERIOD OF REPORT:	20241205
    FILED AS OF DATE:		20241205
    DATE AS OF CHANGE:		20241205

    FILER:

    	COMPANY DATA:
    		COMPANY CONFORMED NAME:			UNIFIRST CORP
    		CENTRAL INDEX KEY:			0000717954
    		STANDARD INDUSTRIAL CLASSIFICATION:	SERVICES-PERSONAL SERVICES [7200]
    		ORGANIZATION NAME:           	07 Trade & Services
    		IRS NUMBER:				042103460
    		STATE OF INCORPORATION:			MA
    		FISCAL YEAR END:			0829

    	FILING VALUES:
    		FORM TYPE:		DEF 14A
    		SEC ACT:		1934 Act
    		SEC FILE NUMBER:	001-08504
    		FILM NUMBER:		241528637

    	BUSINESS ADDRESS:
    		STREET 1:		68 JONSPIN RD
    		CITY:			WILMINGTON
    		STATE:			MA
    		ZIP:			01887
    		BUSINESS PHONE:		(978) 658-8888

    	MAIL ADDRESS:
    		STREET 1:		68 JONSPIN ROAD
    		CITY:			WILMINGTON
    		STATE:			MA
    		ZIP:			01887

    	FORMER COMPANY:
    		FORMER CONFORMED NAME:	INTERSTATE UNIFORM SERVICES CORP/MA
    		DATE OF NAME CHANGE:	19840410
    </SEC-HEADER>
    <DOCUMENT>
    <TYPE>DEF 14A
    <SEQUENCE>1
    <FILENAME>unf-20241203.htm
    <DESCRIPTION>DEF 14A
    <TEXT>
    Document 1 - file: unf-20241203.htm

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>GRAPHIC
    <SEQUENCE>2
    <FILENAME>img19658180_0.jpg
    <DESCRIPTION>GRAPHIC
    <TEXT>
    Document 2 - file: img19658180_0.jpg

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>GRAPHIC
    <SEQUENCE>3
    <FILENAME>img19658180_1.jpg
    <DESCRIPTION>GRAPHIC
    <TEXT>
    Document 3 - file: img19658180_1.jpg

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>GRAPHIC
    <SEQUENCE>4
    <FILENAME>img19658180_2.jpg
    <DESCRIPTION>GRAPHIC
    <TEXT>
    Document 4 - file: img19658180_2.jpg

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>GRAPHIC
    <SEQUENCE>5
    <FILENAME>img19658180_3.jpg
    <DESCRIPTION>GRAPHIC
    <TEXT>
    Document 5 - file: img19658180_3.jpg

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>GRAPHIC
    <SEQUENCE>6
    <FILENAME>img19658180_4.jpg
    <DESCRIPTION>GRAPHIC
    <TEXT>
    Document 6 - file: img19658180_4.jpg

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>GRAPHIC
    <SEQUENCE>7
    <FILENAME>img19658180_5.jpg
    <DESCRIPTION>GRAPHIC
    <TEXT>
    Document 7 - file: img19658180_5.jpg

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>GRAPHIC
    <SEQUENCE>8
    <FILENAME>img19658180_6.jpg
    <DESCRIPTION>GRAPHIC
    <TEXT>
    Document 8 - file: img19658180_6.jpg

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>GRAPHIC
    <SEQUENCE>9
    <FILENAME>img19658180_7.jpg
    <DESCRIPTION>GRAPHIC
    <TEXT>
    Document 9 - file: img19658180_7.jpg

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>GRAPHIC
    <SEQUENCE>10
    <FILENAME>img19658180_8.jpg
    <DESCRIPTION>GRAPHIC
    <TEXT>
    Document 10 - file: img19658180_8.jpg

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>GRAPHIC
    <SEQUENCE>11
    <FILENAME>img19658180_9.jpg
    <DESCRIPTION>GRAPHIC
    <TEXT>
    Document 11 - file: img19658180_9.jpg

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>GRAPHIC
    <SEQUENCE>12
    <FILENAME>img19658180_10.jpg
    <DESCRIPTION>GRAPHIC
    <TEXT>
    Document 12 - file: img19658180_10.jpg

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>GRAPHIC
    <SEQUENCE>13
    <FILENAME>img19658180_11.jpg
    <DESCRIPTION>GRAPHIC
    <TEXT>
    Document 13 - file: img19658180_11.jpg

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>GRAPHIC
    <SEQUENCE>14
    <FILENAME>img19658180_12.jpg
    <DESCRIPTION>GRAPHIC
    <TEXT>
    Document 14 - file: img19658180_12.jpg

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>GRAPHIC
    <SEQUENCE>15
    <FILENAME>img19658180_13.jpg
    <DESCRIPTION>GRAPHIC
    <TEXT>
    Document 15 - file: img19658180_13.jpg

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>GRAPHIC
    <SEQUENCE>16
    <FILENAME>img19658180_14.jpg
    <DESCRIPTION>GRAPHIC
    <TEXT>
    Document 16 - file: img19658180_14.jpg

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>GRAPHIC
    <SEQUENCE>17
    <FILENAME>img19658180_15.jpg
    <DESCRIPTION>GRAPHIC
    <TEXT>
    Document 17 - file: img19658180_15.jpg

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>EX-101.SCH
    <SEQUENCE>18
    <FILENAME>unf-20241203.xsd
    <DESCRIPTION>XBRL TAXONOMY EXTENSION SCHEMA WITH EMBEDDED LINKBASES DOCUMENT
    <TEXT>
    Document 18 - file: unf-20241203.xsd

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>XML
    <SEQUENCE>20
    <FILENAME>R1.htm
    <DESCRIPTION>IDEA: XBRL DOCUMENT
    <TEXT>
    Document 20 - file: R1.htm

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>XML
    <SEQUENCE>21
    <FILENAME>R2.htm
    <DESCRIPTION>IDEA: XBRL DOCUMENT
    <TEXT>
    Document 21 - file: R2.htm

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>XML
    <SEQUENCE>22
    <FILENAME>Show.js
    <DESCRIPTION>IDEA: XBRL DOCUMENT
    <TEXT>
    Document 22 - file: Show.js

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>XML
    <SEQUENCE>23
    <FILENAME>report.css
    <DESCRIPTION>IDEA: XBRL DOCUMENT
    <TEXT>
    Document 23 - file: report.css

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>XML
    <SEQUENCE>25
    <FILENAME>FilingSummary.xml
    <DESCRIPTION>IDEA: XBRL DOCUMENT
    <TEXT>
    Document 25 - file: FilingSummary.html

    Document 25 - RAW XML: FilingSummary.xml

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>JSON
    <SEQUENCE>27
    <FILENAME>MetaLinks.json
    <DESCRIPTION>IDEA: XBRL DOCUMENT
    <TEXT>
    Document 27 - file: MetaLinks.json

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>ZIP
    <SEQUENCE>28
    <FILENAME>0000950170-24-133612-xbrl.zip
    <DESCRIPTION>IDEA: XBRL DOCUMENT
    <TEXT>
    Document 28 - file: 0000950170-24-133612-xbrl.zip

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>XML
    <SEQUENCE>29
    <FILENAME>unf-20241203_htm.xml
    <DESCRIPTION>IDEA: XBRL DOCUMENT
    <TEXT>
    Document 29 - file: unf-20241203_htm.html

    Document 29 - RAW XML: unf-20241203_htm.xml

    </DOCUMENT>
    </SEC-DOCUMENT>