<?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:onfo="http://onfo.com/20260508"
  xmlns:us-gaap="http://fasb.org/us-gaap/2025"
  xmlns:xbrldi="http://xbrl.org/2006/xbrldi"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="onfo-20260508.xsd" xlink:type="simple"/>
    <context id="From2026-05-08to2026-05-08">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001825452</identifier>
        </entity>
        <period>
            <startDate>2026-05-08</startDate>
            <endDate>2026-05-08</endDate>
        </period>
    </context>
    <context id="From2026-05-08to2026-05-08_onfo_CommonStockParValuesMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001825452</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementClassOfStockAxis">onfo:CommonStockParValuesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-05-08</startDate>
            <endDate>2026-05-08</endDate>
        </period>
    </context>
    <context id="From2026-05-08to2026-05-08_onfo_WarrantsToPurchaseMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001825452</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementClassOfStockAxis">onfo:WarrantsToPurchaseMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-05-08</startDate>
            <endDate>2026-05-08</endDate>
        </period>
    </context>
    <dei:EntityCentralIndexKey contextRef="From2026-05-08to2026-05-08" id="ixv-299">0001825452</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag contextRef="From2026-05-08to2026-05-08" id="ixv-300">false</dei:AmendmentFlag>
    <dei:CurrentFiscalYearEndDate contextRef="From2026-05-08to2026-05-08" id="ixv-301">--12-31</dei:CurrentFiscalYearEndDate>
    <dei:DocumentType contextRef="From2026-05-08to2026-05-08" id="ixv-337">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate contextRef="From2026-05-08to2026-05-08" id="ixv-338">2026-05-08</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName contextRef="From2026-05-08to2026-05-08" id="ixv-339">ONFOLIO HOLDINGS INC.</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode contextRef="From2026-05-08to2026-05-08" id="ixv-340">DE</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber contextRef="From2026-05-08to2026-05-08" id="ixv-341">001-41466</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber contextRef="From2026-05-08to2026-05-08" id="ixv-342">37-1978697</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1 contextRef="From2026-05-08to2026-05-08" id="ixv-343">1007 North Orange Street</dei:EntityAddressAddressLine1>
    <dei:EntityAddressAddressLine2 contextRef="From2026-05-08to2026-05-08" id="ixv-344">4th Floor</dei:EntityAddressAddressLine2>
    <dei:EntityAddressCityOrTown contextRef="From2026-05-08to2026-05-08" id="ixv-345">Wilmington</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince contextRef="From2026-05-08to2026-05-08" id="ixv-346">DE</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode contextRef="From2026-05-08to2026-05-08" id="ixv-347">19801</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode contextRef="From2026-05-08to2026-05-08" id="ixv-348">682</dei:CityAreaCode>
    <dei:LocalPhoneNumber contextRef="From2026-05-08to2026-05-08" id="ixv-349">990-6920</dei:LocalPhoneNumber>
    <dei:WrittenCommunications contextRef="From2026-05-08to2026-05-08" id="ixv-350">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial contextRef="From2026-05-08to2026-05-08" id="ixv-351">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer contextRef="From2026-05-08to2026-05-08" id="ixv-352">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer contextRef="From2026-05-08to2026-05-08" id="ixv-353">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle
      contextRef="From2026-05-08to2026-05-08_onfo_CommonStockParValuesMember"
      id="aid_1_0">Common Stock, $0.001 par value per share</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="From2026-05-08to2026-05-08_onfo_CommonStockParValuesMember"
      id="aid_1_1">ONFO</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="From2026-05-08to2026-05-08_onfo_CommonStockParValuesMember"
      id="aid_1_2">NASDAQ</dei:SecurityExchangeName>
    <dei:Security12bTitle
      contextRef="From2026-05-08to2026-05-08_onfo_WarrantsToPurchaseMember"
      id="aid_2_0">Warrants To Purchase Common Stock</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="From2026-05-08to2026-05-08_onfo_WarrantsToPurchaseMember"
      id="aid_2_1">ONFOW</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="From2026-05-08to2026-05-08_onfo_WarrantsToPurchaseMember"
      id="aid_2_2">NASDAQ</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany contextRef="From2026-05-08to2026-05-08" id="ixv-360">true</dei:EntityEmergingGrowthCompany>
    <dei:EntityExTransitionPeriod contextRef="From2026-05-08to2026-05-08" id="ixv-361">false</dei:EntityExTransitionPeriod>
</xbrl>
