content: <?xml version="1.0" encoding="UTF-8"?><edgarSubmission xmlns="http://www.sec.gov/edgar/ownership" xmlns:com="http://www.sec.gov/edgar/common">
  <headerData>
  <submissionType>144</submissionType>
  <filerInfo>
  <filer>
  <filerCredentials>
  <cik>0001964268</cik>
  <ccc>XXXXXXXX</ccc>
  </filerCredentials>
  </filer>
  <liveTestFlag>LIVE</liveTestFlag>
  
  
  
  </filerInfo>
  </headerData>
  <formData>
  <issuerInfo>
  <issuerCik>0000106040</issuerCik>
  <issuerName>WESTERN DIGITAL CORP</issuerName>
  <secFileNumber>001-08703</secFileNumber>
  <issuerAddress>
  <com:street1>5601 GREAK OAKS PARKWAY</com:street1>
  <com:city>SAN JOSE</com:city>
  <com:stateOrCountry>CA</com:stateOrCountry>
  <com:zipCode>95119</com:zipCode>
  </issuerAddress>
  <issuerContactPhone>408-717-6000</issuerContactPhone>
  <nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>AP WD HOLDINGS, L.P.</nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>
  <relationshipsToIssuer>
  <relationshipToIssuer>Shareholder</relationshipToIssuer>
  </relationshipsToIssuer>
  </issuerInfo>
  <securitiesInformation>
  <securitiesClassTitle>J.P. Morgan Securities LLC</securitiesClassTitle>
  <brokerOrMarketmakerDetails>
  <name>J.P. Morgan Securities LLC</name>
  <address>
  <com:street1>383 Madison Avenue</com:street1>
  <com:city>New York</com:city>
  <com:stateOrCountry>NY</com:stateOrCountry>
  <com:zipCode>10179</com:zipCode>
  </address>
  </brokerOrMarketmakerDetails>
  <noOfUnitsSold>8071303</noOfUnitsSold>
  <aggregateMarketValue>598083552.3</aggregateMarketValue>
  <noOfUnitsOutstanding>326524668</noOfUnitsOutstanding>
  <approxSaleDate>05/16/2024</approxSaleDate>
  <securitiesExchangeName>Nasdaq Global Select</securitiesExchangeName>
  </securitiesInformation>
  <securitiesToBeSold>
  <securitiesClassTitle>Common stock, par value $0.01 per share</securitiesClassTitle>
  <acquiredDate>01/31/2023</acquiredDate>
  <natureOfAcquisitionTransaction>Purchase of Series A Convertible Perpetual Preferred Stock and subsequent cashless conversion into common stock.</natureOfAcquisitionTransaction>
  <nameOfPersonfromWhomAcquired>Western Digital Corporation</nameOfPersonfromWhomAcquired>
  <isGiftTransaction>Y</isGiftTransaction>
  <donarAcquiredDate>01/31/2023</donarAcquiredDate>
  <amountOfSecuritiesAcquired>665000</amountOfSecuritiesAcquired>
  <paymentDate>01/31/2023</paymentDate>
  <natureOfPayment>Purchase of Series A Convertible Perpetual Preferred Stock for cash.</natureOfPayment>
  </securitiesToBeSold>
  <nothingToReportFlagOnSecuritiesSoldInPast3Months>Y</nothingToReportFlagOnSecuritiesSoldInPast3Months>
  <noticeSignature>
  <noticeDate>05/16/2024</noticeDate>
  <signature>James Elworth</signature>
  </noticeSignature>
  </formData>
  </edgarSubmission>
metadata_documents: [{"type": "144", "sequence": "1", "filename": "primary_doc.xml", "secsgml_size_bytes": 2639}]
text: 144
  0001964268
  XXXXXXXX
  LIVE
  0000106040
  WESTERN DIGITAL CORP
  001-08703
  5601 GREAK OAKS PARKWAY
  SAN JOSE
  CA
  95119
  408-717-6000
  AP WD HOLDINGS, L.P.
  Shareholder
  J.P. Morgan Securities LLC
  J.P. Morgan Securities LLC
  383 Madison Avenue
  New York
  NY
  10179
  8071303
  598083552.3
  326524668
  05/16/2024
  Nasdaq Global Select
  Common stock, par value $0.01 per share
  01/31/2023
  Purchase of Series A Convertible Perpetual Preferred Stock and subsequent cashless conversion into common stock.
  Western Digital Corporation
  Y
  01/31/2023
  665000
  01/31/2023
  Purchase of Series A Convertible Perpetual Preferred Stock for cash.
  Y
  05/16/2024
  James Elworth