<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.24.3</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>406</ContextCount>
  <ElementCount>419</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>136</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>5</UnitCount>
  <MyReports>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>000 - Document - Document And Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/DocumentAndEntityInformation</Role>
      <ShortName>Document And Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>001 - Statement - Unaudited Condensed Consolidated Balance Sheets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/ConsolidatedBalanceSheet</Role>
      <ShortName>Unaudited Condensed Consolidated Balance Sheets</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>002 - Statement - Unaudited Condensed Consolidated Balance Sheets (Parentheticals)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/ConsolidatedBalanceSheet_Parentheticals</Role>
      <ShortName>Unaudited Condensed Consolidated Balance Sheets (Parentheticals)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>003 - Statement - Unaudited Condensed Consolidated Statements of Operations and Comprehensive Loss</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/ConsolidatedIncomeStatement</Role>
      <ShortName>Unaudited Condensed Consolidated Statements of Operations and Comprehensive Loss</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>004 - Statement - Unaudited Condensed Consolidated Statements of Changes in Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/ShareholdersEquityType2or3</Role>
      <ShortName>Unaudited Condensed Consolidated Statements of Changes in Equity</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>005 - Statement - Unaudited Condensed Consolidated Statements of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/ConsolidatedCashFlow</Role>
      <ShortName>Unaudited Condensed Consolidated Statements of Cash Flows</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>006 - Disclosure - Nature of Business and Organization</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/NatureofBusinessandOrganization</Role>
      <ShortName>Nature of Business and Organization</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>007 - Disclosure - Summary of Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/SummaryofSignificantAccountingPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>008 - Disclosure - Acquisition</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/Acquisition</Role>
      <ShortName>Acquisition</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>009 - Disclosure - Accounts Receivable, Net</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/AccountsReceivableNet</Role>
      <ShortName>Accounts Receivable, Net</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>010 - Disclosure - Prepayments, Deposits and Other Assets, Net</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/PrepaymentsDepositsandOtherAssetsNet</Role>
      <ShortName>Prepayments, Deposits and Other Assets, Net</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>011 - Disclosure - Intangible Assets, Net</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/IntangibleAssetsNet</Role>
      <ShortName>Intangible Assets, Net</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>012 - Disclosure - Related Party Balances and Transactions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/RelatedPartyBalancesandTransactions</Role>
      <ShortName>Related Party Balances and Transactions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>013 - Disclosure - Bank Loans</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/BankLoans</Role>
      <ShortName>Bank Loans</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>014 - Disclosure - Lease</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/Lease</Role>
      <ShortName>Lease</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>015 - Disclosure - Convertible Notes</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://x3holdings.com/role/ConvertibleNotes</Role>
      <ShortName>Convertible Notes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>016 - Disclosure - Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/Taxes</Role>
      <ShortName>Taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>017 - Disclosure - Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/Equity</Role>
      <ShortName>Equity</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>018 - Disclosure - Commitments and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/CommitmentsandContingencies</Role>
      <ShortName>Commitments and Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>019 - Disclosure - Segment Reporting</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/SegmentReporting</Role>
      <ShortName>Segment Reporting</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>020 - Disclosure - Subsequent Events</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/SubsequentEvents</Role>
      <ShortName>Subsequent Events</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>996000 - Disclosure - Accounting Policies, by Policy (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/AccountingPoliciesByPolicy</Role>
      <ShortName>Accounting Policies, by Policy (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://x3holdings.com/role/SummaryofSignificantAccountingPolicies</ParentRole>
      <Position>22</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>996001 - Disclosure - Nature of Business and Organization (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/NatureofBusinessandOrganizationTables</Role>
      <ShortName>Nature of Business and Organization (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://x3holdings.com/role/NatureofBusinessandOrganization</ParentRole>
      <Position>23</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>996002 - Disclosure - Summary of Significant Accounting Policies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/SummaryofSignificantAccountingPoliciesTables</Role>
      <ShortName>Summary of Significant Accounting Policies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://x3holdings.com/role/SummaryofSignificantAccountingPolicies</ParentRole>
      <Position>24</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>996003 - Disclosure - Acquisition (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/AcquisitionTables</Role>
      <ShortName>Acquisition (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://x3holdings.com/role/Acquisition</ParentRole>
      <Position>25</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>996004 - Disclosure - Accounts Receivable, Net (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/AccountsReceivableNetTables</Role>
      <ShortName>Accounts Receivable, Net (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://x3holdings.com/role/AccountsReceivableNet</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>996005 - Disclosure - Prepayments, Deposits and Other Assets, Net (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/PrepaymentsDepositsandOtherAssetsNetTables</Role>
      <ShortName>Prepayments, Deposits and Other Assets, Net (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://x3holdings.com/role/PrepaymentsDepositsandOtherAssetsNet</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>996006 - Disclosure - Intangible Assets, Net (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/IntangibleAssetsNetTables</Role>
      <ShortName>Intangible Assets, Net (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://x3holdings.com/role/IntangibleAssetsNet</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>996007 - Disclosure - Related Party Balances and Transactions (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/RelatedPartyBalancesandTransactionsTables</Role>
      <ShortName>Related Party Balances and Transactions (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://x3holdings.com/role/RelatedPartyBalancesandTransactions</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>996008 - Disclosure - Bank Loans (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/BankLoansTables</Role>
      <ShortName>Bank Loans (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://x3holdings.com/role/BankLoans</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>996009 - Disclosure - Lease (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/LeaseTables</Role>
      <ShortName>Lease (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://x3holdings.com/role/Lease</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>996010 - Disclosure - Convertible Notes (Tables)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://x3holdings.com/role/ConvertibleNotesTables</Role>
      <ShortName>Convertible Notes (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://x3holdings.com/role/ConvertibleNotes</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>996011 - Disclosure - Taxes (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/TaxesTables</Role>
      <ShortName>Taxes (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://x3holdings.com/role/Taxes</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>996012 - Disclosure - Equity (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/EquityTables</Role>
      <ShortName>Equity (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://x3holdings.com/role/Equity</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>996013 - Disclosure - Segment Reporting (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/SegmentReportingTables</Role>
      <ShortName>Segment Reporting (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://x3holdings.com/role/SegmentReporting</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>996014 - Disclosure - Nature of Business and Organization (Details) - Schedule of Details of Group???s Principal Subsidiaries</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/ScheduleofDetailsofGroupsPrincipalSubsidiariesTable</Role>
      <ShortName>Nature of Business and Organization (Details) - Schedule of Details of Group???s Principal Subsidiaries</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://x3holdings.com/role/NatureofBusinessandOrganizationTables</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>996015 - Disclosure - Summary of Significant Accounting Policies (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/SummaryofSignificantAccountingPoliciesDetails</Role>
      <ShortName>Summary of Significant Accounting Policies (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://x3holdings.com/role/SummaryofSignificantAccountingPoliciesTables</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>996016 - Disclosure - Summary of Significant Accounting Policies (Details) - Schedule of Financial Assets and Liabilities Measured at Fair Value on a Recurring Basis</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/ScheduleofFinancialAssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisTable</Role>
      <ShortName>Summary of Significant Accounting Policies (Details) - Schedule of Financial Assets and Liabilities Measured at Fair Value on a Recurring Basis</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://x3holdings.com/role/SummaryofSignificantAccountingPoliciesTables</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>996017 - Disclosure - Summary of Significant Accounting Policies (Details) - Schedule of Recurring Basis using Significant Unobservable Inputs</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/ScheduleofRecurringBasisusingSignificantUnobservableInputsTable</Role>
      <ShortName>Summary of Significant Accounting Policies (Details) - Schedule of Recurring Basis using Significant Unobservable Inputs</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://x3holdings.com/role/SummaryofSignificantAccountingPoliciesTables</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>996018 - Disclosure - Acquisition (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/AcquisitionDetails</Role>
      <ShortName>Acquisition (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://x3holdings.com/role/AcquisitionTables</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>996019 - Disclosure - Acquisition (Details) - Schedule of Fair Value of the Identifiable Assets Acquired and Liabilities Assumed</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/ScheduleofFairValueoftheIdentifiableAssetsAcquiredandLiabilitiesAssumedTable</Role>
      <ShortName>Acquisition (Details) - Schedule of Fair Value of the Identifiable Assets Acquired and Liabilities Assumed</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://x3holdings.com/role/AcquisitionTables</ParentRole>
      <Position>41</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>996020 - Disclosure - Accounts Receivable, Net (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/AccountsReceivableNetDetails</Role>
      <ShortName>Accounts Receivable, Net (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://x3holdings.com/role/AccountsReceivableNetTables</ParentRole>
      <Position>42</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>996021 - Disclosure - Accounts Receivable, Net (Details) - Schedule of Accounts Receivable, Net</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/ScheduleofAccountsReceivableNetTable</Role>
      <ShortName>Accounts Receivable, Net (Details) - Schedule of Accounts Receivable, Net</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://x3holdings.com/role/AccountsReceivableNetTables</ParentRole>
      <Position>43</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>996022 - Disclosure - Accounts Receivable, Net (Details) - Schedule of Movement of Allowance for Doubtful Accounts</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/ScheduleofMovementofAllowanceforDoubtfulAccountsTable</Role>
      <ShortName>Accounts Receivable, Net (Details) - Schedule of Movement of Allowance for Doubtful Accounts</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://x3holdings.com/role/AccountsReceivableNetTables</ParentRole>
      <Position>44</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>996023 - Disclosure - Prepayments, Deposits and Other Assets, Net (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/PrepaymentsDepositsandOtherAssetsNetDetails</Role>
      <ShortName>Prepayments, Deposits and Other Assets, Net (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://x3holdings.com/role/PrepaymentsDepositsandOtherAssetsNetTables</ParentRole>
      <Position>45</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>996024 - Disclosure - Prepayments, Deposits and Other Assets, Net (Details) - Schedule of Prepayments, Deposits and Other Assets, Net</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/ScheduleofPrepaymentsDepositsandOtherAssetsNetTable</Role>
      <ShortName>Prepayments, Deposits and Other Assets, Net (Details) - Schedule of Prepayments, Deposits and Other Assets, Net</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://x3holdings.com/role/PrepaymentsDepositsandOtherAssetsNetTables</ParentRole>
      <Position>46</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>996025 - Disclosure - Prepayments, Deposits and Other Assets, Net (Details) - Schedule of Allowance for Credit Losses</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/ScheduleofAllowanceforCreditLossesTable</Role>
      <ShortName>Prepayments, Deposits and Other Assets, Net (Details) - Schedule of Allowance for Credit Losses</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://x3holdings.com/role/PrepaymentsDepositsandOtherAssetsNetTables</ParentRole>
      <Position>47</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>996026 - Disclosure - Intangible Assets, Net (Details) - Schedule of Intangible Assets, Net</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/ScheduleofIntangibleAssetsNetTable</Role>
      <ShortName>Intangible Assets, Net (Details) - Schedule of Intangible Assets, Net</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://x3holdings.com/role/IntangibleAssetsNetTables</ParentRole>
      <Position>48</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>996027 - Disclosure - Related Party Balances and Transactions (Details) - Schedule of Relationship of Related Parties</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/ScheduleofRelationshipofRelatedPartiesTable</Role>
      <ShortName>Related Party Balances and Transactions (Details) - Schedule of Relationship of Related Parties</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://x3holdings.com/role/RelatedPartyBalancesandTransactionsTables</ParentRole>
      <Position>49</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>996028 - Disclosure - Related Party Balances and Transactions (Details) - Schedule of Due from Related Parties</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/ScheduleofDuefromRelatedPartiesTable</Role>
      <ShortName>Related Party Balances and Transactions (Details) - Schedule of Due from Related Parties</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://x3holdings.com/role/RelatedPartyBalancesandTransactionsTables</ParentRole>
      <Position>50</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>996029 - Disclosure - Related Party Balances and Transactions (Details) - Schedule of Due to Related Parties</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/ScheduleofDuetoRelatedPartiesTable</Role>
      <ShortName>Related Party Balances and Transactions (Details) - Schedule of Due to Related Parties</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://x3holdings.com/role/RelatedPartyBalancesandTransactionsTables</ParentRole>
      <Position>51</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>996030 - Disclosure - Related Party Balances and Transactions (Details) - Schedule of Related Party Transactions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/ScheduleofRelatedPartyTransactionsTable</Role>
      <ShortName>Related Party Balances and Transactions (Details) - Schedule of Related Party Transactions</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://x3holdings.com/role/RelatedPartyBalancesandTransactionsTables</ParentRole>
      <Position>52</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>996031 - Disclosure - Bank Loans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/BankLoansDetails</Role>
      <ShortName>Bank Loans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://x3holdings.com/role/BankLoansTables</ParentRole>
      <Position>53</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>996032 - Disclosure - Bank Loans (Details) - Schedule of Outstanding Balance of Short-Term Bank Loans</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/ScheduleofOutstandingBalanceofShortTermBankLoansTable</Role>
      <ShortName>Bank Loans (Details) - Schedule of Outstanding Balance of Short-Term Bank Loans</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://x3holdings.com/role/BankLoansTables</ParentRole>
      <Position>54</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>996033 - Disclosure - Bank Loans (Details) - Schedule of Outstanding Balance of Short-Term Bank Loans (Parentheticals)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/ScheduleofOutstandingBalanceofShortTermBankLoansTable_Parentheticals</Role>
      <ShortName>Bank Loans (Details) - Schedule of Outstanding Balance of Short-Term Bank Loans (Parentheticals)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://x3holdings.com/role/BankLoansTables</ParentRole>
      <Position>55</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>996034 - Disclosure - Bank Loans (Details) - Schedule of Bank Loans</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/ScheduleofBankLoansTable</Role>
      <ShortName>Bank Loans (Details) - Schedule of Bank Loans</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://x3holdings.com/role/BankLoansTables</ParentRole>
      <Position>56</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>996035 - Disclosure - Lease (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/LeaseDetails</Role>
      <ShortName>Lease (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://x3holdings.com/role/LeaseTables</ParentRole>
      <Position>57</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>996036 - Disclosure - Lease (Details) - Schedule of Operating Leases</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/ScheduleofOperatingLeasesTable</Role>
      <ShortName>Lease (Details) - Schedule of Operating Leases</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://x3holdings.com/role/LeaseTables</ParentRole>
      <Position>58</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>996037 - Disclosure - Lease (Details) - Schedule of Weighted Average Remaining Lease Terms and Discount Rates</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/ScheduleofWeightedAverageRemainingLeaseTermsandDiscountRatesTable</Role>
      <ShortName>Lease (Details) - Schedule of Weighted Average Remaining Lease Terms and Discount Rates</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://x3holdings.com/role/LeaseTables</ParentRole>
      <Position>59</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>996038 - Disclosure - Lease (Details) - Schedule of Maturities of Lease Liabilities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/ScheduleofMaturitiesofLeaseLiabilitiesTable</Role>
      <ShortName>Lease (Details) - Schedule of Maturities of Lease Liabilities</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://x3holdings.com/role/LeaseTables</ParentRole>
      <Position>60</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>996039 - Disclosure - Convertible Notes (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://x3holdings.com/role/ConvertibleNotesDetails</Role>
      <ShortName>Convertible Notes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://x3holdings.com/role/ConvertibleNotesTables</ParentRole>
      <Position>61</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>996040 - Disclosure - Convertible Notes (Details) - Schedule of Convertible Notes</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://x3holdings.com/role/ScheduleofConvertibleNotesTable</Role>
      <ShortName>Convertible Notes (Details) - Schedule of Convertible Notes</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://x3holdings.com/role/ConvertibleNotesTables</ParentRole>
      <Position>62</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>996041 - Disclosure - Taxes (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/TaxesDetails</Role>
      <ShortName>Taxes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://x3holdings.com/role/TaxesTables</ParentRole>
      <Position>63</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>996042 - Disclosure - Taxes (Details) - Schedule of Provision for Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/ScheduleofProvisionforIncomeTaxesTable</Role>
      <ShortName>Taxes (Details) - Schedule of Provision for Income Taxes</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://x3holdings.com/role/TaxesTables</ParentRole>
      <Position>64</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>996043 - Disclosure - Taxes (Details) - Schedule of Effective Tax Rate</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/ScheduleofEffectiveTaxRateTable</Role>
      <ShortName>Taxes (Details) - Schedule of Effective Tax Rate</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://x3holdings.com/role/TaxesTables</ParentRole>
      <Position>65</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>996044 - Disclosure - Taxes (Details) - Schedule of Deferred Tax Assets and Liabilities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/ScheduleofDeferredTaxAssetsandLiabilitiesTable</Role>
      <ShortName>Taxes (Details) - Schedule of Deferred Tax Assets and Liabilities</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://x3holdings.com/role/TaxesTables</ParentRole>
      <Position>66</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>996045 - Disclosure - Taxes (Details) - Schedule of Taxes Payable</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/ScheduleofTaxesPayableTable</Role>
      <ShortName>Taxes (Details) - Schedule of Taxes Payable</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://x3holdings.com/role/TaxesTables</ParentRole>
      <Position>67</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>996046 - Disclosure - Equity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/EquityDetails</Role>
      <ShortName>Equity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://x3holdings.com/role/EquityTables</ParentRole>
      <Position>68</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>996047 - Disclosure - Equity (Details) - Schedule of Estimate the Fair Value of Stock Options</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/ScheduleofEstimatetheFairValueofStockOptionsTable</Role>
      <ShortName>Equity (Details) - Schedule of Estimate the Fair Value of Stock Options</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://x3holdings.com/role/EquityTables</ParentRole>
      <Position>69</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>996048 - Disclosure - Equity (Details) - Schedule of Activities of the Stock Options</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/ScheduleofActivitiesoftheStockOptionsTable</Role>
      <ShortName>Equity (Details) - Schedule of Activities of the Stock Options</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://x3holdings.com/role/EquityTables</ParentRole>
      <Position>70</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>996049 - Disclosure - Commitments and Contingencies (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/CommitmentsandContingenciesDetails</Role>
      <ShortName>Commitments and Contingencies (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://x3holdings.com/role/CommitmentsandContingencies</ParentRole>
      <Position>71</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>996050 - Disclosure - Segment Reporting (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/SegmentReportingDetails</Role>
      <ShortName>Segment Reporting (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://x3holdings.com/role/SegmentReportingTables</ParentRole>
      <Position>72</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>996051 - Disclosure - Segment Reporting (Details) - Schedule of Revenues</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/ScheduleofRevenuesTable</Role>
      <ShortName>Segment Reporting (Details) - Schedule of Revenues</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://x3holdings.com/role/SegmentReportingTables</ParentRole>
      <Position>73</Position>
    </Report>
    <Report instance="ea0222113-6k_x3hold.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>996052 - Disclosure - Subsequent Events (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://x3holdings.com/role/SubsequentEventsDetails</Role>
      <ShortName>Subsequent Events (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://x3holdings.com/role/SubsequentEvents</ParentRole>
      <Position>74</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File doctype="6-K" isDefinitelyFs="true" isUsgaap="true" original="ea0222113-6k_x3hold.htm">ea0222113-6k_x3hold.htm</File>
    <File doctype="6-K" isDefinitelyFs="true" isUsgaap="true" original="ea022211301ex99-1_x3hold.htm">ea022211301ex99-1_x3hold.htm</File>
    <File>xtkg-20240630.xsd</File>
    <File>xtkg-20240630_cal.xml</File>
    <File>xtkg-20240630_def.xml</File>
    <File>xtkg-20240630_lab.xml</File>
    <File>xtkg-20240630_pre.xml</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy items="1133">http://fasb.org/us-gaap/2024</BaseTaxonomy>
    <BaseTaxonomy items="9">http://xbrl.sec.gov/dei/2024</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
