<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xbrldi="http://xbrl.org/2006/xbrldi"
  xmlns:xlink="http://www.w3.org/1999/xlink"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="c_offering_1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001825452</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-10-22</startDate>
            <endDate>2026-10-22</endDate>
        </period>
    </context>
    <context id="c_offering_2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001825452</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>2</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-10-22</startDate>
            <endDate>2026-10-22</endDate>
        </period>
    </context>
    <context id="c_report">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001825452</identifier>
        </entity>
        <period>
            <startDate>2026-10-22</startDate>
            <endDate>2026-10-22</endDate>
        </period>
    </context>
    <unit id="USD">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="pure">
        <measure>pure</measure>
    </unit>
    <unit id="shares">
        <measure>shares</measure>
    </unit>
    <ffd:SubmissnTp contextRef="c_report" id="fee_001">S-1</ffd:SubmissnTp>
    <ffd:FeeExhibitTp contextRef="c_report" id="fee_002">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey contextRef="c_report" id="fee_003">0001825452</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa contextRef="c_report" id="fee_004" xsi:nil="true"/>
    <ffd:OffsetTableNa contextRef="c_report" id="fee_005">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa contextRef="c_report" id="fee_006">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp contextRef="c_report" id="fee_007">S-1</ffd:FormTp>
    <dei:EntityRegistrantName contextRef="c_report" id="fee_008">Onfolio Holdings Inc.</dei:EntityRegistrantName>
    <ffd:PrevslyPdFlg contextRef="c_offering_1" id="fee_009">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="c_offering_1" id="fee_010">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="c_offering_1" id="fee_011">Common Stock, $0.001 par value per share</ffd:OfferingSctyTitl>
    <ffd:Rule457oFlg contextRef="c_offering_1" id="fee_012">true</ffd:Rule457oFlg>
    <ffd:MaxAggtOfferingPric
      contextRef="c_offering_1"
      decimals="INF"
      id="fee_013"
      unitRef="USD">55000000.00</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate
      contextRef="c_offering_1"
      decimals="INF"
      id="fee_014"
      unitRef="pure">0.000087</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="c_offering_1"
      decimals="INF"
      id="fee_015"
      unitRef="USD">4785.00</ffd:FeeAmt>
    <ffd:PrevslyPdFlg contextRef="c_offering_2" id="fee_016">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="c_offering_2" id="fee_017">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="c_offering_2" id="fee_018">Common Stock, $0.001 par value per share</ffd:OfferingSctyTitl>
    <ffd:FeesOthrRuleFlg contextRef="c_offering_2" id="fee_019">true</ffd:FeesOthrRuleFlg>
    <ffd:AmtSctiesRegd
      contextRef="c_offering_2"
      decimals="0"
      id="fee_020"
      unitRef="shares">1000</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty
      contextRef="c_offering_2"
      decimals="INF"
      id="fee_021"
      unitRef="USD">0.5633</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric
      contextRef="c_offering_2"
      decimals="INF"
      id="fee_022"
      unitRef="USD">563.25</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate
      contextRef="c_offering_2"
      decimals="INF"
      id="fee_023"
      unitRef="pure">0.000087</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="c_offering_2"
      decimals="INF"
      id="fee_024"
      unitRef="USD">0.05</ffd:FeeAmt>
    <ffd:TtlOfferingAmt
      contextRef="c_report"
      decimals="INF"
      id="fee_025"
      unitRef="USD">55000563.25</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt
      contextRef="c_report"
      decimals="INF"
      id="fee_026"
      unitRef="USD">4785.05</ffd:TtlFeeAmt>
    <ffd:TtlPrevslyPdAmt
      contextRef="c_report"
      decimals="INF"
      id="fee_027"
      unitRef="USD">0.00</ffd:TtlPrevslyPdAmt>
    <ffd:TtlOffsetAmt
      contextRef="c_report"
      decimals="INF"
      id="fee_028"
      unitRef="USD">0.00</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt
      contextRef="c_report"
      decimals="INF"
      id="fee_029"
      unitRef="USD">4785.05</ffd:NetFeeAmt>
    <ffd:OfferingNote contextRef="c_offering_1" id="fee_030">Pursuant to Rule 416 under the Securities Act of 1933, as amended (the &#x201c;Securities Act&#x201d;), there is also being registered hereby such indeterminate number of additional shares of common stock as may be issued or issuable because of stock splits, stock dividends, stock distributions and similar transactions.&lt;br/&gt;&lt;br/&gt;Reflects $55,000,000 of shares of Common Stock that the registrant may elect, in its sole discretion, to issue and sell to the Selling Stockholder pursuant to an equity purchase facility agreement, dated as of April 10, 2026, by and between the Registrant and the Selling Stockholder (the &#x201c;Facility&#x201d;).&lt;br/&gt;&lt;br/&gt;Estimated solely for the purpose of computing the amount of the registration fee pursuant to Rule 457(c) under the Securities Act of 1933, as amended, based upon the average of the high and low prices for a share of the registrant&#x2019;s Common Stock as reported on the Nasdaq Capital Market on October 19, 2026 which date is a date within five business days of the filing of this registration statement.</ffd:OfferingNote>
    <ffd:OfferingNote contextRef="c_offering_2" id="fee_031">Pursuant to Rule 416 under the Securities Act of 1933, as amended (the &#x201c;Securities Act&#x201d;), there is also being registered hereby such indeterminate number of additional shares of common stock as may be issued or issuable because of stock splits, stock dividends, stock distributions and similar transactions.&lt;br/&gt;&lt;br/&gt;Includes 1,000 shares of Common Stock issued to the Selling Stockholder as a commitment fee pursuant to the Facility.&lt;br/&gt;&lt;br/&gt;Estimated solely for the purpose of computing the amount of the registration fee pursuant to Rule 457(c) under the Securities Act of 1933, as amended, based upon the average of the high and low prices for a share of the registrant&#x2019;s Common Stock as reported on the Nasdaq Capital Market on October 19, 2026 which date is a date within five business days of the filing of this registration statement.</ffd:OfferingNote>
</xbrl>
