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>0001336514</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 GREAT OAKS PARKWAY</com:street1>
          <com:city>SAN JOSE</com:city>
          <com:stateOrCountry>CA</com:stateOrCountry>
          <com:zipCode>95119</com:zipCode>
        </issuerAddress>
        <issuerContactPhone>9496727000</issuerContactPhone>
        <nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>Alexy Kimberly</nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>
        <relationshipsToIssuer>
          <relationshipToIssuer>Director</relationshipToIssuer>
        </relationshipsToIssuer>
      </issuerInfo>
      <securitiesInformation>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <brokerOrMarketmakerDetails>
          <name>Fidelity Brokerage Services LLC</name>
          <address>
            <com:street1>900 Salem Street</com:street1>
            <com:city>Smithfield</com:city>
            <com:stateOrCountry>RI</com:stateOrCountry>
            <com:zipCode>02917</com:zipCode>
          </address>
        </brokerOrMarketmakerDetails>
        <noOfUnitsSold>2648</noOfUnitsSold>
        <aggregateMarketValue>185227.60</aggregateMarketValue>
        <noOfUnitsOutstanding>325859745</noOfUnitsOutstanding>
        <approxSaleDate>04/01/2024</approxSaleDate>
        <securitiesExchangeName>NASDAQ</securitiesExchangeName>
      </securitiesInformation>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>11/15/2021</acquiredDate>
        <natureOfAcquisitionTransaction>Restricted Stock Vesting</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>Issuer</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>2648</amountOfSecuritiesAcquired>
        <paymentDate>11/15/2021</paymentDate>
        <natureOfPayment>Compensation</natureOfPayment>
      </securitiesToBeSold>
      <nothingToReportFlagOnSecuritiesSoldInPast3Months>N</nothingToReportFlagOnSecuritiesSoldInPast3Months>
      <securitiesSoldInPast3Months>
        <sellerDetails>
          <name>Alexy &amp; Julian Family Trust</name>
          <address>
            <com:street1>5601 Great Oaks Parkway</com:street1>
            <com:city>San Jose</com:city>
            <com:stateOrCountry>CA</com:stateOrCountry>
            <com:zipCode>95119</com:zipCode>
          </address>
        </sellerDetails>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <saleDate>03/01/2024</saleDate>
        <amountOfSecuritiesSold>3000</amountOfSecuritiesSold>
        <grossProceeds>188250.00</grossProceeds>
      </securitiesSoldInPast3Months>
      <remarks>The trade today and the trade in the Securities Sold During the Past 3 Months section was placed in the Alexy &amp; Julian Family Trust account in which Kimberly Alexy is a trustee.</remarks>
      <noticeSignature>
        <noticeDate>04/01/2024</noticeDate>
        <planAdoptionDates>
          <planAdoptionDate>11/24/2023</planAdoptionDate>
        </planAdoptionDates>
        <signature>/s/ Gary Redman, as a duly authorized representative of Fidelity Brokerage Services LLC, as attorney-in-fact for Kimberly Alexy</signature>
      </noticeSignature>
    </formData>
  </edgarSubmission>
metadata_documents: [{"type": "144", "sequence": "1", "filename": "primary_doc.xml", "secsgml_size_bytes": 3753}]
text: 144
  0001336514
  XXXXXXXX
  LIVE
  0000106040
  WESTERN DIGITAL CORP
  001-08703
  5601 GREAT OAKS PARKWAY
  SAN JOSE
  CA
  95119
  9496727000
  Alexy Kimberly
  Director
  Common
  Fidelity Brokerage Services LLC
  900 Salem Street
  Smithfield
  RI
  02917
  2648
  185227.60
  325859745
  04/01/2024
  NASDAQ
  Common
  11/15/2021
  Restricted Stock Vesting
  Issuer
  N
  2648
  11/15/2021
  Compensation
  N
  Alexy & Julian Family Trust
  5601 Great Oaks Parkway
  San Jose
  CA
  95119
  Common
  03/01/2024
  3000
  188250.00
  The trade today and the trade in the Securities Sold During the Past 3 Months section was placed in the Alexy & Julian Family Trust account in which Kimberly Alexy is a trustee.
  04/01/2024
  11/24/2023
  /s/ Gary Redman, as a duly authorized representative of Fidelity Brokerage Services LLC, as attorney-in-fact for Kimberly Alexy