<?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">0001812477</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-04-01</startDate>
            <endDate>2026-04-01</endDate>
        </period>
    </context>
    <context id="c_offering_2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001812477</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>2</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-04-01</startDate>
            <endDate>2026-04-01</endDate>
        </period>
    </context>
    <context id="c_report">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001812477</identifier>
        </entity>
        <period>
            <startDate>2026-04-01</startDate>
            <endDate>2026-04-01</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-8</ffd:SubmissnTp>
    <ffd:FeeExhibitTp contextRef="c_report" id="fee_002">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey contextRef="c_report" id="fee_003">0001812477</dei:EntityCentralIndexKey>
    <ffd:PrevslyPdFlg contextRef="c_offering_1" id="fee_004">false</ffd:PrevslyPdFlg>
    <ffd:PrevslyPdFlg contextRef="c_offering_2" id="fee_005">false</ffd:PrevslyPdFlg>
    <ffd:OfferingTableNa contextRef="c_report" id="fee_006" xsi:nil="true"/>
    <ffd:OffsetTableNa contextRef="c_report" id="fee_007">N/A</ffd:OffsetTableNa>
    <ffd:FormTp contextRef="c_report" id="fee_008">S-8</ffd:FormTp>
    <dei:EntityRegistrantName contextRef="c_report" id="fee_009">Keel Infrastructure Corp.</dei:EntityRegistrantName>
    <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</ffd:OfferingSctyTitl>
    <ffd:FeesOthrRuleFlg contextRef="c_offering_1" id="fee_012">true</ffd:FeesOthrRuleFlg>
    <ffd:AmtSctiesRegd
      contextRef="c_offering_1"
      decimals="0"
      id="fee_013"
      unitRef="shares">3142125</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty
      contextRef="c_offering_1"
      decimals="INF"
      id="fee_014"
      unitRef="USD">2.27</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric
      contextRef="c_offering_1"
      decimals="INF"
      id="fee_015"
      unitRef="USD">7132623.75</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate
      contextRef="c_offering_1"
      decimals="INF"
      id="fee_016"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="c_offering_1"
      decimals="INF"
      id="fee_017"
      unitRef="USD">985.02</ffd:FeeAmt>
    <ffd:OfferingSctyTp contextRef="c_offering_2" id="fee_018">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="c_offering_2" id="fee_019">Common Stock, $0.001 par value</ffd:OfferingSctyTitl>
    <ffd:FeesOthrRuleFlg contextRef="c_offering_2" id="fee_020">true</ffd:FeesOthrRuleFlg>
    <ffd:AmtSctiesRegd
      contextRef="c_offering_2"
      decimals="0"
      id="fee_021"
      unitRef="shares">49713013</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty
      contextRef="c_offering_2"
      decimals="INF"
      id="fee_022"
      unitRef="USD">1.90</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric
      contextRef="c_offering_2"
      decimals="INF"
      id="fee_023"
      unitRef="USD">94454724.70</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate
      contextRef="c_offering_2"
      decimals="INF"
      id="fee_024"
      unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="c_offering_2"
      decimals="INF"
      id="fee_025"
      unitRef="USD">13044.20</ffd:FeeAmt>
    <ffd:TtlOfferingAmt
      contextRef="c_report"
      decimals="INF"
      id="fee_026"
      unitRef="USD">101587348.45</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt
      contextRef="c_report"
      decimals="INF"
      id="fee_027"
      unitRef="USD">14029.22</ffd:TtlFeeAmt>
    <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">14029.22</ffd:NetFeeAmt>
    <ffd:OfferingNote contextRef="c_offering_1" id="fee_030">1a. In accordance with Rule 416(a) under the Securities Act of 1933, as amended (the &#x201c;Securities Act&#x201d;), the registration statement to which this exhibit relates shall also cover any additional shares of Common Stock, $0.001 par value of the Company (the &#x201c;Common Stock&#x201d;) of Keel Infrastructure Corp. (the &#x201c;Registrant&#x201d;) that become issuable by reason of certain corporate transactions or events, including any stock dividend, stock split, recapitalization or certain other similar transactions effected without the Registrant&#x2019;s receipt of consideration that result in an increase in the number of outstanding shares of Common Stock.&lt;br/&gt;&lt;br/&gt;1b. Represents 3,142,125 shares of Common Stock issuable pursuant to options granted under the Bitfarms Ltd. Long-Term Incentive Plan, which has been amended and restated in connection with Bitfarms Ltd.&#x2019;s U.S. redomiciliation and is now the Keel Infrastructure Corp. Amended and Restated Long-Term Performance Incentive Plan (the &#x201c;Keel Plan&#x201d;) that have not yet been exercised.&lt;br/&gt;&lt;br/&gt;1c. Estimated solely for the purpose of calculating the registration fee in accordance with Rule 457(h) under the Securities Act on the basis of $2.27 (converted from C$3.16 at an exchange rate of C$1.00 = $0.7174 which was the daily average exchange rate reported by the Bank of Canada on March 31, 2026, a date within 5 business days of filing the registration statement to which this exhibit relates), which is the weighted average exercise price of option awards outstanding under the Keel Plan as of the date of the registration statement to which this exhibit relates.</ffd:OfferingNote>
    <ffd:OfferingNote contextRef="c_offering_2" id="fee_031">2a. Represents 49,713,013 shares of Common Stock for future issuance under the Keel Plan.&lt;br/&gt;&lt;br/&gt;2b. Estimated solely for the purpose of calculating the registration fee in accordance with Rule 457(c) and (h) under the Securities Act on the basis of the average of the high and low prices of the Common Shares on the Nasdaq Stock Market on March 29, 2026, which was $1.90.</ffd:OfferingNote>
</xbrl>
