<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.23.2</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>344</ContextCount>
  <ElementCount>328</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>72</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>5</UnitCount>
  <MyReports>
    <Report instance="dlx-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>0000001 - Document - Document</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/Document</Role>
      <ShortName>Document</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="dlx-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>0000002 - Statement - CONSOLIDATED BALANCE SHEETS (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/CONSOLIDATEDBALANCESHEETSUnaudited</Role>
      <ShortName>CONSOLIDATED BALANCE SHEETS (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="dlx-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>0000003 - Statement - CONSOLIDATED BALANCE SHEETS (Unaudited) (Parentheticals)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/CONSOLIDATEDBALANCESHEETSUnauditedParentheticals</Role>
      <ShortName>CONSOLIDATED BALANCE SHEETS (Unaudited) (Parentheticals)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="dlx-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>0000004 - Statement - CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/CONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMEUnaudited</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="dlx-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>0000005 - Statement - CONSOLIDATED STATEMENTS OF SHAREHOLDERS' EQUITY (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/CONSOLIDATEDSTATEMENTSOFSHAREHOLDERSEQUITYUnaudited</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF SHAREHOLDERS' EQUITY (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="dlx-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>0000006 - Statement - CONSOLIDATED STATEMENTS OF SHAREHOLDERS' EQUITY (Unaudited) (Parentheticals)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/CONSOLIDATEDSTATEMENTSOFSHAREHOLDERSEQUITYUnauditedParentheticals</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF SHAREHOLDERS' EQUITY (Unaudited) (Parentheticals)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="dlx-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>0000007 - Statement - CONSOLIDATED STATEMENTS OF CASH FLOWS (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/CONSOLIDATEDSTATEMENTSOFCASHFLOWSUnaudited</Role>
      <ShortName>CONSOLIDATED STATEMENTS OF CASH FLOWS (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="dlx-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>0000008 - Disclosure - Consolidated financial statements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/Consolidatedfinancialstatements</Role>
      <ShortName>Consolidated financial statements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="dlx-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>0000009 - Disclosure - New accounting pronouncements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/Newaccountingpronouncements</Role>
      <ShortName>New accounting pronouncements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="dlx-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>0000010 - Disclosure - Supplemental balance sheet and cash flow information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/Supplementalbalancesheetandcashflowinformation</Role>
      <ShortName>Supplemental balance sheet and cash flow information</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="dlx-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>0000011 - Disclosure - Earnings per share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/Earningspershare</Role>
      <ShortName>Earnings per share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="dlx-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>0000012 - Disclosure - Other comprehensive income</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/Othercomprehensiveincome</Role>
      <ShortName>Other comprehensive income</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="dlx-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>0000013 - Disclosure - Divestitures</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/Divestitures</Role>
      <ShortName>Divestitures</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="dlx-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>0000014 - Disclosure - Derivative financial instruments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/Derivativefinancialinstruments</Role>
      <ShortName>Derivative financial instruments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="dlx-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>0000015 - Disclosure - Fair value measurements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/Fairvaluemeasurements</Role>
      <ShortName>Fair value measurements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="dlx-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>0000016 - Disclosure - Restructuring and integration expense</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/Restructuringandintegrationexpense</Role>
      <ShortName>Restructuring and integration expense</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="dlx-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>0000017 - Disclosure - Income tax provision</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/Incometaxprovision</Role>
      <ShortName>Income tax provision</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="dlx-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>0000018 - Disclosure - Postretirement benefits</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/Postretirementbenefits</Role>
      <ShortName>Postretirement benefits</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="dlx-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>0000019 - Disclosure - Debt</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/Debt</Role>
      <ShortName>Debt</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="dlx-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>0000020 - Disclosure - Other commitments and contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/Othercommitmentsandcontingencies</Role>
      <ShortName>Other commitments and contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="dlx-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>0000021 - Disclosure - Shareholders' equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/Shareholdersequity</Role>
      <ShortName>Shareholders' equity</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="dlx-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>0000022 - Disclosure - Business segment information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/Businesssegmentinformation</Role>
      <ShortName>Business segment information</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="dlx-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>0000023 - Disclosure - Consolidated financial statements (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/ConsolidatedfinancialstatementsPolicies</Role>
      <ShortName>Consolidated financial statements (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="dlx-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>0000024 - Disclosure - Supplemental balance sheet and cash flow information (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/SupplementalbalancesheetandcashflowinformationTables</Role>
      <ShortName>Supplemental balance sheet and cash flow information (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.deluxe.com/role/Supplementalbalancesheetandcashflowinformation</ParentRole>
      <Position>24</Position>
    </Report>
    <Report instance="dlx-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>0000025 - Disclosure - Earnings per share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/EarningspershareTables</Role>
      <ShortName>Earnings per share (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.deluxe.com/role/Earningspershare</ParentRole>
      <Position>25</Position>
    </Report>
    <Report instance="dlx-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>0000026 - Disclosure - Other comprehensive income (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/OthercomprehensiveincomeTables</Role>
      <ShortName>Other comprehensive income (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.deluxe.com/role/Othercomprehensiveincome</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="dlx-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>0000027 - Disclosure - Derivative financial instruments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/DerivativefinancialinstrumentsTables</Role>
      <ShortName>Derivative financial instruments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.deluxe.com/role/Derivativefinancialinstruments</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="dlx-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>0000028 - Disclosure - Fair value measurements (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/FairvaluemeasurementsTables</Role>
      <ShortName>Fair value measurements (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.deluxe.com/role/Fairvaluemeasurements</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="dlx-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>0000029 - Disclosure - Restructuring and integration expense (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/RestructuringandintegrationexpenseTables</Role>
      <ShortName>Restructuring and integration expense (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.deluxe.com/role/Restructuringandintegrationexpense</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="dlx-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>0000030 - Disclosure - Postretirement benefits (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/PostretirementbenefitsTables</Role>
      <ShortName>Postretirement benefits (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.deluxe.com/role/Postretirementbenefits</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="dlx-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>0000031 - Disclosure - Debt (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/DebtTables</Role>
      <ShortName>Debt (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.deluxe.com/role/Debt</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="dlx-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>0000032 - Disclosure - Business segment information (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/BusinesssegmentinformationTables</Role>
      <ShortName>Business segment information (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.deluxe.com/role/Businesssegmentinformation</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="dlx-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>0000033 - Disclosure - Supplemental balance sheet and cash flow information (trade accounts receivable, allowance for credit losses) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/SupplementalbalancesheetandcashflowinformationtradeaccountsreceivableallowanceforcreditlossesDetails</Role>
      <ShortName>Supplemental balance sheet and cash flow information (trade accounts receivable, allowance for credit losses) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.deluxe.com/role/SupplementalbalancesheetandcashflowinformationTables</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="dlx-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>0000034 - Disclosure - Supplemental balance sheet and cash flow information (inventories and supplies) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/SupplementalbalancesheetandcashflowinformationinventoriesandsuppliesDetails</Role>
      <ShortName>Supplemental balance sheet and cash flow information (inventories and supplies) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.deluxe.com/role/SupplementalbalancesheetandcashflowinformationTables</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="dlx-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>0000035 - Disclosure - Supplemental balance sheet and cash flow information (available-for-sale debt securities) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/SupplementalbalancesheetandcashflowinformationavailableforsaledebtsecuritiesDetails</Role>
      <ShortName>Supplemental balance sheet and cash flow information (available-for-sale debt securities) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.deluxe.com/role/SupplementalbalancesheetandcashflowinformationTables</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="dlx-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>0000036 - Disclosure - Supplemental balance sheet and cash flow information (revenue in excess of billings) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/SupplementalbalancesheetandcashflowinformationrevenueinexcessofbillingsDetails</Role>
      <ShortName>Supplemental balance sheet and cash flow information (revenue in excess of billings) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.deluxe.com/role/SupplementalbalancesheetandcashflowinformationTables</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="dlx-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>0000037 - Disclosure - Supplemental balance sheet and cash flow information (intangibles) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/SupplementalbalancesheetandcashflowinformationintangiblesDetails</Role>
      <ShortName>Supplemental balance sheet and cash flow information (intangibles) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.deluxe.com/role/SupplementalbalancesheetandcashflowinformationTables</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="dlx-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>0000038 - Disclosure - Supplemental balance sheet and cash flow information (goodwill) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/SupplementalbalancesheetandcashflowinformationgoodwillDetails</Role>
      <ShortName>Supplemental balance sheet and cash flow information (goodwill) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.deluxe.com/role/SupplementalbalancesheetandcashflowinformationTables</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="dlx-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>0000039 - Disclosure - Supplemental balance sheet and cash flow information (other non-current assets) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/SupplementalbalancesheetandcashflowinformationothernoncurrentassetsDetails</Role>
      <ShortName>Supplemental balance sheet and cash flow information (other non-current assets) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.deluxe.com/role/SupplementalbalancesheetandcashflowinformationTables</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="dlx-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>0000040 - Disclosure - Supplemental balance sheet and cash flow information (other) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/SupplementalbalancesheetandcashflowinformationotherDetails</Role>
      <ShortName>Supplemental balance sheet and cash flow information (other) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.deluxe.com/role/SupplementalbalancesheetandcashflowinformationTables</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="dlx-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>0000041 - Disclosure - Earnings per share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/EarningspershareDetails</Role>
      <ShortName>Earnings per share (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.deluxe.com/role/EarningspershareTables</ParentRole>
      <Position>41</Position>
    </Report>
    <Report instance="dlx-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>0000042 - Disclosure - Other comprehensive income (reclassification adjustments) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/OthercomprehensiveincomereclassificationadjustmentsDetails</Role>
      <ShortName>Other comprehensive income (reclassification adjustments) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.deluxe.com/role/OthercomprehensiveincomeTables</ParentRole>
      <Position>42</Position>
    </Report>
    <Report instance="dlx-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>0000043 - Disclosure - Other comprehensive income (accumulated other comprehensive loss) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/OthercomprehensiveincomeaccumulatedothercomprehensivelossDetails</Role>
      <ShortName>Other comprehensive income (accumulated other comprehensive loss) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.deluxe.com/role/OthercomprehensiveincomeTables</ParentRole>
      <Position>43</Position>
    </Report>
    <Report instance="dlx-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>0000044 - Disclosure - Divestitures (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/DivestituresDetails</Role>
      <ShortName>Divestitures (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.deluxe.com/role/Divestitures</ParentRole>
      <Position>44</Position>
    </Report>
    <Report instance="dlx-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>0000045 - Disclosure - Derivative financial instruments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/DerivativefinancialinstrumentsDetails</Role>
      <ShortName>Derivative financial instruments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.deluxe.com/role/DerivativefinancialinstrumentsTables</ParentRole>
      <Position>45</Position>
    </Report>
    <Report instance="dlx-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>0000046 - Disclosure - Fair value measurements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/FairvaluemeasurementsDetails</Role>
      <ShortName>Fair value measurements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.deluxe.com/role/FairvaluemeasurementsTables</ParentRole>
      <Position>46</Position>
    </Report>
    <Report instance="dlx-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>0000047 - Disclosure - Restructuring and integration expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/RestructuringandintegrationexpenseDetails</Role>
      <ShortName>Restructuring and integration expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.deluxe.com/role/RestructuringandintegrationexpenseTables</ParentRole>
      <Position>47</Position>
    </Report>
    <Report instance="dlx-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>0000048 - Disclosure - Restructuring and integration expense (accruals) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/RestructuringandintegrationexpenseaccrualsDetails</Role>
      <ShortName>Restructuring and integration expense (accruals) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.deluxe.com/role/RestructuringandintegrationexpenseTables</ParentRole>
      <Position>48</Position>
    </Report>
    <Report instance="dlx-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>0000049 - Disclosure - Income tax provision (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/IncometaxprovisionDetails</Role>
      <ShortName>Income tax provision (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.deluxe.com/role/Incometaxprovision</ParentRole>
      <Position>49</Position>
    </Report>
    <Report instance="dlx-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>0000050 - Disclosure - Postretirement benefits (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/PostretirementbenefitsDetails</Role>
      <ShortName>Postretirement benefits (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.deluxe.com/role/PostretirementbenefitsTables</ParentRole>
      <Position>50</Position>
    </Report>
    <Report instance="dlx-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>0000051 - Disclosure - Debt (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/DebtDetails</Role>
      <ShortName>Debt (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.deluxe.com/role/DebtTables</ParentRole>
      <Position>51</Position>
    </Report>
    <Report instance="dlx-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>0000052 - Disclosure - Other commitments and contingencies (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/OthercommitmentsandcontingenciesDetails</Role>
      <ShortName>Other commitments and contingencies (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.deluxe.com/role/Othercommitmentsandcontingencies</ParentRole>
      <Position>52</Position>
    </Report>
    <Report instance="dlx-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>0000053 - Disclosure - Shareholders' equity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/ShareholdersequityDetails</Role>
      <ShortName>Shareholders' equity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.deluxe.com/role/Shareholdersequity</ParentRole>
      <Position>53</Position>
    </Report>
    <Report instance="dlx-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>0000054 - Disclosure - Business segment information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/BusinesssegmentinformationDetails</Role>
      <ShortName>Business segment information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.deluxe.com/role/BusinesssegmentinformationTables</ParentRole>
      <Position>54</Position>
    </Report>
    <Report instance="dlx-20230630.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>0000055 - Disclosure - Business segment information (disaggregated revenue information) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/BusinesssegmentinformationdisaggregatedrevenueinformationDetails</Role>
      <ShortName>Business segment information (disaggregated revenue information) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.deluxe.com/role/BusinesssegmentinformationTables</ParentRole>
      <Position>55</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File doctype="10-Q" original="dlx-20230630.htm">dlx-20230630.htm</File>
    <File>dlx-20230630.xsd</File>
    <File>dlx-20230630_cal.xml</File>
    <File>dlx-20230630_def.xml</File>
    <File>dlx-20230630_lab.xml</File>
    <File>dlx-20230630_pre.xml</File>
    <File>exhibit216302023.htm</File>
    <File>exhibit226302023.htm</File>
    <File>exhibit236302023.htm</File>
    <File>exhibit3116302023.htm</File>
    <File>exhibit3126302023.htm</File>
    <File>exhibit3216302023.htm</File>
  </InputFiles>
  <SupplementalFiles>
    <File>dlx-20230630_g1.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="1122">http://fasb.org/us-gaap/2022</BaseTaxonomy>
    <BaseTaxonomy items="29">http://xbrl.sec.gov/dei/2022</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
