XML 11 R1.htm IDEA: XBRL DOCUMENT v3.22.1
Document and Entity Information - shares
6 Months Ended
Feb. 26, 2022
Apr. 01, 2022
Document Information [Line Items]    
Document Type 10-Q  
Amendment Flag false  
Document Period End Date Feb. 26, 2022  
Document Fiscal Year Focus 2022  
Document Fiscal Period Focus Q2  
Entity Registrant Name UNIFIRST CORPORATION  
Entity Central Index Key 0000717954  
Current Fiscal Year End Date --08-27  
Entity Filer Category Large Accelerated Filer  
Title of 12(b) Security Common Stock, $0.10 par value per share  
Trading Symbol UNF  
Security Exchange Name NYSE  
Entity Current Reporting Status Yes  
Entity Interactive Data Current Yes  
Entity Emerging Growth Company false  
Entity Small Business false  
Entity Shell Company false  
Entity File Number 001-08504  
Entity Tax Identification Number 04-2103460  
Entity Address, Address Line One 68 Jonspin Road  
Entity Address, City or Town Wilmington  
Entity Address, State or Province MA  
Entity Incorporation, State or Country Code MA  
Entity Address, Postal Zip Code 01887  
City Area Code (978)  
Local Phone Number 658-8888  
Document Quarterly Report true  
Document Transition Report false  
Common Stock    
Document Information [Line Items]    
Entity Common Stock, Shares Outstanding   15,180,541
Class B Common Stock    
Document Information [Line Items]    
Entity Common Stock, Shares Outstanding   3,626,009