v3.26.1
Western Digital Corporation 401(k) Plan (Details) - USD ($)
$ in Millions
12 Months Ended
Jul. 03, 2026
Jun. 27, 2025
Jun. 28, 2024
Defined Benefit Plan Disclosure [Line Items]      
Defined contribution plan, employer matching contribution, percent of match 50.00%    
Defined contribution plan, employer matching contribution, percent of employees' gross pay 6.00%    
Defined contribution plan, employer discretionary contribution amount $ 23 $ 22 $ 8
Pre-Tax      
Defined Benefit Plan Disclosure [Line Items]      
Defined contribution plan, maximum annual contributions per employee, percent 85.00%    
Pre Tax and Post Tax      
Defined Benefit Plan Disclosure [Line Items]      
Defined contribution plan, maximum annual contributions per employee, percent 10.00%