{"cik":717954,"accession":"0001628280-26-046349","metadata":{"formType":"Form 8-K","formDescription":"Current report","accession":"0001628280-26-046349","filingDate":"2026-07-01","accepted":"2026-07-01 08:01:48","periodOfReport":"2026-07-01","documentCount":13},"urls":{"index":"https://www.sec.gov/Archives/edgar/data/717954/000162828026046349/0001628280-26-046349-index.htm","archive":"https://www.sec.gov/Archives/edgar/data/717954/000162828026046349","viewer":"https://www.sec.gov/cgi-bin/viewer?action=view&cik=717954&accession_number=0001628280-26-046349&xbrl_type=f","homepage":"https://www.sec.gov/Archives/edgar/data/717954/0001628280-26-046349-index.html","text":"https://www.sec.gov/Archives/edgar/data/717954/000162828026046349/0001628280-26-046349.txt","headers":"https://www.sec.gov/Archives/edgar/data/717954/000162828026046349/0001628280-26-046349-index-headers.html"},"primaryDocument":{"seq":1,"description":"8-K","filename":"unf-20260701.htm","url":"https://www.sec.gov/Archives/edgar/data/717954/000162828026046349/unf-20260701.htm","type":"8-K","size":27788,"isXBRL":true},"documents":[{"seq":1,"description":"8-K","filename":"unf-20260701.htm","url":"https://www.sec.gov/Archives/edgar/data/717954/000162828026046349/unf-20260701.htm","type":"8-K","size":27788,"isXBRL":true},{"seq":2,"description":"EX-99","filename":"unf-2026xq3xex99earningsre.htm","url":"https://www.sec.gov/Archives/edgar/data/717954/000162828026046349/unf-2026xq3xex99earningsre.htm","type":"EX-99","size":387455,"isXBRL":false}],"dataFiles":[{"seq":16,"description":"EXTRACTED XBRL INSTANCE DOCUMENT","filename":"unf-20260701_htm.xml","url":"https://www.sec.gov/Archives/edgar/data/717954/000162828026046349/unf-20260701_htm.xml","type":"XML","size":2699,"isXBRL":false}],"xbrl":{"available":true,"statements":[],"notes":[],"tables":[],"details":[],"cover":[{"htmlFileName":"R1.htm","url":"https://www.sec.gov/Archives/edgar/data/717954/000162828026046349/R1.htm","longName":"0000001 - Document - Document and Entity Information","shortName":"Document and Entity Information","reportType":"Sheet","menuCategory":"Cover","position":1,"role":"http://unifirst.com/role/DocumentandEntityInformation","instance":"unf-20260701.htm"}],"policies":[]}}