v3.10.0.1
Document and Entity Information - shares
6 Months Ended
Dec. 28, 2018
Jan. 29, 2019
Document And Entity Information [Abstract]    
Entity Registrant Name WESTERN DIGITAL CORP  
Entity Central Index Key 0000106040  
Current Fiscal Year End Date --06-28  
Entity Filer Category Large Accelerated Filer  
Entity Small Business false  
Entity Emerging Growth Company false  
Document Type 10-Q  
Document Period End Date Dec. 28, 2018  
Document Fiscal Year Focus 2019  
Document Fiscal Period Focus Q2  
Amendment Flag false  
Entity Common Stock, Shares Outstanding (in shares)   290,850,938
Entity Current Reporting Status Yes