<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.26.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>303</ContextCount>
  <ElementCount>506</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>91</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>10</UnitCount>
  <MyReports>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>0000001 - Document - Cover</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/Cover</Role>
      <ShortName>Cover</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>0000002 - Document - Audit Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/AuditInformation</Role>
      <ShortName>Audit Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>9952151 - Statement - Consolidated Balance Sheets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/ConsolidatedBalanceSheets</Role>
      <ShortName>Consolidated Balance Sheets</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>9952152 - Statement - Consolidated Balance Sheets (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/ConsolidatedBalanceSheetsParenthetical</Role>
      <ShortName>Consolidated Balance Sheets (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>9952153 - Statement - Consolidated Statements of Operations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/ConsolidatedStatementsofOperations</Role>
      <ShortName>Consolidated Statements of Operations</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>9952154 - Statement - Consolidated Statements of Comprehensive Loss</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/ConsolidatedStatementsofComprehensiveLoss</Role>
      <ShortName>Consolidated Statements of Comprehensive Loss</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>9952155 - Statement - Consolidated Statements of Stockholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/ConsolidatedStatementsofStockholdersEquity</Role>
      <ShortName>Consolidated Statements of Stockholders' Equity</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>9952156 - Statement - Consolidated Statements of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/ConsolidatedStatementsofCashFlows</Role>
      <ShortName>Consolidated Statements of Cash Flows</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>9952157 - Disclosure - Organization and Description of Business</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/OrganizationandDescriptionofBusiness</Role>
      <ShortName>Organization and Description of Business</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>9952158 - Disclosure - Basis of Presentation and Summary of Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/BasisofPresentationandSummaryofSignificantAccountingPolicies</Role>
      <ShortName>Basis of Presentation and Summary of Significant Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>9952159 - Disclosure - Revenues</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/Revenues</Role>
      <ShortName>Revenues</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>9952160 - Disclosure - Cash Equivalents and Short-Term Investments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/CashEquivalentsandShortTermInvestments</Role>
      <ShortName>Cash Equivalents and Short-Term Investments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>9952161 - Disclosure - Supplemental Financial Statement Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/SupplementalFinancialStatementInformation</Role>
      <ShortName>Supplemental Financial Statement Information</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>9952162 - Disclosure - Acquisitions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/Acquisitions</Role>
      <ShortName>Acquisitions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>9952163 - Disclosure - Goodwill and Intangible Assets, Net</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/GoodwillandIntangibleAssetsNet</Role>
      <ShortName>Goodwill and Intangible Assets, Net</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>9952164 - Disclosure - Team Member Benefit Plans</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/TeamMemberBenefitPlans</Role>
      <ShortName>Team Member Benefit Plans</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>9952165 - Disclosure - Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/Equity</Role>
      <ShortName>Equity</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>9952166 - Disclosure - Restructuring and Other Related Charges</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/RestructuringandOtherRelatedCharges</Role>
      <ShortName>Restructuring and Other Related Charges</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>9952167 - Disclosure - Joint Venture and Equity Method Investment</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/JointVentureandEquityMethodInvestment</Role>
      <ShortName>Joint Venture and Equity Method Investment</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>9952168 - Disclosure - Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/IncomeTaxes</Role>
      <ShortName>Income Taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>9952169 - Disclosure - Net Loss per Share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/NetLossperShare</Role>
      <ShortName>Net Loss per Share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>9952170 - Disclosure - Commitments and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/CommitmentsandContingencies</Role>
      <ShortName>Commitments and Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>9952171 - Disclosure - Subsequent Events</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/SubsequentEvents</Role>
      <ShortName>Subsequent Events</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>9952172 - Disclosure - Schedule II: Valuation and Qualifying Accounts</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/ScheduleIIValuationandQualifyingAccounts</Role>
      <ShortName>Schedule II: Valuation and Qualifying Accounts</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>995445 - Disclosure - Insider Trading Arrangements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements</Role>
      <ShortName>Insider Trading Arrangements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>995447 - Disclosure - Insider Trading Policies and Procedures</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/InsiderTradingPoliciesProc</Role>
      <ShortName>Insider Trading Policies and Procedures</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>995550 - Disclosure - Cybersecurity Risk Management and Strategy Disclosure</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure</Role>
      <ShortName>Cybersecurity Risk Management and Strategy Disclosure</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>27</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>9955511 - Disclosure - Basis of Presentation and Summary of Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/BasisofPresentationandSummaryofSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Basis of Presentation and Summary of Significant Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://about.gitlab.com/role/BasisofPresentationandSummaryofSignificantAccountingPolicies</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>9955512 - Disclosure - Revenues (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/RevenuesTables</Role>
      <ShortName>Revenues (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://about.gitlab.com/role/Revenues</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>9955513 - Disclosure - Cash Equivalents and Short-Term Investments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/CashEquivalentsandShortTermInvestmentsTables</Role>
      <ShortName>Cash Equivalents and Short-Term Investments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://about.gitlab.com/role/CashEquivalentsandShortTermInvestments</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>9955514 - Disclosure - Supplemental Financial Statement Information (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/SupplementalFinancialStatementInformationTables</Role>
      <ShortName>Supplemental Financial Statement Information (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://about.gitlab.com/role/SupplementalFinancialStatementInformation</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>9955515 - Disclosure - Goodwill and Intangible Assets, Net (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/GoodwillandIntangibleAssetsNetTables</Role>
      <ShortName>Goodwill and Intangible Assets, Net (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://about.gitlab.com/role/GoodwillandIntangibleAssetsNet</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>9955516 - Disclosure - Equity (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/EquityTables</Role>
      <ShortName>Equity (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://about.gitlab.com/role/Equity</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>9955517 - Disclosure - Restructuring and Other Related Charges (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/RestructuringandOtherRelatedChargesTables</Role>
      <ShortName>Restructuring and Other Related Charges (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://about.gitlab.com/role/RestructuringandOtherRelatedCharges</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>9955518 - Disclosure - Joint Venture and Equity Method Investment (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/JointVentureandEquityMethodInvestmentTables</Role>
      <ShortName>Joint Venture and Equity Method Investment (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://about.gitlab.com/role/JointVentureandEquityMethodInvestment</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>9955519 - Disclosure - Income Taxes (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/IncomeTaxesTables</Role>
      <ShortName>Income Taxes (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://about.gitlab.com/role/IncomeTaxes</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>9955520 - Disclosure - Net Loss per Share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/NetLossperShareTables</Role>
      <ShortName>Net Loss per Share (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://about.gitlab.com/role/NetLossperShare</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>9955521 - Disclosure - Commitments and Contingencies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/CommitmentsandContingenciesTables</Role>
      <ShortName>Commitments and Contingencies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://about.gitlab.com/role/CommitmentsandContingencies</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>9955522 - Disclosure - Basis of Presentation and Summary of Significant Accounting Policies (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/BasisofPresentationandSummaryofSignificantAccountingPoliciesDetails</Role>
      <ShortName>Basis of Presentation and Summary of Significant Accounting Policies (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://about.gitlab.com/role/BasisofPresentationandSummaryofSignificantAccountingPoliciesPolicies</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>9955523 - Disclosure - Revenues - Disaggregation of Revenue by Product and Service (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/RevenuesDisaggregationofRevenuebyProductandServiceDetails</Role>
      <ShortName>Revenues - Disaggregation of Revenue by Product and Service (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>40</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>9955524 - Disclosure - Revenues - Disaggregation of Revenue by Geographic Region (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/RevenuesDisaggregationofRevenuebyGeographicRegionDetails</Role>
      <ShortName>Revenues - Disaggregation of Revenue by Geographic Region (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>41</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>9955525 - Disclosure - Cash Equivalents and Short-Term Investments - Schedule of Cash and Short Term Investments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/CashEquivalentsandShortTermInvestmentsScheduleofCashandShortTermInvestmentsDetails</Role>
      <ShortName>Cash Equivalents and Short-Term Investments - Schedule of Cash and Short Term Investments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>42</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>9955526 - Disclosure - Cash Equivalents and Short-Term Investments - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/CashEquivalentsandShortTermInvestmentsNarrativeDetails</Role>
      <ShortName>Cash Equivalents and Short-Term Investments - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>9955527 - Disclosure - Cash Equivalents and Short-Term Investments - Schedule of Unrealized Losses Cash Equivalents and Short Term Investment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/CashEquivalentsandShortTermInvestmentsScheduleofUnrealizedLossesCashEquivalentsandShortTermInvestmentDetails</Role>
      <ShortName>Cash Equivalents and Short-Term Investments - Schedule of Unrealized Losses Cash Equivalents and Short Term Investment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>9955528 - Disclosure - Cash Equivalents and Short-Term Investments - Schedule of Short Term Investments by Contractual Maturity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/CashEquivalentsandShortTermInvestmentsScheduleofShortTermInvestmentsbyContractualMaturityDetails</Role>
      <ShortName>Cash Equivalents and Short-Term Investments - Schedule of Short Term Investments by Contractual Maturity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>9955529 - Disclosure - Supplemental Financial Statement Information - Prepaid Expenses and Other Current Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/SupplementalFinancialStatementInformationPrepaidExpensesandOtherCurrentAssetsDetails</Role>
      <ShortName>Supplemental Financial Statement Information - Prepaid Expenses and Other Current Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>9955530 - Disclosure - Supplemental Financial Statement Information - Schedule of Property and Equipment, Net (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/SupplementalFinancialStatementInformationScheduleofPropertyandEquipmentNetDetails</Role>
      <ShortName>Supplemental Financial Statement Information - Schedule of Property and Equipment, Net (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>9955531 - Disclosure - Supplemental Financial Statement Information - Schedule of Accrued Expenses and Other Current Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/SupplementalFinancialStatementInformationScheduleofAccruedExpensesandOtherCurrentLiabilitiesDetails</Role>
      <ShortName>Supplemental Financial Statement Information - Schedule of Accrued Expenses and Other Current Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>9955532 - Disclosure - Supplemental Financial Statement Information - Schedule of Accrued Compensation and Benefits (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/SupplementalFinancialStatementInformationScheduleofAccruedCompensationandBenefitsDetails</Role>
      <ShortName>Supplemental Financial Statement Information - Schedule of Accrued Compensation and Benefits (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>9955533 - Disclosure - Supplemental Financial Statement Information - Other Income (Expense), Net (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/SupplementalFinancialStatementInformationOtherIncomeExpenseNetDetails</Role>
      <ShortName>Supplemental Financial Statement Information - Other Income (Expense), Net (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>9955534 - Disclosure - Acquisitions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/AcquisitionsDetails</Role>
      <ShortName>Acquisitions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://about.gitlab.com/role/Acquisitions</ParentRole>
      <Position>51</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>9955535 - Disclosure - Goodwill and Intangible Assets, Net - Rollforward of Goodwill (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/GoodwillandIntangibleAssetsNetRollforwardofGoodwillDetails</Role>
      <ShortName>Goodwill and Intangible Assets, Net - Rollforward of Goodwill (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>9955536 - Disclosure - Goodwill and Intangible Assets, Net - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/GoodwillandIntangibleAssetsNetNarrativeDetails</Role>
      <ShortName>Goodwill and Intangible Assets, Net - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>9955537 - Disclosure - Goodwill and Intangible Assets, Net - Schedule of Intangible Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/GoodwillandIntangibleAssetsNetScheduleofIntangibleAssetsDetails</Role>
      <ShortName>Goodwill and Intangible Assets, Net - Schedule of Intangible Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>9955538 - Disclosure - Goodwill and Intangible Assets, Net - Schedule of Future Amortization Expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/GoodwillandIntangibleAssetsNetScheduleofFutureAmortizationExpenseDetails</Role>
      <ShortName>Goodwill and Intangible Assets, Net - Schedule of Future Amortization Expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>9955539 - Disclosure - Team Member Benefit Plans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/TeamMemberBenefitPlansDetails</Role>
      <ShortName>Team Member Benefit Plans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://about.gitlab.com/role/TeamMemberBenefitPlans</ParentRole>
      <Position>56</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>9955540 - Disclosure - Equity - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/EquityNarrativeDetails</Role>
      <ShortName>Equity - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>9955541 - Disclosure - Equity - Schedule of Stock Reserved For Future Issuance (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/EquityScheduleofStockReservedForFutureIssuanceDetails</Role>
      <ShortName>Equity - Schedule of Stock Reserved For Future Issuance (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>9955542 - Disclosure - Equity - Awards Available for Grant (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/EquityAwardsAvailableforGrantDetails</Role>
      <ShortName>Equity - Awards Available for Grant (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>9955543 - Disclosure - Equity - Summary of Stock Option Activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/EquitySummaryofStockOptionActivityDetails</Role>
      <ShortName>Equity - Summary of Stock Option Activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>9955544 - Disclosure - Equity - Schedule of Restricted Stock Units Activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/EquityScheduleofRestrictedStockUnitsActivityDetails</Role>
      <ShortName>Equity - Schedule of Restricted Stock Units Activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>9955545 - Disclosure - Equity - Schedule of Weighted Average Fair Value Assumptions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/EquityScheduleofWeightedAverageFairValueAssumptionsDetails</Role>
      <ShortName>Equity - Schedule of Weighted Average Fair Value Assumptions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>9955546 - Disclosure - Equity - Stock-Based Compensation Expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/EquityStockBasedCompensationExpenseDetails</Role>
      <ShortName>Equity - Stock-Based Compensation Expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>9955547 - Disclosure - Restructuring and Other Related Charges - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/RestructuringandOtherRelatedChargesNarrativeDetails</Role>
      <ShortName>Restructuring and Other Related Charges - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>64</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>9955548 - Disclosure - Restructuring and Other Related Charges - Schedule of Restructuring Costs (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/RestructuringandOtherRelatedChargesScheduleofRestructuringCostsDetails</Role>
      <ShortName>Restructuring and Other Related Charges - Schedule of Restructuring Costs (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>9955549 - Disclosure - Restructuring and Other Related Charges - Restructuring Accrual (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/RestructuringandOtherRelatedChargesRestructuringAccrualDetails</Role>
      <ShortName>Restructuring and Other Related Charges - Restructuring Accrual (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>9955550 - Disclosure - Joint Venture and Equity Method Investment - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/JointVentureandEquityMethodInvestmentNarrativeDetails</Role>
      <ShortName>Joint Venture and Equity Method Investment - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>67</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>9955551 - Disclosure - Joint Venture and Equity Method Investment - Schedule of Intercompany Eliminations (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/JointVentureandEquityMethodInvestmentScheduleofIntercompanyEliminationsDetails</Role>
      <ShortName>Joint Venture and Equity Method Investment - Schedule of Intercompany Eliminations (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>68</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>9955552 - Disclosure - Income Taxes - Components of Total Income (Loss) From Continuing Operations (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/IncomeTaxesComponentsofTotalIncomeLossFromContinuingOperationsDetails</Role>
      <ShortName>Income Taxes - Components of Total Income (Loss) From Continuing Operations (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>69</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>9955553 - Disclosure - Income Taxes - Schedule of Income Tax Expense (Benefit) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/IncomeTaxesScheduleofIncomeTaxExpenseBenefitDetails</Role>
      <ShortName>Income Taxes - Schedule of Income Tax Expense (Benefit) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>70</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>9955554 - Disclosure - Income Taxes - Effective Income Tax Rate Reconciliation (2026) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/IncomeTaxesEffectiveIncomeTaxRateReconciliation2026Details</Role>
      <ShortName>Income Taxes - Effective Income Tax Rate Reconciliation (2026) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>71</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>9955555 - Disclosure - Income Taxes - Effective Income Tax Rate Reconciliation (2025 and 2024) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/IncomeTaxesEffectiveIncomeTaxRateReconciliation2025and2024Details</Role>
      <ShortName>Income Taxes - Effective Income Tax Rate Reconciliation (2025 and 2024) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>72</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>9955556 - Disclosure - Income Taxes - Components of Deferred Tax Assets and Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/IncomeTaxesComponentsofDeferredTaxAssetsandLiabilitiesDetails</Role>
      <ShortName>Income Taxes - Components of Deferred Tax Assets and Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>73</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>9955557 - Disclosure - Income Taxes - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/IncomeTaxesNarrativeDetails</Role>
      <ShortName>Income Taxes - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>74</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>9955558 - Disclosure - Income Taxes - Schedule of Cash Paid for Income Taxes, Net of Refunds (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/IncomeTaxesScheduleofCashPaidforIncomeTaxesNetofRefundsDetails</Role>
      <ShortName>Income Taxes - Schedule of Cash Paid for Income Taxes, Net of Refunds (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>75</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>9955559 - Disclosure - Income Taxes - Schedule of Unrecognized Tax Benefits (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/IncomeTaxesScheduleofUnrecognizedTaxBenefitsDetails</Role>
      <ShortName>Income Taxes - Schedule of Unrecognized Tax Benefits (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>76</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>9955560 - Disclosure - Net Loss per Share - Schedule of Earning Per Share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/NetLossperShareScheduleofEarningPerShareDetails</Role>
      <ShortName>Net Loss per Share - Schedule of Earning Per Share (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>77</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>9955561 - Disclosure - Net Loss per Share - Schedule of Potentially Dilutive Securities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/NetLossperShareScheduleofPotentiallyDilutiveSecuritiesDetails</Role>
      <ShortName>Net Loss per Share - Schedule of Potentially Dilutive Securities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>78</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>9955562 - Disclosure - Commitments and Contingencies - Hosting Infrastructure Commitments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/CommitmentsandContingenciesHostingInfrastructureCommitmentsDetails</Role>
      <ShortName>Commitments and Contingencies - Hosting Infrastructure Commitments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>79</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>9955563 - Disclosure - Commitments and Contingencies - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/CommitmentsandContingenciesNarrativeDetails</Role>
      <ShortName>Commitments and Contingencies - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>80</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R81.htm</HtmlFileName>
      <LongName>9955564 - Disclosure - Subsequent Event (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/SubsequentEventDetails</Role>
      <ShortName>Subsequent Event (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://about.gitlab.com/role/SubsequentEvents</ParentRole>
      <Position>81</Position>
    </Report>
    <Report instance="gtlb-20260131.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R82.htm</HtmlFileName>
      <LongName>9955565 - Disclosure - Schedule II: Valuation and Qualifying Accounts (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://about.gitlab.com/role/ScheduleIIValuationandQualifyingAccountsDetails</Role>
      <ShortName>Schedule II: Valuation and Qualifying Accounts (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://about.gitlab.com/role/ScheduleIIValuationandQualifyingAccounts</ParentRole>
      <Position>82</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="10-K" isDefinitelyFs="true" isUsgaap="true" original="gtlb-20260131.htm">gtlb-20260131.htm</File>
    <File>gtlb-20260131.xsd</File>
    <File>gtlb-20260131_cal.xml</File>
    <File>gtlb-20260131_def.xml</File>
    <File>gtlb-20260131_lab.xml</File>
    <File>gtlb-20260131_pre.xml</File>
  </InputFiles>
  <SupplementalFiles>
    <File>gtlb-20260131_g1.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="3">http://fasb.org/srt/2025</BaseTaxonomy>
    <BaseTaxonomy items="1254">http://fasb.org/us-gaap/2025</BaseTaxonomy>
    <BaseTaxonomy items="15">http://xbrl.sec.gov/cyd/2025</BaseTaxonomy>
    <BaseTaxonomy items="37">http://xbrl.sec.gov/dei/2025</BaseTaxonomy>
    <BaseTaxonomy items="12">http://xbrl.sec.gov/ecd/2025</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
