XML 12 R1.htm IDEA: XBRL DOCUMENT v3.3.1.900
Document And Entity Information - shares
6 Months Ended
Feb. 27, 2016
Apr. 01, 2016
Common Class B [Member]    
Entity Common Stock, Shares Outstanding (in shares)   4,854,519
Common Class A [Member]    
Entity Common Stock, Shares Outstanding (in shares)   15,288,535
Entity Registrant Name Unifirst Corp  
Entity Central Index Key 0000717954  
Trading Symbol unf  
Current Fiscal Year End Date --08-27  
Entity Filer Category Large Accelerated Filer  
Entity Current Reporting Status Yes  
Entity Voluntary Filers No  
Entity Well-known Seasoned Issuer Yes  
Document Type 10-Q  
Document Period End Date Feb. 27, 2016  
Document Fiscal Year Focus 2016  
Document Fiscal Period Focus Q2  
Amendment Flag false