<?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="onto-20260505.xsd" xlink:type="simple"/>
    <context id="C_0862be53-13cc-4821-8a5e-eab38266bf31">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000704532</identifier>
        </entity>
        <period>
            <startDate>2026-05-05</startDate>
            <endDate>2026-05-05</endDate>
        </period>
    </context>
    <dei:EntityCentralIndexKey
      contextRef="C_0862be53-13cc-4821-8a5e-eab38266bf31"
      id="F_c1e70c3f-4a74-4e10-ba1e-9d626e71d080">0000704532</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag
      contextRef="C_0862be53-13cc-4821-8a5e-eab38266bf31"
      id="F_2889d979-e080-47f1-8754-54e6b644176d">false</dei:AmendmentFlag>
    <dei:DocumentType
      contextRef="C_0862be53-13cc-4821-8a5e-eab38266bf31"
      id="F_c9c891d9-0f09-4385-92e9-4383e68acffe">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="C_0862be53-13cc-4821-8a5e-eab38266bf31"
      id="F_24a8e17b-7a1b-4279-b865-1d09de01227c">2026-05-05</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName
      contextRef="C_0862be53-13cc-4821-8a5e-eab38266bf31"
      id="F_e02e8e74-adf1-4c36-9d43-1029789f4392">Onto Innovation Inc.</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode
      contextRef="C_0862be53-13cc-4821-8a5e-eab38266bf31"
      id="F_a0a79208-a0b2-4105-8b01-05f6db186796">DE</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber
      contextRef="C_0862be53-13cc-4821-8a5e-eab38266bf31"
      id="F_2c8cda07-fab7-4979-9d1b-726aecdfac5c">001-39110</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber
      contextRef="C_0862be53-13cc-4821-8a5e-eab38266bf31"
      id="F_2e08bf3e-30c8-455f-9dcf-bc2ca02a1c48">94-2276314</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1
      contextRef="C_0862be53-13cc-4821-8a5e-eab38266bf31"
      id="F_5b517aed-236a-478e-b545-d35cea51bbcb">16 Jonspin Road</dei:EntityAddressAddressLine1>
    <dei:EntityAddressCityOrTown
      contextRef="C_0862be53-13cc-4821-8a5e-eab38266bf31"
      id="F_6c2bfac7-b789-4577-ad2a-84e9f696a62d">Wilmington</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince
      contextRef="C_0862be53-13cc-4821-8a5e-eab38266bf31"
      id="F_8eaced28-d0c4-48d9-89e4-d59d4030475d">MA</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode
      contextRef="C_0862be53-13cc-4821-8a5e-eab38266bf31"
      id="F_e7adfa54-caba-4532-bfdd-f6f12a17c9bf">01887</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode
      contextRef="C_0862be53-13cc-4821-8a5e-eab38266bf31"
      id="F_e4ffd220-943d-4abf-8896-53bce3a65961">(978)</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="C_0862be53-13cc-4821-8a5e-eab38266bf31"
      id="F_7701b416-83b9-4f80-83c0-b6b2a7d1b3ed">253-6200</dei:LocalPhoneNumber>
    <dei:EntityInformationFormerLegalOrRegisteredName
      contextRef="C_0862be53-13cc-4821-8a5e-eab38266bf31"
      id="F_09eb6cff-1587-4a90-86f0-e2c321606d38">Not applicable</dei:EntityInformationFormerLegalOrRegisteredName>
    <dei:WrittenCommunications
      contextRef="C_0862be53-13cc-4821-8a5e-eab38266bf31"
      id="F_fd6fd266-221b-40e7-b26e-2087053db81a">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial
      contextRef="C_0862be53-13cc-4821-8a5e-eab38266bf31"
      id="F_3b7547ce-591e-4679-ab4e-4c7616656cbe">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer
      contextRef="C_0862be53-13cc-4821-8a5e-eab38266bf31"
      id="F_c487377b-ba15-4073-aec5-e0b95914fe8c">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer
      contextRef="C_0862be53-13cc-4821-8a5e-eab38266bf31"
      id="F_20e98479-a90d-40e2-bc74-fe56829fef3d">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle
      contextRef="C_0862be53-13cc-4821-8a5e-eab38266bf31"
      id="F_f1df0c58-be9d-4534-a03c-89b5f3789757">Common Stock, $0.001 par value per share</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="C_0862be53-13cc-4821-8a5e-eab38266bf31"
      id="F_297d6a9e-39f1-47b4-b9ee-b70c24f7c49b">ONTO</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="C_0862be53-13cc-4821-8a5e-eab38266bf31"
      id="F_64ad7f66-6c48-499e-ad6a-df6df5d31251">NYSE</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany
      contextRef="C_0862be53-13cc-4821-8a5e-eab38266bf31"
      id="F_b6438c49-354f-4207-9451-fc57b62d0d1b">false</dei:EntityEmergingGrowthCompany>
</xbrl>
