☒Annual report pursuant to Section13 or 15(d) of the Securities Exchange Act of 1934 for the fiscal year ended December31, 2025 or☐Transition report pursuant to Section13 or 15(d) of the Securities Exchange Act of 1934 for the transition period fromto.Commission File Number 001-34218COGNEX CORPORATION (Exact name of registrant as specified in its charter) 04-2713778 (I.R.S. EmployerIdentification No.) (State or other jurisdiction ofincorporation or organization) One Vision DriveNatick,Massachusetts01760-2059(508) 650-3000 (Address, including zip code, and telephone number,including area code, of principal executive offices) Securities registered pursuant to Section12(b) of the Act: Title of Each ClassTrading Symbol(s)Name of Exchange on Which RegisteredCommon Stock, par value $.002 per shareCGNXThe NASDAQ Stock Market LLC Securities registered pursuant to Section12(g) of the Act: NoneIndicate by check mark if the registrant is a well-known seasoned issuer, as defined in Rule 405 of the Securities Act. Indicate by check mark if the registrant is not required to file reports pursuant to Section13 or Section15(d) of the Act. Indicate by check mark whether the registrant (1)has filed all reports required to be filed by Section13 or 15(d) of the Securities Exchange Act of 1934during the preceding 12 months (or for such shorter period that the registrant was required to file such reports), and (2)has been subject to such filingrequirements for the past 90 days. Indicate by check mark whether the registrant has submitted electronically every Interactive Data File required to be submitted pursuant to Rule 405 ofRegulation S-T during the preceding 12 months (or for such shorter period that the registrant was required to submit such files). Indicate by check mark whether the registrant is a large accelerated filer, an accelerated filer, a non-accelerated filer, a smaller reporting company, oremerging growth company. See the definitions of “large accelerated filer,” “accelerated filer,” “smaller reporting company” and "emerging growthcompany" in Rule 12b-2 of the Exchange Act. (Check one): ☐Accelerated filer☐Smallerreportingcompany☐Emerging growth company Large accelerated filerNon-accelerated filer If an emerging growth company, indicate by check mark if the registrant has elected not to use the extended transition period for complying with any newor revised financial accounting standards provided pursuant to Section 13(a) of the Exchange Act. Indicate by check mark whether the registrant has filed a report on and attestation to its management’s assessment of the effectiveness of its internalcontrol over financial reporting under Section 404(b) of the Sarbanes-Oxley Act (15 U.S.C. 7262(b)) by the registered public accounting firm thatprepared or issued its audit report. If securities are registered pursuant to Section 12(b) of the Act, indicate by check mark whether the financial statements of the registrant included in thefiling reflect the correction of an error to previously issued financial statements. Indicate by check mark whether any of those error corrections are restatements that required a recovery analysis of incentive-based compensationreceived by any of the registrant’s executive officers during the relevant recovery period pursuant to §240.10D-1(b). Indicate by check mark whether the registrant is a shell company (as defined in Rule 12b-2 of the Exchange Act). Aggregate market value of voting stock held by non-affiliates of the registrant as of June27, 2025: $5,267,183,673Common stock, par value $.002 per share, outstanding as of February1, 2026: 165,707,920 sharesDOCUMENTS INCORPORATED BY REFERENCE:The registrant intends to file a Definitive Proxy Statement pursuant to Regulation 14A within 120days of the end of the fiscal year ended December31,2025. Portions of such Proxy Statement are incorporated by reference in PartIII of this report. COGNEX CORPORATIONANNUAL REPORT ON FORM 10-KFOR THE YEAR ENDED DECEMBER 31, 2025 INDEX PART I ITEM 1.BUSINESSITEM 1A.RISK FACTORSITEM1B.UNRESOLVED STAFF COMMENTSITEM 1C.CYBERSECURITYITEM 2.PROPERTIESITEM 3.LEGAL PROCEEDINGSITEM 4.MINE SAFETY DISCLOSURES MARKET FOR REGISTRANT’S COMMON EQUITY, RELATED STOCKHOLDERMATTERS, AND ISSUER PURCHASES OF EQUITY SECURITIES[RESERVED]MANAGEMENT’S DISCUSSION AND ANALYSIS OF FINANCIAL CONDITION ANDRESULTS OF OPERATIONSQUANTITATIVE AND QUALITATIVE DISCLOSURES ABOUT MARKET RISKFINANCIAL STATEMENTS AND SUPPLEMENTARY DATACHANGES IN AND DISAGREEMENTS WITH ACCOUNTANTS ON ACCOUNTING ANDFINANCIAL DISCLOSURECONTROLS AND PROCEDURESOTHER INFORMATIONDISCLOSURE REGARDING FOREIGN JURISDICTIONS THAT PREVENTINSPECTIONS ITEM10.DIRECTORS, EXECUTIVE OFFICERS, AND CORPORATE GOVERNANCEITEM11.EXECUTIVE COMPENSATIONITEM12.SECURITY OWNERSHIP OF CERTAIN BENEFICIAL OWNERS AND MANAGEMENTAND RELATED STOCKHOLDER MATTERSITEM13.CERTAIN RELATIONSHIPS AND RELATED TRANSACTIONS, AND DIRECTORINDEPENDENCEITEM14.PRINCIPAL ACCOUNTING FEES AND