{"cik":717954,"taxonomy":"us-gaap","tag":"LongTermDebt","label":"Long-term Debt","description":"Amount, after unamortized (discount) premium and debt issuance costs, of long-term debt. Includes, but not limited to, notes payable, bonds payable, debentures, mortgage loans and commercial paper. Excludes capital lease obligations.","entityName":"UNIFIRST CORPORATION","units":{"USD":[{"end":"2010-08-28","val":181464000,"accn":"0001284084-11-000042","fy":2011,"fp":"FY","form":"10-K/A","filed":"2011-11-01","frame":"CY2010Q3I"},{"end":"2011-08-27","val":120296000,"accn":"0001284084-11-000042","fy":2011,"fp":"FY","form":"10-K/A","filed":"2011-11-01"},{"end":"2011-08-27","val":120296000,"accn":"0001284084-12-000040","fy":2012,"fp":"FY","form":"10-K","filed":"2012-10-24","frame":"CY2011Q3I"},{"end":"2012-08-25","val":104685000,"accn":"0001284084-12-000040","fy":2012,"fp":"FY","form":"10-K","filed":"2012-10-24"},{"end":"2012-08-25","val":106986000,"accn":"0001437749-13-013615","fy":2013,"fp":"FY","form":"10-K","filed":"2013-10-30","frame":"CY2012Q3I"},{"end":"2013-08-31","val":111408000,"accn":"0001437749-13-013615","fy":2013,"fp":"FY","form":"10-K","filed":"2013-10-30"},{"end":"2013-08-31","val":111408000,"accn":"0001437749-14-019037","fy":2014,"fp":"FY","form":"10-K","filed":"2014-10-29","frame":"CY2013Q3I"},{"end":"2014-08-30","val":7859000,"accn":"0001437749-14-019037","fy":2014,"fp":"FY","form":"10-K","filed":"2014-10-29","frame":"CY2014Q3I"}]}}