<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.22.2</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>269</ContextCount>
  <ElementCount>350</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>73</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>6</UnitCount>
  <MyReports>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>0001001 - Document - Cover</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/Cover</Role>
      <ShortName>Cover</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>1001002 - Statement - Condensed Consolidated Balance Sheets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/CondensedConsolidatedBalanceSheets</Role>
      <ShortName>Condensed Consolidated Balance Sheets</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>1002003 - Statement - Condensed Consolidated Balance Sheets (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/CondensedConsolidatedBalanceSheetsParenthetical</Role>
      <ShortName>Condensed Consolidated Balance Sheets (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>1003004 - Statement - Condensed Consolidated Statements of Operations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/CondensedConsolidatedStatementsofOperations</Role>
      <ShortName>Condensed Consolidated Statements of Operations</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>1004005 - Statement - Condensed Consolidated Statements of Comprehensive Loss</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/CondensedConsolidatedStatementsofComprehensiveLoss</Role>
      <ShortName>Condensed Consolidated Statements of Comprehensive Loss</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>1005006 - Statement - Condensed Consolidated Statements of Convertible Preferred Stock and Stockholders' Equity (Deficit)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/CondensedConsolidatedStatementsofConvertiblePreferredStockandStockholdersEquityDeficit</Role>
      <ShortName>Condensed Consolidated Statements of Convertible Preferred Stock and Stockholders' Equity (Deficit)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>1006007 - Statement - Condensed Consolidated Statements of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/CondensedConsolidatedStatementsofCashFlows</Role>
      <ShortName>Condensed Consolidated Statements of Cash Flows</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>2101101 - Disclosure - Description of Business and Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/DescriptionofBusinessandSignificantAccountingPolicies</Role>
      <ShortName>Description of Business and Significant Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>2104102 - Disclosure - Revenue</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/Revenue</Role>
      <ShortName>Revenue</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>2110103 - Disclosure - Marketable Securities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/MarketableSecurities</Role>
      <ShortName>Marketable Securities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>2116104 - Disclosure - Fair Value Measurement</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/FairValueMeasurement</Role>
      <ShortName>Fair Value Measurement</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>2119105 - Disclosure - Balance Sheets Components</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/BalanceSheetsComponents</Role>
      <ShortName>Balance Sheets Components</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>2127106 - Disclosure - Business Combination</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/BusinessCombination</Role>
      <ShortName>Business Combination</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>2129107 - Disclosure - Intangible Assets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/IntangibleAssets</Role>
      <ShortName>Intangible Assets</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>2134108 - Disclosure - Leases</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/Leases</Role>
      <ShortName>Leases</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>2143109 - Disclosure - Credit Facility</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/CreditFacility</Role>
      <ShortName>Credit Facility</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>2145110 - Disclosure - Commitment and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/CommitmentandContingencies</Role>
      <ShortName>Commitment and Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>2148111 - Disclosure - Stockholders??? Equity (Deficit) and Equity Incentive Plan</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/StockholdersEquityDeficitandEquityIncentivePlan</Role>
      <ShortName>Stockholders??? Equity (Deficit) and Equity Incentive Plan</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>2159112 - Disclosure - Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/IncomeTaxes</Role>
      <ShortName>Income Taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>2163113 - Disclosure - Net Loss Per Share Attributable to Common Stockholders</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/NetLossPerShareAttributabletoCommonStockholders</Role>
      <ShortName>Net Loss Per Share Attributable to Common Stockholders</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>2167114 - Disclosure - Related Party Transactions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/RelatedPartyTransactions</Role>
      <ShortName>Related Party Transactions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>2202201 - Disclosure - Description of Business and Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/DescriptionofBusinessandSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Description of Business and Significant Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.on24.com/role/DescriptionofBusinessandSignificantAccountingPolicies</ParentRole>
      <Position>22</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>2305301 - Disclosure - Revenue (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/RevenueTables</Role>
      <ShortName>Revenue (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.on24.com/role/Revenue</ParentRole>
      <Position>23</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>2311302 - Disclosure - Marketable Securities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/MarketableSecuritiesTables</Role>
      <ShortName>Marketable Securities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.on24.com/role/MarketableSecurities</ParentRole>
      <Position>24</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>2317303 - Disclosure - Fair Value Measurement (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/FairValueMeasurementTables</Role>
      <ShortName>Fair Value Measurement (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.on24.com/role/FairValueMeasurement</ParentRole>
      <Position>25</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>2320304 - Disclosure - Balance Sheets Components (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/BalanceSheetsComponentsTables</Role>
      <ShortName>Balance Sheets Components (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.on24.com/role/BalanceSheetsComponents</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>2330305 - Disclosure - Intangible Assets (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/IntangibleAssetsTables</Role>
      <ShortName>Intangible Assets (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.on24.com/role/IntangibleAssets</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>2335306 - Disclosure - Leases (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/LeasesTables</Role>
      <ShortName>Leases (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.on24.com/role/Leases</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>2349307 - Disclosure - Stockholders??? Equity (Deficit) and Equity Incentive Plan - (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/StockholdersEquityDeficitandEquityIncentivePlanTables</Role>
      <ShortName>Stockholders??? Equity (Deficit) and Equity Incentive Plan - (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.on24.com/role/StockholdersEquityDeficitandEquityIncentivePlan</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>2360308 - Disclosure - Income Taxes (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/IncomeTaxesTables</Role>
      <ShortName>Income Taxes (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.on24.com/role/IncomeTaxes</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>2364309 - Disclosure - Net Loss Per Share Attributable to Common Stockholders (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/NetLossPerShareAttributabletoCommonStockholdersTables</Role>
      <ShortName>Net Loss Per Share Attributable to Common Stockholders (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.on24.com/role/NetLossPerShareAttributabletoCommonStockholders</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>2403401 - Disclosure - Description of Business and Significant Accounting Policies - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/DescriptionofBusinessandSignificantAccountingPoliciesAdditionalInformationDetails</Role>
      <ShortName>Description of Business and Significant Accounting Policies - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>32</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>2406402 - Disclosure - Revenue - Schedule of Disaggregation of Revenue by Geographic Region (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/RevenueScheduleofDisaggregationofRevenuebyGeographicRegionDetails</Role>
      <ShortName>Revenue - Schedule of Disaggregation of Revenue by Geographic Region (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>33</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>2407403 - Disclosure - Revenue - Foreign Countries Which Contributed 10% or more of Total Revenue (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/RevenueForeignCountriesWhichContributed10ormoreofTotalRevenueDetail</Role>
      <ShortName>Revenue - Foreign Countries Which Contributed 10% or more of Total Revenue (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>34</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>2408404 - Disclosure - Revenue - Contract Balances and Costs To Obtain A Contract (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/RevenueContractBalancesandCostsToObtainAContractDetails</Role>
      <ShortName>Revenue - Contract Balances and Costs To Obtain A Contract (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>35</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>2409405 - Disclosure - Revenue - Remaining Performance Obligations (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/RevenueRemainingPerformanceObligationsDetails</Role>
      <ShortName>Revenue - Remaining Performance Obligations (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>36</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>2412406 - Disclosure - Marketable Securities - Summary of Marketable Securities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/MarketableSecuritiesSummaryofMarketableSecuritiesDetails</Role>
      <ShortName>Marketable Securities - Summary of Marketable Securities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>37</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>2413407 - Disclosure - Marketable Securities - Marketable Securities in an Unrealized Loss Position (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/MarketableSecuritiesMarketableSecuritiesinanUnrealizedLossPositionDetails</Role>
      <ShortName>Marketable Securities - Marketable Securities in an Unrealized Loss Position (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>38</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>2414408 - Disclosure - Marketable Securities - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/MarketableSecuritiesAdditionalInformationDetails</Role>
      <ShortName>Marketable Securities - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>39</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>2415409 - Disclosure - Marketable Securities - Summary of Remaining Contractual Maturities of Marketable Securities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/MarketableSecuritiesSummaryofRemainingContractualMaturitiesofMarketableSecuritiesDetails</Role>
      <ShortName>Marketable Securities - Summary of Remaining Contractual Maturities of Marketable Securities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>40</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>2418410 - Disclosure - Fair Value Measurement - Summary of Financial Instruments Recorded at Fair Value on Recurring Basis (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/FairValueMeasurementSummaryofFinancialInstrumentsRecordedatFairValueonRecurringBasisDetails</Role>
      <ShortName>Fair Value Measurement - Summary of Financial Instruments Recorded at Fair Value on Recurring Basis (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>41</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>2421411 - Disclosure - Balance Sheets Components - Summary of Prepaid Expenses and Other Current Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/BalanceSheetsComponentsSummaryofPrepaidExpensesandOtherCurrentAssetsDetails</Role>
      <ShortName>Balance Sheets Components - Summary of Prepaid Expenses and Other Current Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>42</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>2422412 - Disclosure - Balance Sheets Components - Summary of Property and Equipment, Net (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/BalanceSheetsComponentsSummaryofPropertyandEquipmentNetDetails</Role>
      <ShortName>Balance Sheets Components - Summary of Property and Equipment, Net (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>2423413 - Disclosure - Balance Sheets Components - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/BalanceSheetsComponentsAdditionalInformationDetails</Role>
      <ShortName>Balance Sheets Components - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>2424414 - Disclosure - Balance Sheets Components - Schedule of Property and Equipment, Net of Depreciation and Amortization, by Geographic Region (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/BalanceSheetsComponentsScheduleofPropertyandEquipmentNetofDepreciationandAmortizationbyGeographicRegionDetails</Role>
      <ShortName>Balance Sheets Components - Schedule of Property and Equipment, Net of Depreciation and Amortization, by Geographic Region (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>2425415 - Disclosure - Balance Sheets Components - Summary of Accrued and Other Current Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/BalanceSheetsComponentsSummaryofAccruedandOtherCurrentLiabilitiesDetails</Role>
      <ShortName>Balance Sheets Components - Summary of Accrued and Other Current Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>2426416 - Disclosure - Balance Sheets Components - Summary of Other Long-Term Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/BalanceSheetsComponentsSummaryofOtherLongTermLiabilitiesDetails</Role>
      <ShortName>Balance Sheets Components - Summary of Other Long-Term Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>2428417 - Disclosure - Business Combination (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/BusinessCombinationDetails</Role>
      <ShortName>Business Combination (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.on24.com/role/BusinessCombination</ParentRole>
      <Position>48</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>2431418 - Disclosure - Intangible Assets - Acquired Intangible Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/IntangibleAssetsAcquiredIntangibleAssetsDetails</Role>
      <ShortName>Intangible Assets - Acquired Intangible Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>2432419 - Disclosure - Intangible Assets - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/IntangibleAssetsAdditionalInformationDetails</Role>
      <ShortName>Intangible Assets - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>2433420 - Disclosure - Intangible Assets - Future Amortization Expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/IntangibleAssetsFutureAmortizationExpenseDetails</Role>
      <ShortName>Intangible Assets - Future Amortization Expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>2436421 - Disclosure - Leases - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/LeasesAdditionalInformationDetails</Role>
      <ShortName>Leases - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>2437422 - Disclosure - Leases - Balance Sheet Classification (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/LeasesBalanceSheetClassificationDetails</Role>
      <ShortName>Leases - Balance Sheet Classification (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>2438423 - Disclosure - Leases - Lease Cost (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/LeasesLeaseCostDetails</Role>
      <ShortName>Leases - Lease Cost (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>2439424 - Disclosure - Leases - Maturity of Lease Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/LeasesMaturityofLeaseLiabilitiesDetails</Role>
      <ShortName>Leases - Maturity of Lease Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>2440425 - Disclosure - Leases - Maturity of Lease Liabilities Under ASC 840 (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/LeasesMaturityofLeaseLiabilitiesUnderASC840Details</Role>
      <ShortName>Leases - Maturity of Lease Liabilities Under ASC 840 (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>2441426 - Disclosure - Leases - Weighted-Average Lease Term (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/LeasesWeightedAverageLeaseTermDetails</Role>
      <ShortName>Leases - Weighted-Average Lease Term (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>2442427 - Disclosure - Leases - Supplemental Cash Flows (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/LeasesSupplementalCashFlowsDetails</Role>
      <ShortName>Leases - Supplemental Cash Flows (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>2444428 - Disclosure - Credit Facility- Revolving Line of Credit (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/CreditFacilityRevolvingLineofCreditDetails</Role>
      <ShortName>Credit Facility- Revolving Line of Credit (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>2446429 - Disclosure - Commitment and Contingencies - Purchase Obligations (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/CommitmentandContingenciesPurchaseObligationsDetails</Role>
      <ShortName>Commitment and Contingencies - Purchase Obligations (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>2447430 - Disclosure - Commitment and Contingencies - Contingencies and Legal Proceedings (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/CommitmentandContingenciesContingenciesandLegalProceedingsDetails</Role>
      <ShortName>Commitment and Contingencies - Contingencies and Legal Proceedings (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>2450431 - Disclosure - Stockholders??? Equity (Deficit) and Equity Incentive Plan - Preferred Stock (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/StockholdersEquityDeficitandEquityIncentivePlanPreferredStockDetails</Role>
      <ShortName>Stockholders??? Equity (Deficit) and Equity Incentive Plan - Preferred Stock (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.on24.com/role/StockholdersEquityDeficitandEquityIncentivePlanTables</ParentRole>
      <Position>62</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>2451432 - Disclosure - Stockholders??? Equity (Deficit) and Equity Incentive Plan- Common Stock (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/StockholdersEquityDeficitandEquityIncentivePlanCommonStockDetails</Role>
      <ShortName>Stockholders??? Equity (Deficit) and Equity Incentive Plan- Common Stock (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.on24.com/role/StockholdersEquityDeficitandEquityIncentivePlanTables</ParentRole>
      <Position>63</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>2452433 - Disclosure - Stockholders??? Equity (Deficit) and Equity Incentive Plan - Common Stock Reserved for Future Issuance (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/StockholdersEquityDeficitandEquityIncentivePlanCommonStockReservedforFutureIssuanceDetails</Role>
      <ShortName>Stockholders??? Equity (Deficit) and Equity Incentive Plan - Common Stock Reserved for Future Issuance (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.on24.com/role/StockholdersEquityDeficitandEquityIncentivePlanTables</ParentRole>
      <Position>64</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>2453434 - Disclosure - Stockholders??? Equity (Deficit) and Equity Incentive Plan - Summary of Stock Options (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/StockholdersEquityDeficitandEquityIncentivePlanSummaryofStockOptionsDetails</Role>
      <ShortName>Stockholders??? Equity (Deficit) and Equity Incentive Plan - Summary of Stock Options (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.on24.com/role/StockholdersEquityDeficitandEquityIncentivePlanTables</ParentRole>
      <Position>65</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>2454435 - Disclosure - Stockholders??? Equity (Deficit) and Equity Incentive Plan- Summary of RSU Activity Under Equity Incentive Plans and Related Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/StockholdersEquityDeficitandEquityIncentivePlanSummaryofRSUActivityUnderEquityIncentivePlansandRelatedInformationDetails</Role>
      <ShortName>Stockholders??? Equity (Deficit) and Equity Incentive Plan- Summary of RSU Activity Under Equity Incentive Plans and Related Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.on24.com/role/StockholdersEquityDeficitandEquityIncentivePlanTables</ParentRole>
      <Position>66</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>2455436 - Disclosure - Stockholders??? Equity (Deficit) and Equity Incentive Plan - Restricted Stock Unit (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/StockholdersEquityDeficitandEquityIncentivePlanRestrictedStockUnitDetails</Role>
      <ShortName>Stockholders??? Equity (Deficit) and Equity Incentive Plan - Restricted Stock Unit (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.on24.com/role/StockholdersEquityDeficitandEquityIncentivePlanTables</ParentRole>
      <Position>67</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>2456437 - Disclosure - Stockholders??? Equity (Deficit) and Equity Incentive Plan - Summary of Share-based Compensation Expense by line item in the Condensed Consolidated Statements of Operations (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/StockholdersEquityDeficitandEquityIncentivePlanSummaryofSharebasedCompensationExpensebylineitemintheCondensedConsolidatedStatementsofOperationsDetail</Role>
      <ShortName>Stockholders??? Equity (Deficit) and Equity Incentive Plan - Summary of Share-based Compensation Expense by line item in the Condensed Consolidated Statements of Operations (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.on24.com/role/StockholdersEquityDeficitandEquityIncentivePlanTables</ParentRole>
      <Position>68</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>2457438 - Disclosure - Stockholders??? Equity (Deficit) and Equity Incentive Plan - Summary of Unrecognized Stock-based Compensation Expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/StockholdersEquityDeficitandEquityIncentivePlanSummaryofUnrecognizedStockbasedCompensationExpenseDetails</Role>
      <ShortName>Stockholders??? Equity (Deficit) and Equity Incentive Plan - Summary of Unrecognized Stock-based Compensation Expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.on24.com/role/StockholdersEquityDeficitandEquityIncentivePlanTables</ParentRole>
      <Position>69</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>2458439 - Disclosure - Stockholders??? Equity (Deficit) and Equity Incentive Plan - Repurchase of Common Stock (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/StockholdersEquityDeficitandEquityIncentivePlanRepurchaseofCommonStockDetails</Role>
      <ShortName>Stockholders??? Equity (Deficit) and Equity Incentive Plan - Repurchase of Common Stock (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.on24.com/role/StockholdersEquityDeficitandEquityIncentivePlanTables</ParentRole>
      <Position>70</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>2461440 - Disclosure - Income Taxes - Provision for Income Taxes (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/IncomeTaxesProvisionforIncomeTaxesDetails</Role>
      <ShortName>Income Taxes - Provision for Income Taxes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>71</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>2462441 - Disclosure - Income Taxes - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/IncomeTaxesAdditionalInformationDetails</Role>
      <ShortName>Income Taxes - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>72</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>2465442 - Disclosure - Net Loss Per Share Attributable to Common Stockholders - Schedule of Computation of Basic and Diluted Net Loss Per Share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/NetLossPerShareAttributabletoCommonStockholdersScheduleofComputationofBasicandDilutedNetLossPerShareDetails</Role>
      <ShortName>Net Loss Per Share Attributable to Common Stockholders - Schedule of Computation of Basic and Diluted Net Loss Per Share (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>73</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>2466443 - Disclosure - Net Loss Per Share Attributable to Common Stockholders - Schedule of Potential Shares of Common Stock Excluded from Computation of Diluted Net Loss Per Share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/NetLossPerShareAttributabletoCommonStockholdersScheduleofPotentialSharesofCommonStockExcludedfromComputationofDilutedNetLossPerShareDetails</Role>
      <ShortName>Net Loss Per Share Attributable to Common Stockholders - Schedule of Potential Shares of Common Stock Excluded from Computation of Diluted Net Loss Per Share (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>74</Position>
    </Report>
    <Report instance="ontf-20220630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>2468444 - Disclosure - Related Party Transactions - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.on24.com/role/RelatedPartyTransactionsAdditionalInformationDetails</Role>
      <ShortName>Related Party Transactions - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>75</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File doctype="10-Q" original="ontf-20220630.htm">ontf-20220630.htm</File>
    <File>ex-311ontfx20220630x10xq.htm</File>
    <File>ex-312ontfx20220630x10xq.htm</File>
    <File>ex-321ontfx2022063010xq.htm</File>
    <File>ex-322ontfx20220630x10xq.htm</File>
    <File>ontf-20220630.xsd</File>
    <File>ontf-20220630_cal.xml</File>
    <File>ontf-20220630_def.xml</File>
    <File>ontf-20220630_lab.xml</File>
    <File>ontf-20220630_pre.xml</File>
  </InputFiles>
  <SupplementalFiles>
    <File>ontf-20220630_g1.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="897">http://fasb.org/us-gaap/2021-01-31</BaseTaxonomy>
    <BaseTaxonomy items="30">http://xbrl.sec.gov/dei/2021q4</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
