    <SEC-DOCUMENT>0001193125-25-054448-index.html : 20250314
    <SEC-HEADER>0001193125-25-054448.hdr.sgml : 20250314
    <ACCEPTANCE-DATETIME>20250314080024
    ACCESSION NUMBER:		0001193125-25-054448
    CONFORMED SUBMISSION TYPE:	DEF 14A
    PUBLIC DOCUMENT COUNT:		22
    CONFORMED PERIOD OF REPORT:	20250430
    FILED AS OF DATE:		20250314
    DATE AS OF CHANGE:		20250314

    FILER:

    	COMPANY DATA:
    		COMPANY CONFORMED NAME:			COGNEX CORP
    		CENTRAL INDEX KEY:			0000851205
    		STANDARD INDUSTRIAL CLASSIFICATION:	INDUSTRIAL INSTRUMENTS FOR MEASUREMENT, DISPLAY, AND CONTROL [3823]
    		ORGANIZATION NAME:           	08 Industrial Applications and Services
    		IRS NUMBER:				042713778
    		STATE OF INCORPORATION:			MA
    		FISCAL YEAR END:			1231

    	FILING VALUES:
    		FORM TYPE:		DEF 14A
    		SEC ACT:		1934 Act
    		SEC FILE NUMBER:	001-34218
    		FILM NUMBER:		25737690

    	BUSINESS ADDRESS:
    		STREET 1:		ONE VISION DR
    		CITY:			NATICK
    		STATE:			MA
    		ZIP:			01760
    		BUSINESS PHONE:		5086503000

    	MAIL ADDRESS:
    		STREET 1:		ONE VISION DRIVE
    		CITY:			NATICK
    		STATE:			MA
    		ZIP:			01760
    </SEC-HEADER>
    <DOCUMENT>
    <TYPE>DEF 14A
    <SEQUENCE>1
    <FILENAME>d906473ddef14a.htm
    <DESCRIPTION>DEF 14A
    <TEXT>
    Document 1 - file: d906473ddef14a.htm

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>EX-101.SCH
    <SEQUENCE>2
    <FILENAME>cgnx-20241231.xsd
    <DESCRIPTION>XBRL TAXONOMY EXTENSION SCHEMA
    <TEXT>
    Document 2 - file: cgnx-20241231.xsd

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>EX-101.DEF
    <SEQUENCE>3
    <FILENAME>cgnx-20241231_def.xml
    <DESCRIPTION>XBRL TAXONOMY EXTENSION DEFINITION LINKBASE
    <TEXT>
    Document 3 - file: cgnx-20241231_def.xml

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>EX-101.LAB
    <SEQUENCE>4
    <FILENAME>cgnx-20241231_lab.xml
    <DESCRIPTION>XBRL TAXONOMY EXTENSION LABEL LINKBASE
    <TEXT>
    Document 4 - file: cgnx-20241231_lab.xml

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>EX-101.PRE
    <SEQUENCE>5
    <FILENAME>cgnx-20241231_pre.xml
    <DESCRIPTION>XBRL TAXONOMY EXTENSION PRESENTATION LINKBASE
    <TEXT>
    Document 5 - file: cgnx-20241231_pre.xml

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>GRAPHIC
    <SEQUENCE>6
    <FILENAME>g906473g01h01.jpg
    <DESCRIPTION>GRAPHIC
    <TEXT>
    Document 6 - file: g906473g01h01.jpg

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>GRAPHIC
    <SEQUENCE>7
    <FILENAME>g906473g01h02.jpg
    <DESCRIPTION>GRAPHIC
    <TEXT>
    Document 7 - file: g906473g01h02.jpg

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>GRAPHIC
    <SEQUENCE>8
    <FILENAME>g906473g01j03.jpg
    <DESCRIPTION>GRAPHIC
    <TEXT>
    Document 8 - file: g906473g01j03.jpg

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>GRAPHIC
    <SEQUENCE>9
    <FILENAME>g906473g01j04.jpg
    <DESCRIPTION>GRAPHIC
    <TEXT>
    Document 9 - file: g906473g01j04.jpg

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>GRAPHIC
    <SEQUENCE>10
    <FILENAME>g906473g01p01.jpg
    <DESCRIPTION>GRAPHIC
    <TEXT>
    Document 10 - file: g906473g01p01.jpg

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>GRAPHIC
    <SEQUENCE>11
    <FILENAME>g906473g01p02.jpg
    <DESCRIPTION>GRAPHIC
    <TEXT>
    Document 11 - file: g906473g01p02.jpg

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>GRAPHIC
    <SEQUENCE>12
    <FILENAME>g906473g01p03.jpg
    <DESCRIPTION>GRAPHIC
    <TEXT>
    Document 12 - file: g906473g01p03.jpg

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>XML
    <SEQUENCE>14
    <FILENAME>R1.htm
    <DESCRIPTION>IDEA: XBRL DOCUMENT
    <TEXT>
    Document 14 - file: R1.htm

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>XML
    <SEQUENCE>15
    <FILENAME>R2.htm
    <DESCRIPTION>IDEA: XBRL DOCUMENT
    <TEXT>
    Document 15 - file: R2.htm

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>XML
    <SEQUENCE>16
    <FILENAME>R3.htm
    <DESCRIPTION>IDEA: XBRL DOCUMENT
    <TEXT>
    Document 16 - file: R3.htm

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>XML
    <SEQUENCE>17
    <FILENAME>Show.js
    <DESCRIPTION>IDEA: XBRL DOCUMENT
    <TEXT>
    Document 17 - file: Show.js

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>XML
    <SEQUENCE>18
    <FILENAME>report.css
    <DESCRIPTION>IDEA: XBRL DOCUMENT
    <TEXT>
    Document 18 - file: report.css

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>XML
    <SEQUENCE>20
    <FILENAME>FilingSummary.xml
    <DESCRIPTION>IDEA: XBRL DOCUMENT
    <TEXT>
    Document 20 - file: FilingSummary.html

    Document 20 - RAW XML: FilingSummary.xml

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>JSON
    <SEQUENCE>22
    <FILENAME>MetaLinks.json
    <DESCRIPTION>IDEA: XBRL DOCUMENT
    <TEXT>
    Document 22 - file: MetaLinks.json

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>ZIP
    <SEQUENCE>23
    <FILENAME>0001193125-25-054448-xbrl.zip
    <DESCRIPTION>IDEA: XBRL DOCUMENT
    <TEXT>
    Document 23 - file: 0001193125-25-054448-xbrl.zip

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>XML
    <SEQUENCE>24
    <FILENAME>d906473ddef14a_htm.xml
    <DESCRIPTION>IDEA: XBRL DOCUMENT
    <TEXT>
    Document 24 - file: d906473ddef14a_htm.html

    Document 24 - RAW XML: d906473ddef14a_htm.xml

    </DOCUMENT>
    </SEC-DOCUMENT>