| Exhibit Number | | | | | | Description | | |
| 3.1 | | | | | | The Company’s Restated Certificate of Incorporation, as amended, is incorporated by reference from Exhibit 3 to the Company’s Quarterly Report on Form 10-Q for the quarter ended April 3, 2005. | | |
| 3.2 | | | | | | The Company's By-laws, as amended and restated as of March 4, 2025, are incorporated by reference from Exhibit 3.1 to the Company's Current Report on Form 8-K filed March 10, 2025. | | |
| 4.1 | | | | | | Indenture between The Hershey Company and U.S. Bank National Association, as Trustee, dated as of May 14, 2009 (incorporated by reference from Exhibit 4.1 to the Registration Statement on Form S-3 of The Hershey Company (File No. 333-159246), filed on May 14, 2009). | | |
| 4.2 | | | | | | The Company has issued certain long-term debt instruments, no one class of which creates indebtedness exceeding 10% of the total assets of the Company and its subsidiaries on a consolidated basis. These classes consist of the following: 1) 4.550% Notes due 2028 (incorporated by reference from Exhibit 4.1 to the Company's Current Report on Form 8-K, dated February 24, 2025). 2) 4.750% Notes due 2030 (incorporated by reference from Exhibit 4.2 to the Company's Current Report on Form 8-K, dated February 24, 2025). 3) 4.950% Notes due 2032 (incorporated by reference from Exhibit 4.3 to the Company's Current Report on Form 8-K, dated February 24, 2025). 4) 5.100% Notes due 2035 (incorporated by reference from Exhibit 4.4 to the Company's Current Report on Form 8-K, dated February 24, 2025). The Company undertakes to furnish copies of the agreements governing these debt instruments to the Securities and Exchange Commission upon its request. | | |
| 10.1 | | | | | | Executive Employment Agreement, Amended and Restated as of January 9, 2025, by and between The Hershey Company and Michele G. Buck, is incorporated by reference from Exhibit 10.1 to the Company’s Current Report on Form 8-K filed January 15, 2025.+ | | |
| 10.2 | | | | | | Form of Notice of Special Award of Restricted Stock Units (Retention Equity), is incorporated by reference from Exhibit 10.1 to the Company’s Current Report on Form 8-K filed February 25, 2025.+ | | |
| 10.3 | | | | | | Form of Notice of Special Award of Restricted Stock Units (Replacement Equity).*+ | | |
| 31.1 | | | | | | Certification of Michele G. Buck, Chief Executive Officer, pursuant to Section 302 of the Sarbanes-Oxley Act of 2002.* | | |
| 31.2 | | | | | | Certification of Steven E. Voskuil, Chief Financial Officer, pursuant to Section 302 of the Sarbanes-Oxley Act of 2002.* | | |
| 32.1 | | | | | | Certification of Michele G. Buck, Chief Executive Officer, and Steven E. Voskuil, Chief Financial Officer, pursuant to Section 906 of the Sarbanes-Oxley Act of 2002.** | | |
| 101.INS | | | | | | Inline XBRL Instance Document - the instance document does not appear in the Interactive Data File because its XBRL tags are embedded within the Inline XBRL document. | | |
| 101.SCH | | | | | | Inline XBRL Taxonomy Extension Schema | | |
| 101.CAL | | | | | | Inline XBRL Taxonomy Extension Calculation Linkbase | | |
| 101.LAB | | | | | | Inline XBRL Taxonomy Extension Label Linkbase | | |
| 101.PRE | | | | | | Inline XBRL Taxonomy Extension Presentation Linkbase | | |
| 101.DEF | | | | | | Inline XBRL Taxonomy Extension Definition Linkbase | | |
| 104 | | | | | | The cover page from the Company's Quarterly Report on Form 10-Q for the quarterly period ended March 30, 2025, formatted in Inline XBRL and contained in Exhibit 101. | | |
| | | | | | | | |
| * | | | | | | Filed herewith | | |
| ** | | | | | | Furnished herewith | | |
| + | | | | | | Management contract, compensatory plan or arrangement | | |