XML 13 R1.htm IDEA: XBRL DOCUMENT v3.10.0.1
Document And Entity Information - shares
3 Months Ended
Nov. 24, 2018
Dec. 28, 2018
Document Information [Line Items]    
Entity Registrant Name Unifirst Corporation  
Entity Central Index Key 0000717954  
Trading Symbol unf  
Current Fiscal Year End Date --08-31  
Entity Filer Category Large Accelerated Filer  
Document Type 10-Q  
Document Period End Date Nov. 24, 2018  
Document Fiscal Year Focus 2019  
Document Fiscal Period Focus Q1  
Amendment Flag false  
Common Stock    
Document Information [Line Items]    
Entity Common Stock, Shares Outstanding   15,435,844
Class B Common Stock    
Document Information [Line Items]    
Entity Common Stock, Shares Outstanding   3,710,009