<?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">0002019793</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-10-13</startDate>
            <endDate>2026-10-13</endDate>
        </period>
    </context>
    <context id="c_report">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0002019793</identifier>
        </entity>
        <period>
            <startDate>2026-10-13</startDate>
            <endDate>2026-10-13</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-4MEF</ffd:SubmissnTp>
    <ffd:FeeExhibitTp contextRef="c_report" id="fee_002">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey contextRef="c_report" id="fee_003">0002019793</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb contextRef="c_report" id="fee_004">333-296774</ffd:RegnFileNb>
    <ffd:OfferingTableNa contextRef="c_report" id="fee_005" xsi:nil="true"/>
    <ffd:OffsetTableNa contextRef="c_report" id="fee_006">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa contextRef="c_report" id="fee_007">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp contextRef="c_report" id="fee_008">S-4</ffd:FormTp>
    <dei:EntityRegistrantName contextRef="c_report" id="fee_009">XCF GLOBAL, INC.</dei:EntityRegistrantName>
    <ffd:PrevslyPdFlg contextRef="c_offering_1" id="fee_010">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="c_offering_1" id="fee_011">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="c_offering_1" id="fee_012">Common Stock, par value $0.0001 per share</ffd:OfferingSctyTitl>
    <ffd:FeesOthrRuleFlg contextRef="c_offering_1" id="fee_013">true</ffd:FeesOthrRuleFlg>
    <ffd:AmtSctiesRegd
      contextRef="c_offering_1"
      decimals="0"
      id="fee_014"
      unitRef="shares">41173012</ffd:AmtSctiesRegd>
    <ffd:MaxAggtOfferingPric
      contextRef="c_offering_1"
      decimals="INF"
      id="fee_015"
      unitRef="USD">12920091.17</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate
      contextRef="c_offering_1"
      decimals="INF"
      id="fee_016"
      unitRef="pure">0.000087</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="c_offering_1"
      decimals="INF"
      id="fee_017"
      unitRef="USD">1124.05</ffd:FeeAmt>
    <ffd:TtlOfferingAmt
      contextRef="c_report"
      decimals="INF"
      id="fee_018"
      unitRef="USD">12920091.17</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt
      contextRef="c_report"
      decimals="INF"
      id="fee_019"
      unitRef="USD">1124.05</ffd:TtlFeeAmt>
    <ffd:TtlPrevslyPdAmt
      contextRef="c_report"
      decimals="INF"
      id="fee_020"
      unitRef="USD">0.00</ffd:TtlPrevslyPdAmt>
    <ffd:TtlOffsetAmt
      contextRef="c_report"
      decimals="INF"
      id="fee_021"
      unitRef="USD">0.00</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt
      contextRef="c_report"
      decimals="INF"
      id="fee_022"
      unitRef="USD">1124.05</ffd:NetFeeAmt>
    <ffd:OfferingNote contextRef="c_offering_1" id="fee_023">Rule 457(f) Fee Calculation Details&lt;br/&gt;This Registration Statement registers additional shares of Common Stock, par value $0.0001 per share, of XCF Global, Inc. (the &#x201c;Registrant&#x201d;) for issuance in connection with the mergers and other transactions contemplated by the Business Combination Agreement, dated as of April 13, 2026 (as amended by Amendment No. 1, dated as of September 14, 2026), by and among the Registrant, DevvStream Corp., Southern Energy Renewables Inc., DevvStream Merger Sub Inc. and Southern Merger Sub Inc. In accordance with Rule 462(b) under the Securities Act of 1933, as amended, the proposed maximum aggregate offering price of additional securities registered hereunder ($12,920,091.17) does not exceed 20% of the proposed maximum aggregate offering price of $64,600,457.10 set forth in the Registrant&#x2019;s Prior Registration Statement on Form S-4 (Registration No. 333-296774).&lt;br/&gt;&lt;br/&gt;The number of additional shares registered hereunder equals the quotient of (i) $12,920,091.42 divided by (ii) $0.3138 (the average of the high and low prices of the Registrant&#x2019;s Common Stock on The Nasdaq Capital Market on October 8, 2026, which date is within five business days prior to the filing of this Registration Statement, determined pursuant to Rules 457(c) and 457(f)(1) under the Securities Act). The registration fee is calculated by multiplying the proposed maximum aggregate offering price of $12,920,091.17 by the fee rate of 0.000087, resulting in a fee of $1,124.05.&lt;br/&gt;</ffd:OfferingNote>
</xbrl>
