<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.24.1.u1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>990</ContextCount>
  <ElementCount>483</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>219</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>11</UnitCount>
  <MyReports>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>0000001 - Document - Cover Page</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/CoverPage</Role>
      <ShortName>Cover Page</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>0000002 - Document - Audit Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/AuditInformation</Role>
      <ShortName>Audit Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>0000003 - Statement - Consolidated balance sheets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/Consolidatedbalancesheets</Role>
      <ShortName>Consolidated balance sheets</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>0000004 - Statement - Consolidated statement of income</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/Consolidatedstatementofincome</Role>
      <ShortName>Consolidated statement of income</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>0000005 - Statement - Consolidated statement of comprehensive income</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/Consolidatedstatementofcomprehensiveincome</Role>
      <ShortName>Consolidated statement of comprehensive income</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>0000006 - Statement - Consolidated statement of changes in equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/Consolidatedstatementofchangesinequity</Role>
      <ShortName>Consolidated statement of changes in equity</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>0000007 - Statement - Consolidated statement of cash flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/Consolidatedstatementofcashflows</Role>
      <ShortName>Consolidated statement of cash flows</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>0000008 - Disclosure - General Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/GeneralInformation</Role>
      <ShortName>General Information</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>0000009 - Disclosure - Presentation and preparation of the consolidated financial statements and significant accounting policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/Presentationandpreparationoftheconsolidatedfinancialstatementsandsignificantaccountingpolicies</Role>
      <ShortName>Presentation and preparation of the consolidated financial statements and significant accounting policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>0000010 - Disclosure - Accounting estimates and judgments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/Accountingestimatesandjudgments</Role>
      <ShortName>Accounting estimates and judgments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>0000011 - Disclosure - Accounting policies, changes in accounting estimates and errors</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/Accountingpolicieschangesinaccountingestimatesanderrors</Role>
      <ShortName>Accounting policies, changes in accounting estimates and errors</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>0000012 - Disclosure - Consolidation of subsidiaries</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/Consolidationofsubsidiaries</Role>
      <ShortName>Consolidation of subsidiaries</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>0000013 - Disclosure - Segment reporting</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/Segmentreporting</Role>
      <ShortName>Segment reporting</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>0000014 - Disclosure - Cash and cash equivalents</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/Cashandcashequivalents</Role>
      <ShortName>Cash and cash equivalents</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>0000015 - Disclosure - Financial investments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/Financialinvestments</Role>
      <ShortName>Financial investments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>0000016 - Disclosure - Accounts receivable</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/Accountsreceivable</Role>
      <ShortName>Accounts receivable</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>0000017 - Disclosure - Tax receivable</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/Taxreceivable</Role>
      <ShortName>Tax receivable</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>0000018 - Disclosure - Related-party balances and transactions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/Relatedpartybalancesandtransactions</Role>
      <ShortName>Related-party balances and transactions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>0000019 - Disclosure - Business combinations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/Businesscombinations</Role>
      <ShortName>Business combinations</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>0000020 - Disclosure - Property and equipment</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/Propertyandequipment</Role>
      <ShortName>Property and equipment</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>0000022 - Disclosure - Payables to third parties</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/Payablestothirdparties</Role>
      <ShortName>Payables to third parties</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>0000023 - Disclosure - Deposits</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/Deposits</Role>
      <ShortName>Deposits</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>0000024 - Disclosure - Salaries and social charges</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/Salariesandsocialcharges</Role>
      <ShortName>Salaries and social charges</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>0000025 - Disclosure - Taxes and contributions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/Taxesandcontributions</Role>
      <ShortName>Taxes and contributions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>0000026 - Disclosure - Provision for contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/Provisionforcontingencies</Role>
      <ShortName>Provision for contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>0000028 - Disclosure - Income tax and social contribution</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/Incometaxandsocialcontribution</Role>
      <ShortName>Income tax and social contribution</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>0000029 - Disclosure - Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/Equity</Role>
      <ShortName>Equity</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>27</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>0000030 - Disclosure - Earnings per share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/Earningspershare</Role>
      <ShortName>Earnings per share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>28</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>0000031 - Disclosure - Total revenue and income</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/Totalrevenueandincome</Role>
      <ShortName>Total revenue and income</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>29</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>0000032 - Disclosure - Expenses by nature</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/Expensesbynature</Role>
      <ShortName>Expenses by nature</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>30</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>0000033 - Disclosure - Financial instruments by category</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/Financialinstrumentsbycategory</Role>
      <ShortName>Financial instruments by category</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>31</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>0000034 - Disclosure - Financial risk management</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/Financialriskmanagement</Role>
      <ShortName>Financial risk management</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>32</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>0000035 - Disclosure - Derivative Financial Instruments designated to Hedge Accounting</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/DerivativeFinancialInstrumentsdesignatedtoHedgeAccounting</Role>
      <ShortName>Derivative Financial Instruments designated to Hedge Accounting</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>33</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>0000036 - Disclosure - Non-cash Transactions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/NoncashTransactions</Role>
      <ShortName>Non-cash Transactions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>34</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>0000037 - Disclosure - Fair value measurement</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/Fairvaluemeasurement</Role>
      <ShortName>Fair value measurement</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>35</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>9954471 - Disclosure - Presentation and preparation of the consolidated financial statements and significant accounting policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/PresentationandpreparationoftheconsolidatedfinancialstatementsandsignificantaccountingpoliciesPolicies</Role>
      <ShortName>Presentation and preparation of the consolidated financial statements and significant accounting policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/Accountingestimatesandjudgments</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>9954472 - Disclosure - Accounting policies, changes in accounting estimates and errors (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/AccountingpolicieschangesinaccountingestimatesanderrorsPolicies</Role>
      <ShortName>Accounting policies, changes in accounting estimates and errors (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/Accountingestimatesandjudgments</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>9954473 - Disclosure - Presentation and preparation of the consolidated financial statements and significant accounting policies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/PresentationandpreparationoftheconsolidatedfinancialstatementsandsignificantaccountingpoliciesTables</Role>
      <ShortName>Presentation and preparation of the consolidated financial statements and significant accounting policies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/Presentationandpreparationoftheconsolidatedfinancialstatementsandsignificantaccountingpolicies</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>9954475 - Disclosure - Consolidation of subsidiaries (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/ConsolidationofsubsidiariesTables</Role>
      <ShortName>Consolidation of subsidiaries (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/Consolidationofsubsidiaries</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>9954476 - Disclosure - Cash and cash equivalents (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/CashandcashequivalentsTables</Role>
      <ShortName>Cash and cash equivalents (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/Cashandcashequivalents</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>9954477 - Disclosure - Accounts receivable (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/AccountsreceivableTables</Role>
      <ShortName>Accounts receivable (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/Accountsreceivable</ParentRole>
      <Position>41</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>9954478 - Disclosure - Tax receivable (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/TaxreceivableTables</Role>
      <ShortName>Tax receivable (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/Taxreceivable</ParentRole>
      <Position>42</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>9954479 - Disclosure - Related-party balances and transactions (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/RelatedpartybalancesandtransactionsTables</Role>
      <ShortName>Related-party balances and transactions (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/Relatedpartybalancesandtransactions</ParentRole>
      <Position>43</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>9954480 - Disclosure - Business combinations (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/BusinesscombinationsTables</Role>
      <ShortName>Business combinations (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/Businesscombinations</ParentRole>
      <Position>44</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>9954481 - Disclosure - Property and equipment (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/PropertyandequipmentTables</Role>
      <ShortName>Property and equipment (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/Propertyandequipment</ParentRole>
      <Position>45</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>9954482 - Disclosure - Intangible assets (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/IntangibleassetsTables</Role>
      <ShortName>Intangible assets (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>9954483 - Disclosure - Deposits (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/DepositsTables</Role>
      <ShortName>Deposits (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/Deposits</ParentRole>
      <Position>47</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>9954484 - Disclosure - Salaries and social charges (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/SalariesandsocialchargesTables</Role>
      <ShortName>Salaries and social charges (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/Salariesandsocialcharges</ParentRole>
      <Position>48</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>9954485 - Disclosure - Taxes and contribuitions (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/TaxesandcontribuitionsTables</Role>
      <ShortName>Taxes and contribuitions (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>9954486 - Disclosure - Provision for contingencies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/ProvisionforcontingenciesTables</Role>
      <ShortName>Provision for contingencies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/Provisionforcontingencies</ParentRole>
      <Position>50</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>9954487 - Disclosure - Borrowing (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/BorrowingTables</Role>
      <ShortName>Borrowing (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>9954488 - Disclosure - Income tax and social contribuition (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/IncometaxandsocialcontribuitionTables</Role>
      <ShortName>Income tax and social contribuition (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/Incometaxandsocialcontribution</ParentRole>
      <Position>52</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>9954489 - Disclosure - Equity (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/EquityTables</Role>
      <ShortName>Equity (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/Equity</ParentRole>
      <Position>53</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>9954490 - Disclosure - Earnings per share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/EarningspershareTables</Role>
      <ShortName>Earnings per share (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/Earningspershare</ParentRole>
      <Position>54</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>9954491 - Disclosure - Total revenue and income (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/TotalrevenueandincomeTables</Role>
      <ShortName>Total revenue and income (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/Totalrevenueandincome</ParentRole>
      <Position>55</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>9954492 - Disclosure - Expenses by nature (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/ExpensesbynatureTables</Role>
      <ShortName>Expenses by nature (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/Expensesbynature</ParentRole>
      <Position>56</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>9954493 - Disclosure - Financial instruments by category (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/FinancialinstrumentsbycategoryTables</Role>
      <ShortName>Financial instruments by category (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/Financialinstrumentsbycategory</ParentRole>
      <Position>57</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>9954494 - Disclosure - Financial risk management (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/FinancialriskmanagementTables</Role>
      <ShortName>Financial risk management (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/Financialriskmanagement</ParentRole>
      <Position>58</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>9954495 - Disclosure - Derivative Financial Instruments designated to Hedge Accounting (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/DerivativeFinancialInstrumentsdesignatedtoHedgeAccountingTables</Role>
      <ShortName>Derivative Financial Instruments designated to Hedge Accounting (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/DerivativeFinancialInstrumentsdesignatedtoHedgeAccounting</ParentRole>
      <Position>59</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>9954496 - Disclosure - Non-cash Transactions (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/NoncashTransactionsTables</Role>
      <ShortName>Non-cash Transactions (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/NoncashTransactions</ParentRole>
      <Position>60</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>9954497 - Disclosure - Fair value measurement (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/FairvaluemeasurementTables</Role>
      <ShortName>Fair value measurement (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/Fairvaluemeasurement</ParentRole>
      <Position>61</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>9954498 - Disclosure - General Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/GeneralInformationDetails</Role>
      <ShortName>General Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/GeneralInformation</ParentRole>
      <Position>62</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>9954499 - Disclosure - Presentation and preparation of the consolidated financial statements and significant accounting policies (Details Text)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/PresentationandpreparationoftheconsolidatedfinancialstatementsandsignificantaccountingpoliciesDetailsText</Role>
      <ShortName>Presentation and preparation of the consolidated financial statements and significant accounting policies (Details Text)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/PresentationandpreparationoftheconsolidatedfinancialstatementsandsignificantaccountingpoliciesTables</ParentRole>
      <Position>63</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>9954500 - Disclosure - Presentation and preparation of the consolidated financial statements and significant accounting policies (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/PresentationandpreparationoftheconsolidatedfinancialstatementsandsignificantaccountingpoliciesDetails</Role>
      <ShortName>Presentation and preparation of the consolidated financial statements and significant accounting policies (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/PresentationandpreparationoftheconsolidatedfinancialstatementsandsignificantaccountingpoliciesTables</ParentRole>
      <Position>64</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>9954501 - Disclosure - Accounting policies, changes in accounting estimates and errors (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/AccountingpolicieschangesinaccountingestimatesanderrorsDetails</Role>
      <ShortName>Accounting policies, changes in accounting estimates and errors (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/AccountingpolicieschangesinaccountingestimatesanderrorsPolicies</ParentRole>
      <Position>65</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>9954502 - Disclosure - Consolidation of subsidiaries (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/ConsolidationofsubsidiariesDetails</Role>
      <ShortName>Consolidation of subsidiaries (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/ConsolidationofsubsidiariesTables</ParentRole>
      <Position>66</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>9954503 - Disclosure - Consolidation of subsidiaries (Details Text)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/ConsolidationofsubsidiariesDetailsText</Role>
      <ShortName>Consolidation of subsidiaries (Details Text)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/ConsolidationofsubsidiariesTables</ParentRole>
      <Position>67</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>9954504 - Disclosure - Segment reporting (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/SegmentreportingDetails</Role>
      <ShortName>Segment reporting (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/Segmentreporting</ParentRole>
      <Position>68</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>9954505 - Disclosure - Cash and cash equivalents (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/CashandcashequivalentsDetails</Role>
      <ShortName>Cash and cash equivalents (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/CashandcashequivalentsTables</ParentRole>
      <Position>69</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>9954506 - Disclosure - Cash and cash equivalents (Details Text)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/CashandcashequivalentsDetailsText</Role>
      <ShortName>Cash and cash equivalents (Details Text)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/CashandcashequivalentsTables</ParentRole>
      <Position>70</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>9954507 - Disclosure - Financial investments (Details Text)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/FinancialinvestmentsDetailsText</Role>
      <ShortName>Financial investments (Details Text)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/Financialinvestments</ParentRole>
      <Position>71</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>9954508 - Disclosure - Accounts receivable (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/AccountsreceivableDetails1</Role>
      <ShortName>Accounts receivable (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/AccountsreceivableTables</ParentRole>
      <Position>72</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>9954509 - Disclosure - Accounts receivable (Details 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/AccountsreceivableDetails2</Role>
      <ShortName>Accounts receivable (Details 2)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/AccountsreceivableTables</ParentRole>
      <Position>73</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>9954510 - Disclosure - Accounts receivable (Details 3)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/AccountsreceivableDetails3</Role>
      <ShortName>Accounts receivable (Details 3)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/AccountsreceivableTables</ParentRole>
      <Position>74</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>9954511 - Disclosure - Accounts receivable (Details 4)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/AccountsreceivableDetails4</Role>
      <ShortName>Accounts receivable (Details 4)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/AccountsreceivableTables</ParentRole>
      <Position>75</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>9954512 - Disclosure - Accpunts receivable (Details 5)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/AccpuntsreceivableDetails5</Role>
      <ShortName>Accpunts receivable (Details 5)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>76</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>9954513 - Disclosure - Tax receivable (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/TaxreceivableDetails</Role>
      <ShortName>Tax receivable (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/TaxreceivableTables</ParentRole>
      <Position>77</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>9954514 - Disclosure - Related-party balances and transactions (Details 1)(Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/RelatedpartybalancesandtransactionsDetails1Details</Role>
      <ShortName>Related-party balances and transactions (Details 1)(Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/RelatedpartybalancesandtransactionsTables</ParentRole>
      <Position>78</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>9954515 - Disclosure - Related-party balances and transactions (Details 2) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/RelatedpartybalancesandtransactionsDetails2Details</Role>
      <ShortName>Related-party balances and transactions (Details 2) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/RelatedpartybalancesandtransactionsTables</ParentRole>
      <Position>79</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>9954516 - Disclosure - Related party balances and transactions (Details 3 Text)(Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/RelatedpartybalancesandtransactionsDetails3TextDetails</Role>
      <ShortName>Related party balances and transactions (Details 3 Text)(Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>80</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R81.htm</HtmlFileName>
      <LongName>9954517 - Disclosure - Related party balancesand transactions (Details 4 Text)(Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/RelatedpartybalancesandtransactionsDetails4TextDetails</Role>
      <ShortName>Related party balancesand transactions (Details 4 Text)(Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>81</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R82.htm</HtmlFileName>
      <LongName>9954518 - Disclosure - Related party balancesand transactions (Details 4 Text)(Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/RelatedpartybalancesandtransactionsDetails4TextDetails_1</Role>
      <ShortName>Related party balancesand transactions (Details 4 Text)(Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>82</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R83.htm</HtmlFileName>
      <LongName>9954519 - Disclosure - Business combinations (Details Text)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/BusinesscombinationsDetailsText</Role>
      <ShortName>Business combinations (Details Text)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/BusinesscombinationsTables</ParentRole>
      <Position>83</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R84.htm</HtmlFileName>
      <LongName>9954520 - Disclosure - Business combinations (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/BusinesscombinationsDetails</Role>
      <ShortName>Business combinations (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/BusinesscombinationsTables</ParentRole>
      <Position>84</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R85.htm</HtmlFileName>
      <LongName>9954521 - Disclosure - Property, plant and equipment (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/PropertyplantandequipmentDetails1</Role>
      <ShortName>Property, plant and equipment (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>85</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R86.htm</HtmlFileName>
      <LongName>9954522 - Disclosure - Property, plant and equipment (Details 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/PropertyplantandequipmentDetails2</Role>
      <ShortName>Property, plant and equipment (Details 2)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>86</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R87.htm</HtmlFileName>
      <LongName>9954523 - Disclosure - Property, plant and equipment (Details 2) (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/PropertyplantandequipmentDetails2Parenthetical</Role>
      <ShortName>Property, plant and equipment (Details 2) (Parenthetical)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>87</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R88.htm</HtmlFileName>
      <LongName>9954524 - Disclosure - Intangible assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/IntangibleassetsDetails</Role>
      <ShortName>Intangible assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/IntangibleassetsTables</ParentRole>
      <Position>88</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R89.htm</HtmlFileName>
      <LongName>9954525 - Disclosure - Intangible assets - Goodwill Allocation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/IntangibleassetsGoodwillAllocationDetails</Role>
      <ShortName>Intangible assets - Goodwill Allocation (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>89</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R90.htm</HtmlFileName>
      <LongName>9954526 - Disclosure - Intangible assets - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/IntangibleassetsNarrativeDetails</Role>
      <ShortName>Intangible assets - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>90</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R91.htm</HtmlFileName>
      <LongName>9954527 - Disclosure - Intangible assets (Details 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/IntangibleassetsDetails2</Role>
      <ShortName>Intangible assets (Details 2)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/IntangibleassetsTables</ParentRole>
      <Position>91</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R92.htm</HtmlFileName>
      <LongName>9954528 - Disclosure - Payables to third parties (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/PayablestothirdpartiesDetails</Role>
      <ShortName>Payables to third parties (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/Payablestothirdparties</ParentRole>
      <Position>92</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R93.htm</HtmlFileName>
      <LongName>9954529 - Disclosure - Deposits (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/DepositsDetails1</Role>
      <ShortName>Deposits (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/DepositsTables</ParentRole>
      <Position>93</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R94.htm</HtmlFileName>
      <LongName>9954530 - Disclosure - Deposits (Details 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/DepositsDetails2</Role>
      <ShortName>Deposits (Details 2)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/DepositsTables</ParentRole>
      <Position>94</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R95.htm</HtmlFileName>
      <LongName>9954531 - Disclosure - Salaries and social charges (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/SalariesandsocialchargesDetails</Role>
      <ShortName>Salaries and social charges (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/SalariesandsocialchargesTables</ParentRole>
      <Position>95</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R96.htm</HtmlFileName>
      <LongName>9954532 - Disclosure - Taxes and contribuitions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/TaxesandcontribuitionsDetails</Role>
      <ShortName>Taxes and contribuitions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/TaxesandcontribuitionsTables</ParentRole>
      <Position>96</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R97.htm</HtmlFileName>
      <LongName>9954533 - Disclosure - Provision for contingencies (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/ProvisionforcontingenciesDetails1</Role>
      <ShortName>Provision for contingencies (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/ProvisionforcontingenciesTables</ParentRole>
      <Position>97</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R98.htm</HtmlFileName>
      <LongName>9954534 - Disclosure - Provision for contingencies (Details 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/ProvisionforcontingenciesDetails2</Role>
      <ShortName>Provision for contingencies (Details 2)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/ProvisionforcontingenciesTables</ParentRole>
      <Position>98</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R99.htm</HtmlFileName>
      <LongName>9954535 - Disclosure - Provision for contingencies (Detils Text) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/ProvisionforcontingenciesDetilsTextDetails</Role>
      <ShortName>Provision for contingencies (Detils Text) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/ProvisionforcontingenciesTables</ParentRole>
      <Position>99</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R100.htm</HtmlFileName>
      <LongName>9954536 - Disclosure - Borrowing (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/BorrowingDetails</Role>
      <ShortName>Borrowing (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/BorrowingTables</ParentRole>
      <Position>100</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R101.htm</HtmlFileName>
      <LongName>9954537 - Disclosure - Borrowing (Details Text)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/BorrowingDetailsText</Role>
      <ShortName>Borrowing (Details Text)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/BorrowingTables</ParentRole>
      <Position>101</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R102.htm</HtmlFileName>
      <LongName>9954538 - Disclosure - Income tax and social contribuition (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/IncometaxandsocialcontribuitionDetails1</Role>
      <ShortName>Income tax and social contribuition (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/IncometaxandsocialcontribuitionTables</ParentRole>
      <Position>102</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R103.htm</HtmlFileName>
      <LongName>9954539 - Disclosure - Income tax and social contribuition (Details 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/IncometaxandsocialcontribuitionDetails2</Role>
      <ShortName>Income tax and social contribuition (Details 2)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/IncometaxandsocialcontribuitionTables</ParentRole>
      <Position>103</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R104.htm</HtmlFileName>
      <LongName>9954540 - Disclosure - Equity (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/EquityDetails1</Role>
      <ShortName>Equity (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/EquityTables</ParentRole>
      <Position>104</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R105.htm</HtmlFileName>
      <LongName>9954541 - Disclosure - Equity (Details 2) (Detail Text)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/EquityDetails2DetailText</Role>
      <ShortName>Equity (Details 2) (Detail Text)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/EquityTables</ParentRole>
      <Position>105</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R106.htm</HtmlFileName>
      <LongName>9954542 - Disclosure - Equity (Details 3)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/EquityDetails3</Role>
      <ShortName>Equity (Details 3)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/EquityTables</ParentRole>
      <Position>106</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R107.htm</HtmlFileName>
      <LongName>9954543 - Disclosure - Earnings per share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/EarningspershareDetails</Role>
      <ShortName>Earnings per share (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/EarningspershareTables</ParentRole>
      <Position>107</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R108.htm</HtmlFileName>
      <LongName>9954545 - Disclosure - Total revenue and income (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/TotalrevenueandincomeDetails</Role>
      <ShortName>Total revenue and income (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/TotalrevenueandincomeTables</ParentRole>
      <Position>108</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R109.htm</HtmlFileName>
      <LongName>9954546 - Disclosure - Expenses by nature (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/ExpensesbynatureDetails1</Role>
      <ShortName>Expenses by nature (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/ExpensesbynatureTables</ParentRole>
      <Position>109</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R110.htm</HtmlFileName>
      <LongName>9954547 - Disclosure - Expenses by nature (Footnotes) (Details 1)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://pagseguro.uol.com.br/role/ExpensesbynatureFootnotesDetails1</Role>
      <ShortName>Expenses by nature (Footnotes) (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/ExpensesbynatureTables</ParentRole>
      <Position>110</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R111.htm</HtmlFileName>
      <LongName>9954548 - Disclosure - Expenses by nature (Details 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/ExpensesbynatureDetails2</Role>
      <ShortName>Expenses by nature (Details 2)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/ExpensesbynatureTables</ParentRole>
      <Position>111</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R112.htm</HtmlFileName>
      <LongName>9954549 - Disclosure - Expenses by nature (Footnotes) (Details 2)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://pagseguro.uol.com.br/role/ExpensesbynatureFootnotesDetails2</Role>
      <ShortName>Expenses by nature (Footnotes) (Details 2)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/ExpensesbynatureTables</ParentRole>
      <Position>112</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R113.htm</HtmlFileName>
      <LongName>9954550 - Disclosure - Financial instruments by category (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/FinancialinstrumentsbycategoryDetails1</Role>
      <ShortName>Financial instruments by category (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/FinancialinstrumentsbycategoryTables</ParentRole>
      <Position>113</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R114.htm</HtmlFileName>
      <LongName>9954551 - Disclosure - Financial instruments by category (Details 2)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/FinancialinstrumentsbycategoryDetails2</Role>
      <ShortName>Financial instruments by category (Details 2)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/FinancialinstrumentsbycategoryTables</ParentRole>
      <Position>114</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R115.htm</HtmlFileName>
      <LongName>9954552 - Disclosure - Financial risk management (Details 1)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/FinancialriskmanagementDetails1</Role>
      <ShortName>Financial risk management (Details 1)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/FinancialriskmanagementTables</ParentRole>
      <Position>115</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R116.htm</HtmlFileName>
      <LongName>9954553 - Disclosure - Financial risk management (Details 3)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/FinancialriskmanagementDetails3</Role>
      <ShortName>Financial risk management (Details 3)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/FinancialriskmanagementTables</ParentRole>
      <Position>116</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R117.htm</HtmlFileName>
      <LongName>9954554 - Disclosure - Financial instruments portfolio (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/FinancialinstrumentsportfolioDetails</Role>
      <ShortName>Financial instruments portfolio (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>117</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R118.htm</HtmlFileName>
      <LongName>9954555 - Disclosure - Derivative Financial Instruments designated to Hedge Accounting (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/DerivativeFinancialInstrumentsdesignatedtoHedgeAccountingDetails</Role>
      <ShortName>Derivative Financial Instruments designated to Hedge Accounting (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/DerivativeFinancialInstrumentsdesignatedtoHedgeAccountingTables</ParentRole>
      <Position>118</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R119.htm</HtmlFileName>
      <LongName>9954556 - Disclosure - Non-cash Transactions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/NoncashTransactionsDetails</Role>
      <ShortName>Non-cash Transactions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/NoncashTransactionsTables</ParentRole>
      <Position>119</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R120.htm</HtmlFileName>
      <LongName>9954557 - Disclosure - Fair value measurement (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://pagseguro.uol.com.br/role/FairvaluemeasurementDetails</Role>
      <ShortName>Fair value measurement (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://pagseguro.uol.com.br/role/FairvaluemeasurementTables</ParentRole>
      <Position>120</Position>
    </Report>
    <Report instance="pags-20231231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9999.htm</HtmlFileName>
      <LongName>Uncategorized Items - pags-20231231.htm</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/role/uncategorizedFacts</Role>
      <ShortName>Uncategorized Items - pags-20231231.htm</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>121</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="20-F" isDefinitelyFs="true" isIfrs="true" isUsgaap="true" original="pags-20231231.htm">pags-20231231.htm</File>
    <File>pags-20231231.xsd</File>
    <File>pags-20231231_cal.xml</File>
    <File>pags-20231231_def.xml</File>
    <File>pags-20231231_lab.xml</File>
    <File>pags-20231231_pre.xml</File>
  </InputFiles>
  <SupplementalFiles>
    <File>pags-20231231_g1.jpg</File>
    <File>pags-20231231_g2.jpg</File>
    <File>pags-20231231_g3.jpg</File>
    <File>pags-20231231_g4.jpg</File>
    <File>pags-20231231_g5.jpg</File>
    <File>pags-20231231_g6.jpg</File>
    <File>pags-20231231_g7.jpg</File>
    <File>pags-20231231_g8.jpg</File>
    <File>pags-20231231_g9.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="47">http://xbrl.sec.gov/dei/2023</BaseTaxonomy>
    <BaseTaxonomy items="1914">https://xbrl.ifrs.org/taxonomy/2023-03-23/ifrs-full</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
