XML 15 R1.htm IDEA: XBRL DOCUMENT v3.5.0.2
Document And Entity Information - USD ($)
12 Months Ended
Aug. 27, 2016
Oct. 14, 2016
Feb. 26, 2016
Common Class B [Member]      
Document Information [Line Items]      
Entity Common Stock, Shares Outstanding (in shares)   4,845,519  
Common Class A [Member]      
Document Information [Line Items]      
Entity Common Stock, Shares Outstanding (in shares)   15,424,127  
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    
Entity Public Float     $ 1,581,777,889
Document Type 10-K    
Document Period End Date Aug. 27, 2016    
Document Fiscal Year Focus 2016    
Document Fiscal Period Focus FY    
Amendment Flag false