XML 105 R1.htm IDEA: XBRL DOCUMENT v2.4.0.8
Document And Entity Information (USD $)
12 Months Ended
Aug. 31, 2013
Feb. 22, 2013
Oct. 18, 2013
Common Class A [Member]
Oct. 18, 2013
Common Class B [Member]
Document Information [Line Items]        
Entity Registrant Name UNIFIRST CORP      
Document Type 10-K      
Current Fiscal Year End Date --08-31      
Entity Common Stock, Shares Outstanding     15,130,524 4,873,277
Entity Public Float   $ 1,238,810,412    
Amendment Flag false      
Entity Central Index Key 0000717954      
Entity Current Reporting Status Yes      
Entity Voluntary Filers No      
Entity Filer Category Large Accelerated Filer      
Entity Well-known Seasoned Issuer Yes      
Document Period End Date Aug. 31, 2013      
Document Fiscal Year Focus 2013      
Document Fiscal Period Focus FY