<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="cohu-20251227.xsd" xlink:type="simple"/>
    <context id="d_2024-12-29_2025-12-27">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000021535</identifier>
        </entity>
        <period>
            <startDate>2024-12-29</startDate>
            <endDate>2025-12-27</endDate>
        </period>
    </context>
    <dei:AmendmentFlag contextRef="d_2024-12-29_2025-12-27" id="ixv-2011">false</dei:AmendmentFlag>
    <dei:EntityCentralIndexKey contextRef="d_2024-12-29_2025-12-27" id="ixv-2012">0000021535</dei:EntityCentralIndexKey>
    <dei:DocumentType contextRef="d_2024-12-29_2025-12-27" id="c3">S-3ASR</dei:DocumentType>
    <dei:EntityRegistrantName contextRef="d_2024-12-29_2025-12-27" id="c4">Cohu, Inc.</dei:EntityRegistrantName>
</xbrl>

