<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.26.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>356</ContextCount>
  <ElementCount>619</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>127</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>14</UnitCount>
  <MyReports>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>995200090 - Document - Document and Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DocumentDocumentAndEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>995200100 - Statement - CONSOLIDATED BALANCE SHEETS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/StatementConsolidatedBalanceSheets</Role>
      <ShortName>CONSOLIDATED BALANCE SHEETS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>995200105 - Statement - CONSOLIDATED BALANCE SHEETS (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/StatementConsolidatedBalanceSheetsParenthetical</Role>
      <ShortName>CONSOLIDATED BALANCE SHEETS (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>995200200 - Statement - CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/StatementConsolidatedStatementsOfComprehensiveIncome</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>995200205 - Statement - CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/StatementConsolidatedStatementsOfComprehensiveIncomeParenthetical</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>995200300 - Statement - CONSOLIDATED STATEMENTS OF CHANGES IN SHAREHOLDERS' EQUITY</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/StatementConsolidatedStatementsOfChangesInShareholdersEquity</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF CHANGES IN SHAREHOLDERS' EQUITY</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>995200400 - Statement - CONSOLIDATED STATEMENTS OF CASH FLOWS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/StatementConsolidatedStatementsOfCashFlows</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF CASH FLOWS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>995210101 - Disclosure - Nature of operations and reorganizations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureNatureOfOperationsAndReorganizations</Role>
      <ShortName>Nature of operations and reorganizations</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>995210201 - Disclosure - Significant accounting policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureSignificantAccountingPolicies</Role>
      <ShortName>Significant accounting policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>995210301 - Disclosure - Business Combination</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureBusinessCombination</Role>
      <ShortName>Business Combination</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>995210401 - Disclosure - Cash and cash equivalents</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureCashAndCashEquivalents</Role>
      <ShortName>Cash and cash equivalents</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>995210501 - Disclosure - Bank deposits, net</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureBankDepositsNet</Role>
      <ShortName>Bank deposits, net</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>995210601 - Disclosure - Investment securities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureInvestmentSecurities</Role>
      <ShortName>Investment securities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>995210701 - Disclosure - Accounts and notes receivable, net</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureAccountsAndNotesReceivableNet</Role>
      <ShortName>Accounts and notes receivable, net</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>995210801 - Disclosure - Inventories</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureInventories</Role>
      <ShortName>Inventories</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>995210901 - Disclosure - Prepayments and other current assets, net</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosurePrepaymentsAndOtherCurrentAssetsNet</Role>
      <ShortName>Prepayments and other current assets, net</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>995211001 - Disclosure - Property, equipment and leasehold improvement, net</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosurePropertyEquipmentAndLeaseholdImprovementNet</Role>
      <ShortName>Property, equipment and leasehold improvement, net</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>995211101 - Disclosure - Intangible assets, net</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureIntangibleAssetsNet</Role>
      <ShortName>Intangible assets, net</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>995211201 - Disclosure - Long-term investments, net</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureLongTermInvestmentsNet</Role>
      <ShortName>Long-term investments, net</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>995211301 - Disclosure - Goodwill</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureGoodwill</Role>
      <ShortName>Goodwill</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>995211401 - Disclosure - Other non-current assets, net</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureOtherNonCurrentAssetsNet</Role>
      <ShortName>Other non-current assets, net</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>995211501 - Disclosure - Accounts and notes payable</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureAccountsAndNotesPayable</Role>
      <ShortName>Accounts and notes payable</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>995211601 - Disclosure - Short-term loans</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureShortTermLoans</Role>
      <ShortName>Short-term loans</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>995211701 - Disclosure - Accrued expenses and other current liabilities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureAccruedExpensesAndOtherCurrentLiabilities</Role>
      <ShortName>Accrued expenses and other current liabilities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>995211801 - Disclosure - Leases</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureLeases</Role>
      <ShortName>Leases</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>995211901 - Disclosure - Income tax expense</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureIncomeTaxExpense</Role>
      <ShortName>Income tax expense</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>995212001 - Disclosure - Revenues</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureRevenues</Role>
      <ShortName>Revenues</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>27</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>995212101 - Disclosure - Share-based compensation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureShareBasedCompensation</Role>
      <ShortName>Share-based compensation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>28</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>995212201 - Disclosure - Shareholders' equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureShareholdersEquity</Role>
      <ShortName>Shareholders' equity</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>29</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>995212301 - Disclosure - Net income per ordinary share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureNetIncomePerOrdinaryShare</Role>
      <ShortName>Net income per ordinary share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>30</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>995212401 - Disclosure - Related party transactions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureRelatedPartyTransactions</Role>
      <ShortName>Related party transactions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>31</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>995212501 - Disclosure - Fair value measurement</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureFairValueMeasurement</Role>
      <ShortName>Fair value measurement</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>32</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>995212601 - Disclosure - Commitments and contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureCommitmentsAndContingencies</Role>
      <ShortName>Commitments and contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>33</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>995212701 - Disclosure - Segment information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureSegmentInformation</Role>
      <ShortName>Segment information</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>34</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>995410 - Disclosure - Pay vs Performance Disclosure</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/PvpDisclosure</Role>
      <ShortName>Pay vs Performance Disclosure</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>35</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.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>36</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.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>37</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>99920202 - Disclosure - Significant accounting policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Significant accounting policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <Position>38</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>99930103 - Disclosure - Nature of operations and reorganizations (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureNatureOfOperationsAndReorganizationsTables</Role>
      <ShortName>Nature of operations and reorganizations (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.relxtech.com/role/DisclosureNatureOfOperationsAndReorganizations</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>99930203 - Disclosure - Significant accounting policies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureSignificantAccountingPoliciesTables</Role>
      <ShortName>Significant accounting policies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.relxtech.com/role/DisclosureSignificantAccountingPolicies</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>99930303 - Disclosure - Business Combination (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureBusinessCombinationTables</Role>
      <ShortName>Business Combination (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.relxtech.com/role/DisclosureBusinessCombination</ParentRole>
      <Position>41</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>99930403 - Disclosure - Cash and cash equivalents (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureCashAndCashEquivalentsTables</Role>
      <ShortName>Cash and cash equivalents (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.relxtech.com/role/DisclosureCashAndCashEquivalents</ParentRole>
      <Position>42</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>99930503 - Disclosure - Bank deposits, net (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureBankDepositsNetTables</Role>
      <ShortName>Bank deposits, net (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.relxtech.com/role/DisclosureBankDepositsNet</ParentRole>
      <Position>43</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>99930603 - Disclosure - Investment securities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureInvestmentSecuritiesTables</Role>
      <ShortName>Investment securities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.relxtech.com/role/DisclosureInvestmentSecurities</ParentRole>
      <Position>44</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>99930703 - Disclosure - Accounts and notes receivable, net (Tables)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureAccountsAndNotesReceivableNetTables</Role>
      <ShortName>Accounts and notes receivable, net (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.relxtech.com/role/DisclosureAccountsAndNotesReceivableNet</ParentRole>
      <Position>45</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>99930803 - Disclosure - Inventories (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureInventoriesTables</Role>
      <ShortName>Inventories (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.relxtech.com/role/DisclosureInventories</ParentRole>
      <Position>46</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>99930903 - Disclosure - Prepayments and other current assets, net (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosurePrepaymentsAndOtherCurrentAssetsNetTables</Role>
      <ShortName>Prepayments and other current assets, net (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.relxtech.com/role/DisclosurePrepaymentsAndOtherCurrentAssetsNet</ParentRole>
      <Position>47</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>99931003 - Disclosure - Property, equipment and leasehold improvement, net (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosurePropertyEquipmentAndLeaseholdImprovementNetTables</Role>
      <ShortName>Property, equipment and leasehold improvement, net (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.relxtech.com/role/DisclosurePropertyEquipmentAndLeaseholdImprovementNet</ParentRole>
      <Position>48</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>99931103 - Disclosure - Intangible assets, net (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureIntangibleAssetsNetTables</Role>
      <ShortName>Intangible assets, net (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.relxtech.com/role/DisclosureIntangibleAssetsNet</ParentRole>
      <Position>49</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>99931203 - Disclosure - Long-term investments, net (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureLongTermInvestmentsNetTables</Role>
      <ShortName>Long-term investments, net (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.relxtech.com/role/DisclosureLongTermInvestmentsNet</ParentRole>
      <Position>50</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>99931303 - Disclosure - Goodwill (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureGoodwillTables</Role>
      <ShortName>Goodwill (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.relxtech.com/role/DisclosureGoodwill</ParentRole>
      <Position>51</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>99931403 - Disclosure - Other non-current assets, net (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureOtherNonCurrentAssetsNetTables</Role>
      <ShortName>Other non-current assets, net (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.relxtech.com/role/DisclosureOtherNonCurrentAssetsNet</ParentRole>
      <Position>52</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>99931503 - Disclosure - Accounts and notes payable (Tables)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureAccountsAndNotesPayableTables</Role>
      <ShortName>Accounts and notes payable (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.relxtech.com/role/DisclosureAccountsAndNotesPayable</ParentRole>
      <Position>53</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>99931703 - Disclosure - Accrued expenses and other current liabilities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureAccruedExpensesAndOtherCurrentLiabilitiesTables</Role>
      <ShortName>Accrued expenses and other current liabilities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.relxtech.com/role/DisclosureAccruedExpensesAndOtherCurrentLiabilities</ParentRole>
      <Position>54</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>99931803 - Disclosure - Leases (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureLeasesTables</Role>
      <ShortName>Leases (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.relxtech.com/role/DisclosureLeases</ParentRole>
      <Position>55</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>99931903 - Disclosure - Income tax expense (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureIncomeTaxExpenseTables</Role>
      <ShortName>Income tax expense (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.relxtech.com/role/DisclosureIncomeTaxExpense</ParentRole>
      <Position>56</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>99932003 - Disclosure - Revenues (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureRevenuesTables</Role>
      <ShortName>Revenues (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.relxtech.com/role/DisclosureRevenues</ParentRole>
      <Position>57</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>99932103 - Disclosure - Share-based compensation (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureShareBasedCompensationTables</Role>
      <ShortName>Share-based compensation (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.relxtech.com/role/DisclosureShareBasedCompensation</ParentRole>
      <Position>58</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>99932303 - Disclosure - Net income per ordinary share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureNetIncomePerOrdinaryShareTables</Role>
      <ShortName>Net income per ordinary share (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.relxtech.com/role/DisclosureNetIncomePerOrdinaryShare</ParentRole>
      <Position>59</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>99932403 - Disclosure - Related party transactions (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureRelatedPartyTransactionsTables</Role>
      <ShortName>Related party transactions (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.relxtech.com/role/DisclosureRelatedPartyTransactions</ParentRole>
      <Position>60</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>99932503 - Disclosure - Fair value measurement (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureFairValueMeasurementTables</Role>
      <ShortName>Fair value measurement (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.relxtech.com/role/DisclosureFairValueMeasurement</ParentRole>
      <Position>61</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>99932603 - Disclosure - Commitments and contingencies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureCommitmentsAndContingenciesTables</Role>
      <ShortName>Commitments and contingencies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.relxtech.com/role/DisclosureCommitmentsAndContingencies</ParentRole>
      <Position>62</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>99932703 - Disclosure - Segment information (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureSegmentInformationTables</Role>
      <ShortName>Segment information (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.relxtech.com/role/DisclosureSegmentInformation</ParentRole>
      <Position>63</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>99940101 - Disclosure - Nature of operations and reorganizations - First Reorganization (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureNatureOfOperationsAndReorganizationsFirstReorganizationDetails</Role>
      <ShortName>Nature of operations and reorganizations - First Reorganization (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>64</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>99940102 - Disclosure - Nature of operations and reorganizations - Second Reorganization (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureNatureOfOperationsAndReorganizationsSecondReorganizationDetails</Role>
      <ShortName>Nature of operations and reorganizations - Second Reorganization (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>99940103 - Disclosure - Nature of operations and reorganizations - Summary of major subsidiaries, VIE and VIE's subsidiaries (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureNatureOfOperationsAndReorganizationsSummaryOfMajorSubsidiariesVieAndVieSSubsidiariesDetails</Role>
      <ShortName>Nature of operations and reorganizations - Summary of major subsidiaries, VIE and VIE's subsidiaries (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>99940104 - Disclosure - Nature of operations and reorganizations - Share splits and waiver of amount due to the Parent (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureNatureOfOperationsAndReorganizationsShareSplitsAndWaiverOfAmountDueToParentDetails</Role>
      <ShortName>Nature of operations and reorganizations - Share splits and waiver of amount due to the Parent (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>67</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>99940105 - Disclosure - Nature of operations and reorganizations - Share distribution (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureNatureOfOperationsAndReorganizationsShareDistributionDetails</Role>
      <ShortName>Nature of operations and reorganizations - Share distribution (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>68</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>99940106 - Disclosure - Nature of operations and reorganizations - VIE arrangements between Relx HK's PRC subsidiaries (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureNatureOfOperationsAndReorganizationsVieArrangementsBetweenRelxHkSPrcSubsidiariesDetails</Role>
      <ShortName>Nature of operations and reorganizations - VIE arrangements between Relx HK's PRC subsidiaries (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>69</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>99940107 - Disclosure - Nature of operations and reorganizations - Consolidated financial information of the VIE and its subsidiaries (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureNatureOfOperationsAndReorganizationsConsolidatedFinancialInformationOfVieAndItsSubsidiariesDetails</Role>
      <ShortName>Nature of operations and reorganizations - Consolidated financial information of the VIE and its subsidiaries (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>70</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>99940108 - Disclosure - Nature of operations and reorganizations - Business combination (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureNatureOfOperationsAndReorganizationsBusinessCombinationDetails</Role>
      <ShortName>Nature of operations and reorganizations - Business combination (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>71</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>99940201 - Disclosure - Significant accounting policies - Convenience translation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureSignificantAccountingPoliciesConvenienceTranslationDetails</Role>
      <ShortName>Significant accounting policies - Convenience translation (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>72</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>99940202 - Disclosure - Significant accounting policies - Investments and Accounts and notes receivable, net (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureSignificantAccountingPoliciesInvestmentsAndAccountsAndNotesReceivableNetDetails</Role>
      <ShortName>Significant accounting policies - Investments and Accounts and notes receivable, net (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>73</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>99940203 - Disclosure - Significant accounting policies - Property equipment and leasehold improvement, net (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureSignificantAccountingPoliciesPropertyEquipmentAndLeaseholdImprovementNetDetails</Role>
      <ShortName>Significant accounting policies - Property equipment and leasehold improvement, net (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>74</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>99940204 - Disclosure - Significant accounting policies - Intangible assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureSignificantAccountingPoliciesIntangibleAssetsDetails</Role>
      <ShortName>Significant accounting policies - Intangible assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>75</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>99940205 - Disclosure - Significant accounting policies - Impairment of long-lived assets other than goodwill (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureSignificantAccountingPoliciesImpairmentOfLongLivedAssetsOtherThanGoodwillDetails</Role>
      <ShortName>Significant accounting policies - Impairment of long-lived assets other than goodwill (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>76</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>99940206 - Disclosure - Significant accounting policies - Lease (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureSignificantAccountingPoliciesLeaseDetails</Role>
      <ShortName>Significant accounting policies - Lease (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>77</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>99940207 - Disclosure - Significant accounting policies - Revenue recognition (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureSignificantAccountingPoliciesRevenueRecognitionDetails</Role>
      <ShortName>Significant accounting policies - Revenue recognition (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>78</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>99940208 - Disclosure - Significant accounting policies - Additional details (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureSignificantAccountingPoliciesAdditionalDetailsDetails</Role>
      <ShortName>Significant accounting policies - Additional details (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>79</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>99940209 - Disclosure - Significant accounting policies - Concentration and risk (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureSignificantAccountingPoliciesConcentrationAndRiskDetails</Role>
      <ShortName>Significant accounting policies - Concentration and risk (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>80</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R81.htm</HtmlFileName>
      <LongName>99940301 - Disclosure - Business Combination (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureBusinessCombinationDetails</Role>
      <ShortName>Business Combination (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.relxtech.com/role/DisclosureBusinessCombinationTables</ParentRole>
      <Position>81</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R82.htm</HtmlFileName>
      <LongName>99940302 - Disclosure - Business Combination - Proforma Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureBusinessCombinationProformaInformationDetails</Role>
      <ShortName>Business Combination - Proforma Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>82</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R83.htm</HtmlFileName>
      <LongName>99940401 - Disclosure - Cash and cash equivalents (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureCashAndCashEquivalentsDetails</Role>
      <ShortName>Cash and cash equivalents (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.relxtech.com/role/DisclosureCashAndCashEquivalentsTables</ParentRole>
      <Position>83</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R84.htm</HtmlFileName>
      <LongName>99940501 - Disclosure - Bank deposits, net (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureBankDepositsNetDetails</Role>
      <ShortName>Bank deposits, net (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.relxtech.com/role/DisclosureBankDepositsNetTables</ParentRole>
      <Position>84</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R85.htm</HtmlFileName>
      <LongName>99940601 - Disclosure - Investment securities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureInvestmentSecuritiesDetails</Role>
      <ShortName>Investment securities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.relxtech.com/role/DisclosureInvestmentSecuritiesTables</ParentRole>
      <Position>85</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R86.htm</HtmlFileName>
      <LongName>99940701 - Disclosure - Accounts and notes receivable, net (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureAccountsAndNotesReceivableNetDetails</Role>
      <ShortName>Accounts and notes receivable, net (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.relxtech.com/role/DisclosureAccountsAndNotesReceivableNetTables</ParentRole>
      <Position>86</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R87.htm</HtmlFileName>
      <LongName>99940801 - Disclosure - Inventories - Schedule of Inventories (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureInventoriesScheduleOfInventoriesDetails</Role>
      <ShortName>Inventories - Schedule of Inventories (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>87</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R88.htm</HtmlFileName>
      <LongName>99940901 - Disclosure - Prepayments and other current assets, net - Schedule of prepayments and other current assets, net (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosurePrepaymentsAndOtherCurrentAssetsNetScheduleOfPrepaymentsAndOtherCurrentAssetsNetDetails</Role>
      <ShortName>Prepayments and other current assets, net - Schedule of prepayments and other current assets, net (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>88</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R89.htm</HtmlFileName>
      <LongName>99940902 - Disclosure - Prepayments and other current assets, net - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosurePrepaymentsAndOtherCurrentAssetsNetAdditionalInformationDetails</Role>
      <ShortName>Prepayments and other current assets, net - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>89</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R90.htm</HtmlFileName>
      <LongName>99941001 - Disclosure - Property, equipment and leasehold improvement, net - Schedule of property, equipment and leasehold improvement, net (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosurePropertyEquipmentAndLeaseholdImprovementNetScheduleOfPropertyEquipmentAndLeaseholdImprovementNetDetails</Role>
      <ShortName>Property, equipment and leasehold improvement, net - Schedule of property, equipment and leasehold improvement, net (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>90</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R91.htm</HtmlFileName>
      <LongName>99941101 - Disclosure - Intangible assets, net - Group Intangible assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureIntangibleAssetsNetGroupIntangibleAssetsDetails</Role>
      <ShortName>Intangible assets, net - Group Intangible assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>91</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R92.htm</HtmlFileName>
      <LongName>99941102 - Disclosure - Intangible assets, net - Amortization expenses (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureIntangibleAssetsNetAmortizationExpensesDetails</Role>
      <ShortName>Intangible assets, net - Amortization expenses (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>92</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R93.htm</HtmlFileName>
      <LongName>99941201 - Disclosure - Long-term investments, net- Group long-term investments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureLongTermInvestmentsNetGroupLongTermInvestmentsDetails</Role>
      <ShortName>Long-term investments, net- Group long-term investments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>93</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R94.htm</HtmlFileName>
      <LongName>99941202 - Disclosure - Long-term investments, net - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureLongTermInvestmentsNetAdditionalInformationDetails</Role>
      <ShortName>Long-term investments, net - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>94</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R95.htm</HtmlFileName>
      <LongName>99941301 - Disclosure - Goodwill (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureGoodwillDetails</Role>
      <ShortName>Goodwill (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.relxtech.com/role/DisclosureGoodwillTables</ParentRole>
      <Position>95</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R96.htm</HtmlFileName>
      <LongName>99941401 - Disclosure - Other non-current assets, net (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureOtherNonCurrentAssetsNetDetails</Role>
      <ShortName>Other non-current assets, net (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.relxtech.com/role/DisclosureOtherNonCurrentAssetsNetTables</ParentRole>
      <Position>96</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R97.htm</HtmlFileName>
      <LongName>99941501 - Disclosure - Accounts and notes payable (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureAccountsAndNotesPayableDetails</Role>
      <ShortName>Accounts and notes payable (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.relxtech.com/role/DisclosureAccountsAndNotesPayableTables</ParentRole>
      <Position>97</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R98.htm</HtmlFileName>
      <LongName>99941601 - Disclosure - Short-term loans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureShortTermLoansDetails</Role>
      <ShortName>Short-term loans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.relxtech.com/role/DisclosureShortTermLoans</ParentRole>
      <Position>98</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R99.htm</HtmlFileName>
      <LongName>99941701 - Disclosure - Accrued expenses and other current liabilities - Accrued expenses and other current liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureAccruedExpensesAndOtherCurrentLiabilitiesAccruedExpensesAndOtherCurrentLiabilitiesDetails</Role>
      <ShortName>Accrued expenses and other current liabilities - Accrued expenses and other current liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>99</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R100.htm</HtmlFileName>
      <LongName>99941702 - Disclosure - Accrued expenses and other current liabilities - Product warranty activities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureAccruedExpensesAndOtherCurrentLiabilitiesProductWarrantyActivitiesDetails</Role>
      <ShortName>Accrued expenses and other current liabilities - Product warranty activities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>100</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R101.htm</HtmlFileName>
      <LongName>99941801 - Disclosure - Leases - Supplemental information related to operating leases (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureLeasesSupplementalInformationRelatedToOperatingLeasesDetails</Role>
      <ShortName>Leases - Supplemental information related to operating leases (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>101</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R102.htm</HtmlFileName>
      <LongName>99941802 - Disclosure - Leases - Summary of lease cost recognized in statements of comprehensive (loss) income (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureLeasesSummaryOfLeaseCostRecognizedInStatementsOfComprehensiveLossIncomeDetails</Role>
      <ShortName>Leases - Summary of lease cost recognized in statements of comprehensive (loss) income (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>102</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R103.htm</HtmlFileName>
      <LongName>99941803 - Disclosure - Leases - Supplemental cash flow information related to operating leases (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureLeasesSupplementalCashFlowInformationRelatedToOperatingLeasesDetails</Role>
      <ShortName>Leases - Supplemental cash flow information related to operating leases (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>103</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R104.htm</HtmlFileName>
      <LongName>99941804 - Disclosure - Leases - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureLeasesAdditionalInformationDetails</Role>
      <ShortName>Leases - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>104</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R105.htm</HtmlFileName>
      <LongName>99941805 - Disclosure - Leases - Aggregate future minimum rental payments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureLeasesAggregateFutureMinimumRentalPaymentsDetails</Role>
      <ShortName>Leases - Aggregate future minimum rental payments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>105</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R106.htm</HtmlFileName>
      <LongName>99941901 - Disclosure - Income tax expense - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureIncomeTaxExpenseAdditionalInformationDetails</Role>
      <ShortName>Income tax expense - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>106</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R107.htm</HtmlFileName>
      <LongName>99941902 - Disclosure - Income tax expense - Current and deferred components of income taxes (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureIncomeTaxExpenseCurrentAndDeferredComponentsOfIncomeTaxesDetails</Role>
      <ShortName>Income tax expense - Current and deferred components of income taxes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>107</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R108.htm</HtmlFileName>
      <LongName>99941903 - Disclosure - Income tax expense - Reconciliation of differences between statutory tax rate and effective tax rate (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureIncomeTaxExpenseReconciliationOfDifferencesBetweenStatutoryTaxRateAndEffectiveTaxRateDetails</Role>
      <ShortName>Income tax expense - Reconciliation of differences between statutory tax rate and effective tax rate (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>108</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R109.htm</HtmlFileName>
      <LongName>99941904 - Disclosure - Income tax expense -Income Taxes paid (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureIncomeTaxExpenseIncomeTaxesPaidDetails</Role>
      <ShortName>Income tax expense -Income Taxes paid (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>109</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R110.htm</HtmlFileName>
      <LongName>99941905 - Disclosure - Income tax expense - Tax holiday (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureIncomeTaxExpenseTaxHolidayDetails</Role>
      <ShortName>Income tax expense - Tax holiday (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>110</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R111.htm</HtmlFileName>
      <LongName>99941906 - Disclosure - Income tax expense - Deferred tax assets and deferred tax liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureIncomeTaxExpenseDeferredTaxAssetsAndDeferredTaxLiabilitiesDetails</Role>
      <ShortName>Income tax expense - Deferred tax assets and deferred tax liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>111</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R112.htm</HtmlFileName>
      <LongName>99941907 - Disclosure - Income tax expense - Valuation allowance (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureIncomeTaxExpenseValuationAllowanceDetails</Role>
      <ShortName>Income tax expense - Valuation allowance (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>112</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R113.htm</HtmlFileName>
      <LongName>99942001 - Disclosure - Revenues (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureRevenuesDetails</Role>
      <ShortName>Revenues (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.relxtech.com/role/DisclosureRevenuesTables</ParentRole>
      <Position>113</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R114.htm</HtmlFileName>
      <LongName>99942101 - Disclosure - Share-based compensation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureShareBasedCompensationDetails</Role>
      <ShortName>Share-based compensation (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.relxtech.com/role/DisclosureShareBasedCompensationTables</ParentRole>
      <Position>114</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R115.htm</HtmlFileName>
      <LongName>99942102 - Disclosure - Share based compensation - Summary of options granted (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureShareBasedCompensationSummaryOfOptionsGrantedDetails</Role>
      <ShortName>Share based compensation - Summary of options granted (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>115</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R116.htm</HtmlFileName>
      <LongName>99942103 - Disclosure - Share-based compensation - Summary of the restricted share units (RSU) activity under the 2021 Plan (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureShareBasedCompensationSummaryOfRestrictedShareUnitsRsuActivityUnder2021PlanDetails</Role>
      <ShortName>Share-based compensation - Summary of the restricted share units (RSU) activity under the 2021 Plan (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>116</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R117.htm</HtmlFileName>
      <LongName>99942104 - Disclosure - Share-based compensation - Incentive Plans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureShareBasedCompensationIncentivePlansDetails</Role>
      <ShortName>Share-based compensation - Incentive Plans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>117</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R118.htm</HtmlFileName>
      <LongName>99942105 - Disclosure - Share-based compensation - Option pricing model (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureShareBasedCompensationOptionPricingModelDetails</Role>
      <ShortName>Share-based compensation - Option pricing model (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>118</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R119.htm</HtmlFileName>
      <LongName>99942106 - Disclosure - Share-based compensation - Restriction of the Parent's ordinary shares held by the Founding Members (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureShareBasedCompensationRestrictionOfParentSOrdinarySharesHeldByFoundingMembersDetails</Role>
      <ShortName>Share-based compensation - Restriction of the Parent's ordinary shares held by the Founding Members (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>119</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R120.htm</HtmlFileName>
      <LongName>99942107 - Disclosure - Share-based compensation - Share Based Compensation Related to Parent's Series D Financing (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureShareBasedCompensationShareBasedCompensationRelatedToParentSSeriesDFinancingDetails</Role>
      <ShortName>Share-based compensation - Share Based Compensation Related to Parent's Series D Financing (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>120</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R121.htm</HtmlFileName>
      <LongName>99942201 - Disclosure - Shareholders' equity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureShareholdersEquityDetails</Role>
      <ShortName>Shareholders' equity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.relxtech.com/role/DisclosureShareholdersEquity</ParentRole>
      <Position>121</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R122.htm</HtmlFileName>
      <LongName>99942301 - Disclosure - Net income per ordinary share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureNetIncomePerOrdinaryShareDetails</Role>
      <ShortName>Net income per ordinary share (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.relxtech.com/role/DisclosureNetIncomePerOrdinaryShareTables</ParentRole>
      <Position>122</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R123.htm</HtmlFileName>
      <LongName>99942401 - Disclosure - Related party transactions - Major Related Party Transaction (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureRelatedPartyTransactionsMajorRelatedPartyTransactionDetails</Role>
      <ShortName>Related party transactions - Major Related Party Transaction (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>123</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R124.htm</HtmlFileName>
      <LongName>99942402 - Disclosure - Related party transactions - Financing Received From and Provided to Related Parties (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureRelatedPartyTransactionsFinancingReceivedFromAndProvidedToRelatedPartiesDetails</Role>
      <ShortName>Related party transactions - Financing Received From and Provided to Related Parties (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>124</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R125.htm</HtmlFileName>
      <LongName>99942403 - Disclosure - Related party transactions - Major Balances with Related Parties (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureRelatedPartyTransactionsMajorBalancesWithRelatedPartiesDetails</Role>
      <ShortName>Related party transactions - Major Balances with Related Parties (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>125</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R126.htm</HtmlFileName>
      <LongName>99942501 - Disclosure - Fair value measurement (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureFairValueMeasurementDetails</Role>
      <ShortName>Fair value measurement (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.relxtech.com/role/DisclosureFairValueMeasurementTables</ParentRole>
      <Position>126</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R127.htm</HtmlFileName>
      <LongName>99942502 - Disclosure - Fair value measurement - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureFairValueMeasurementAdditionalInformationDetails</Role>
      <ShortName>Fair value measurement - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>127</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R128.htm</HtmlFileName>
      <LongName>99942601 - Disclosure - Commitments and contingencies (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureCommitmentsAndContingenciesDetails</Role>
      <ShortName>Commitments and contingencies (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.relxtech.com/role/DisclosureCommitmentsAndContingenciesTables</ParentRole>
      <Position>128</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R129.htm</HtmlFileName>
      <LongName>99942701 - Disclosure - Segment information - Summary of operating segment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureSegmentInformationSummaryOfOperatingSegmentDetails</Role>
      <ShortName>Segment information - Summary of operating segment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>129</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R130.htm</HtmlFileName>
      <LongName>99942702 - Disclosure - Segment information - Revenue by geography area (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureSegmentInformationRevenueByGeographyAreaDetails</Role>
      <ShortName>Segment information - Revenue by geography area (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>130</Position>
    </Report>
    <Report instance="rlx-20251231x20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R131.htm</HtmlFileName>
      <LongName>99942703 - Disclosure - Segment information - Long-lived assets by geography area (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.relxtech.com/role/DisclosureSegmentInformationLongLivedAssetsByGeographyAreaDetails</Role>
      <ShortName>Segment information - Long-lived assets by geography area (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>131</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File>rlx-20251231.xsd</File>
    <File>rlx-20251231_cal.xml</File>
    <File>rlx-20251231_def.xml</File>
    <File>rlx-20251231_lab.xml</File>
    <File>rlx-20251231_pre.xml</File>
    <File doctype="20-F" isDefinitelyFs="true" isUsgaap="true" original="rlx-20251231x20f.htm">rlx-20251231x20f.htm</File>
  </InputFiles>
  <SupplementalFiles>
    <File>rlx-20251231x20f002.jpg</File>
    <File>rlx-20251231x20f010.jpg</File>
    <File>rlx-20251231x20f011.jpg</File>
    <File>rlx-20251231x20f012.jpg</File>
    <File>rlx-20251231x20f013.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="2">http://fasb.org/srt/2025</BaseTaxonomy>
    <BaseTaxonomy items="1391">http://fasb.org/us-gaap/2025</BaseTaxonomy>
    <BaseTaxonomy items="11">http://xbrl.sec.gov/cyd/2025</BaseTaxonomy>
    <BaseTaxonomy items="53">http://xbrl.sec.gov/dei/2025</BaseTaxonomy>
    <BaseTaxonomy items="1">http://xbrl.sec.gov/ecd/2025</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
