    <SEC-DOCUMENT>0001193125-23-073237-index.html : 20230317
    <SEC-HEADER>0001193125-23-073237.hdr.sgml : 20230317
    <ACCEPTANCE-DATETIME>20230317080116
    ACCESSION NUMBER:		0001193125-23-073237
    CONFORMED SUBMISSION TYPE:	DEF 14A
    PUBLIC DOCUMENT COUNT:		16
    FILED AS OF DATE:		20230317
    DATE AS OF CHANGE:		20230317

    FILER:

    	COMPANY DATA:
    		COMPANY CONFORMED NAME:			COGNEX CORP
    		CENTRAL INDEX KEY:			0000851205
    		STANDARD INDUSTRIAL CLASSIFICATION:	INDUSTRIAL INSTRUMENTS FOR MEASUREMENT, DISPLAY, AND CONTROL [3823]
    		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:		23740713

    	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>d422486ddef14a.htm
    <DESCRIPTION>DEF 14A
    <TEXT>
    Document 1 - file: d422486ddef14a.htm

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

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

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

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

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

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

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

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

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

    Document 10 - RAW XML: d422486ddef14a_htm.xml

    </DOCUMENT>
    <DOCUMENT>
    <TYPE>EXCEL
    <SEQUENCE>11
    <FILENAME>Financial_Report.xlsx
    <DESCRIPTION>IDEA: XBRL DOCUMENT
    <TEXT>
    Document 11 - file: Financial_Report.xlsx

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

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

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

    Document 14 - RAW XML: FilingSummary.xml

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

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

    </DOCUMENT>
    </SEC-DOCUMENT>