XML 12 R1.htm IDEA: XBRL DOCUMENT v3.19.2
Document and Entity Information - shares
9 Months Ended
May 25, 2019
Jun. 28, 2019
Document Information [Line Items]    
Document Type 10-Q  
Amendment Flag false  
Document Period End Date May 25, 2019  
Document Fiscal Year Focus 2019  
Document Fiscal Period Focus Q3  
Entity Registrant Name UNIFIRST CORP  
Entity Central Index Key 0000717954  
Current Fiscal Year End Date --08-31  
Entity Filer Category Large Accelerated Filer  
Trading Symbol UNF  
Entity Current Reporting Status Yes  
Entity Emerging Growth Company false  
Entity Small Business false  
Entity Shell Company false  
Entity File Number 001-08504  
Entity Tax Identification Number 042103460  
Entity Address, Address Line One 68 Jonspin Road  
Entity Address, City or Town Wilmington, MA  
Entity Address, Postal Zip Code 01887  
City Area Code (978)  
Local Phone Number 658-8888  
Entity Address, Country UNITED STATES  
Common Stock    
Document Information [Line Items]    
Entity Common Stock, Shares Outstanding   15,357,152
Class B Common Stock    
Document Information [Line Items]    
Entity Common Stock, Shares Outstanding   3,643,009