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>0001464822</cik>
            <ccc>XXXXXXXX</ccc>
          </filerCredentials>
        </filer>
        <liveTestFlag>LIVE</liveTestFlag>
  
  
      </filerInfo>
    </headerData>
    <formData>
      <issuerInfo>
        <issuerCik>0000047111</issuerCik>
        <issuerName>HERSHEY CO</issuerName>
        <secFileNumber>001-00183</secFileNumber>
        <issuerAddress>
          <com:street1>19 EAST CHOCOLATE AVENUE</com:street1>
          <com:street2>EXTERNAL RPTG &amp; COMPLIANCE</com:street2>
          <com:city>HERSHEY</com:city>
          <com:stateOrCountry>PA</com:stateOrCountry>
          <com:zipCode>17033</com:zipCode>
        </issuerAddress>
        <issuerContactPhone>7175344200</issuerContactPhone>
        <nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>Arway Pamela M</nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>
        <relationshipsToIssuer>
          <relationshipToIssuer>Director</relationshipToIssuer>
        </relationshipsToIssuer>
      </issuerInfo>
      <securitiesInformation>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <brokerOrMarketmakerDetails>
          <name>Ameriprise Financial</name>
          <address>
            <com:street1>2865 Ameriprise Financial Center</com:street1>
            <com:city>Minneapolis</com:city>
            <com:stateOrCountry>MN</com:stateOrCountry>
            <com:zipCode>55474</com:zipCode>
          </address>
        </brokerOrMarketmakerDetails>
        <noOfUnitsSold>182</noOfUnitsSold>
        <aggregateMarketValue>35409.92</aggregateMarketValue>
        <noOfUnitsOutstanding>149854381</noOfUnitsOutstanding>
        <approxSaleDate>10/09/2023</approxSaleDate>
        <securitiesExchangeName>NYSE</securitiesExchangeName>
      </securitiesInformation>
      <securitiesToBeSold>
        <securitiesClassTitle>Common</securitiesClassTitle>
        <acquiredDate>10/03/2023</acquiredDate>
        <natureOfAcquisitionTransaction>Stock Award</natureOfAcquisitionTransaction>
        <nameOfPersonfromWhomAcquired>The Hershey Company</nameOfPersonfromWhomAcquired>
        <isGiftTransaction>N</isGiftTransaction>
        <amountOfSecuritiesAcquired>182</amountOfSecuritiesAcquired>
        <paymentDate>10/03/2023</paymentDate>
        <natureOfPayment>Compensation</natureOfPayment>
      </securitiesToBeSold>
      <nothingToReportFlagOnSecuritiesSoldInPast3Months>N</nothingToReportFlagOnSecuritiesSoldInPast3Months>
      <securitiesSoldInPast3Months>
        <sellerDetails>
          <name>Pamela Arway</name>
          <address>
            <com:street1>281 Fan Palm Road</com:street1>
            <com:city>Boca Raton</com:city>
            <com:stateOrCountry>FL</com:stateOrCountry>
            <com:zipCode>33432</com:zipCode>
          </address>
        </sellerDetails>
        <securitiesClassTitle>187</securitiesClassTitle>
        <saleDate>07/11/2023</saleDate>
        <amountOfSecuritiesSold>187</amountOfSecuritiesSold>
        <grossProceeds>45190.42</grossProceeds>
      </securitiesSoldInPast3Months>
      <remarks>Sale Made as part of 10B5-1 Plan</remarks>
      <noticeSignature>
        <noticeDate>10/09/2023</noticeDate>
        <planAdoptionDates>
          <planAdoptionDate>01/01/2023</planAdoptionDate>
        </planAdoptionDates>
        <signature>Pamela Arway by Alexander Meginnes</signature>
      </noticeSignature>
    </formData>
  </edgarSubmission>
metadata_documents: [{"type": "144", "sequence": "1", "filename": "primary_doc.xml", "secsgml_size_bytes": 3539}]
text: 144
  0001464822
  XXXXXXXX
  LIVE
  0000047111
  HERSHEY CO
  001-00183
  19 EAST CHOCOLATE AVENUE
  EXTERNAL RPTG & COMPLIANCE
  HERSHEY
  PA
  17033
  7175344200
  Arway Pamela M
  Director
  Common
  Ameriprise Financial
  2865 Ameriprise Financial Center
  Minneapolis
  MN
  55474
  182
  35409.92
  149854381
  10/09/2023
  NYSE
  Common
  10/03/2023
  Stock Award
  The Hershey Company
  N
  182
  10/03/2023
  Compensation
  N
  Pamela Arway
  281 Fan Palm Road
  Boca Raton
  FL
  33432
  187
  07/11/2023
  187
  45190.42
  Sale Made as part of 10B5-1 Plan
  10/09/2023
  01/01/2023
  Pamela Arway by Alexander Meginnes