<?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">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="AsOf2025-10-22">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0002019793</identifier>
        </entity>
        <period>
            <startDate>2025-10-22</startDate>
            <endDate>2025-10-22</endDate>
        </period>
    </context>
    <context id="From2025-10-222025-10-22_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>2025-10-22</startDate>
            <endDate>2025-10-22</endDate>
        </period>
    </context>
    <unit id="USD">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="Shares">
        <measure>shares</measure>
    </unit>
    <unit id="USDPShares">
        <divide>
            <unitNumerator>
                <measure>iso4217:USD</measure>
            </unitNumerator>
            <unitDenominator>
                <measure>shares</measure>
            </unitDenominator>
        </divide>
    </unit>
    <unit id="Ratio">
        <measure>pure</measure>
    </unit>
    <dei:EntityCentralIndexKey contextRef="AsOf2025-10-22" id="Fact000003">0002019793</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp contextRef="AsOf2025-10-22" id="xdx2ixbrl0009">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp contextRef="AsOf2025-10-22" id="Fact000010">S-1</ffd:FormTp>
    <ffd:SubmissnTp contextRef="AsOf2025-10-22" id="Fact000011">S-1</ffd:SubmissnTp>
    <dei:EntityRegistrantName contextRef="AsOf2025-10-22" id="Fact000012">XCF GLOBAL, INC.</dei:EntityRegistrantName>
    <ffd:OfferingSctyTp contextRef="From2025-10-222025-10-22_1" id="Fact000013">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="From2025-10-222025-10-22_1" id="Fact000014">Class A Common Stock, par value $0.001 per share</ffd:OfferingSctyTitl>
    <ffd:FeesOthrRuleFlg contextRef="From2025-10-222025-10-22_1" id="Fact000020">true</ffd:FeesOthrRuleFlg>
    <ffd:AmtSctiesRegd
      contextRef="From2025-10-222025-10-22_1"
      decimals="INF"
      id="Fact000015"
      unitRef="Shares">47619047</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty
      contextRef="From2025-10-222025-10-22_1"
      decimals="INF"
      id="Fact000016"
      unitRef="USDPShares">1.05</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric
      contextRef="From2025-10-222025-10-22_1"
      decimals="INF"
      id="Fact000017"
      unitRef="USD">50000000</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate
      contextRef="From2025-10-222025-10-22_1"
      decimals="INF"
      id="Fact000018"
      unitRef="Ratio">0.0001381</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="From2025-10-222025-10-22_1"
      decimals="INF"
      id="Fact000019"
      unitRef="USD">6905</ffd:FeeAmt>
    <ffd:TtlOfferingAmt
      contextRef="AsOf2025-10-22"
      decimals="0"
      id="Fact000021"
      unitRef="USD">50000000</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt
      contextRef="AsOf2025-10-22"
      decimals="INF"
      id="Fact000022"
      unitRef="USD">6905</ffd:TtlFeeAmt>
    <ffd:PrevslyPdFlg contextRef="From2025-10-222025-10-22_1" id="Fact000023">false</ffd:PrevslyPdFlg>
    <ffd:TtlPrevslyPdAmt
      contextRef="AsOf2025-10-22"
      decimals="0"
      id="Fact000024"
      unitRef="USD">0.00</ffd:TtlPrevslyPdAmt>
    <ffd:TtlOffsetAmt
      contextRef="AsOf2025-10-22"
      decimals="0"
      id="Fact000025"
      unitRef="USD">0.00</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt
      contextRef="AsOf2025-10-22"
      decimals="INF"
      id="Fact000026"
      unitRef="USD">6905</ffd:NetFeeAmt>
    <ffd:OfferingNote contextRef="From2025-10-222025-10-22_1" id="Fact000028">Pursuant to Rule 416(a) under the Securities Act of 1933, as amended (the &#x201c;Securities Act&#x201d;), this registration statement
shall be deemed to cover any additional securities to be offered or issued from stock splits, stock dividends or similar transactions
with respect to the shares being registered.Estimated solely for the purpose of calculating the registration fee pursuant to Rule 457(c) under the Securities Act. The price shown
is the average of the high and low selling price of the common stock on October 21, 2025, as reported on the Nasdaq Capital Market.</ffd:OfferingNote>
    <ffd:OffsetTableNa contextRef="AsOf2025-10-22" id="Fact000029">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa contextRef="AsOf2025-10-22" id="Fact000030">N/A</ffd:CombinedProspectusTableNa>
</xbrl>
