<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.25.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>198</ContextCount>
  <ElementCount>286</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>62</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>5</UnitCount>
  <MyReports>
    <Report instance="dlx-20250331.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-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>9952151 - 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-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>9952152 - 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-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>9952153 - 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-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>9952154 - 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-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>9952155 - 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-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>9952156 - 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-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>9952157 - 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-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>9952158 - 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-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>9952159 - 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-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>9952160 - 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-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>9952161 - Disclosure - Other comprehensive income (loss)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/Othercomprehensiveincomeloss</Role>
      <ShortName>Other comprehensive income (loss)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="dlx-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>9952162 - 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-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>9952163 - 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>14</Position>
    </Report>
    <Report instance="dlx-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>9952164 - 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>15</Position>
    </Report>
    <Report instance="dlx-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>9952165 - 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>16</Position>
    </Report>
    <Report instance="dlx-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>9952166 - Disclosure - Postretirement benefits</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/Postretirementbenefits</Role>
      <ShortName>Postretirement benefits</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="dlx-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>9952167 - Disclosure - Debt</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/Debt</Role>
      <ShortName>Debt</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="dlx-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>9952168 - 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>19</Position>
    </Report>
    <Report instance="dlx-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>9952169 - 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>20</Position>
    </Report>
    <Report instance="dlx-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>995410 - Disclosure - Pay vs Performance Disclosure</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/PvpDisclosure</Role>
      <ShortName>Pay vs Performance Disclosure</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="dlx-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>995445 - Disclosure - Insider Trading Arrangements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements</Role>
      <ShortName>Insider Trading Arrangements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="dlx-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>9955511 - 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-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>9955512 - 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-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>9955513 - 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-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>9955514 - Disclosure - Other comprehensive income (loss) (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/OthercomprehensiveincomelossTables</Role>
      <ShortName>Other comprehensive income (loss) (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.deluxe.com/role/Othercomprehensiveincomeloss</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="dlx-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>9955515 - Disclosure - Divestitures (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/DivestituresTables</Role>
      <ShortName>Divestitures (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.deluxe.com/role/Divestitures</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="dlx-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>9955516 - 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-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>9955517 - 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-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>9955518 - 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-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>9955519 - 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-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>9955520 - 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-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>9955521 - 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-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>9955522 - 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-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>9955523 - 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>35</Position>
    </Report>
    <Report instance="dlx-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>9955524 - 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>36</Position>
    </Report>
    <Report instance="dlx-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>9955525 - 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>37</Position>
    </Report>
    <Report instance="dlx-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>9955526 - 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>38</Position>
    </Report>
    <Report instance="dlx-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>9955527 - Disclosure - Supplemental balance sheet and cash flow information (accrued liabilities, supplemental cash flow information) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/SupplementalbalancesheetandcashflowinformationaccruedliabilitiessupplementalcashflowinformationDetails</Role>
      <ShortName>Supplemental balance sheet and cash flow information (accrued liabilities, supplemental cash flow information) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.deluxe.com/role/SupplementalbalancesheetandcashflowinformationTables</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="dlx-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>9955528 - 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>40</Position>
    </Report>
    <Report instance="dlx-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>9955529 - Disclosure - Other comprehensive income (loss) (reclassification adjustments) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/OthercomprehensiveincomelossreclassificationadjustmentsDetails</Role>
      <ShortName>Other comprehensive income (loss) (reclassification adjustments) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.deluxe.com/role/OthercomprehensiveincomelossTables</ParentRole>
      <Position>41</Position>
    </Report>
    <Report instance="dlx-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>9955530 - Disclosure - Other comprehensive income (loss) (accumulated other comprehensive loss) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.deluxe.com/role/OthercomprehensiveincomelossaccumulatedothercomprehensivelossDetails</Role>
      <ShortName>Other comprehensive income (loss) (accumulated other comprehensive loss) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.deluxe.com/role/OthercomprehensiveincomelossTables</ParentRole>
      <Position>42</Position>
    </Report>
    <Report instance="dlx-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>9955531 - 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/DivestituresTables</ParentRole>
      <Position>43</Position>
    </Report>
    <Report instance="dlx-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>9955532 - 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>44</Position>
    </Report>
    <Report instance="dlx-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>9955533 - 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>45</Position>
    </Report>
    <Report instance="dlx-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>9955534 - 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>46</Position>
    </Report>
    <Report instance="dlx-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>9955535 - 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>47</Position>
    </Report>
    <Report instance="dlx-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>9955536 - 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>48</Position>
    </Report>
    <Report instance="dlx-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>9955537 - 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>49</Position>
    </Report>
    <Report instance="dlx-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>9955538 - 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>50</Position>
    </Report>
    <Report instance="dlx-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>9955539 - 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>51</Position>
    </Report>
    <Report instance="dlx-20250331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>9955540 - 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>52</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" isDefinitelyFs="true" isUsgaap="true" original="dlx-20250331.htm">dlx-20250331.htm</File>
    <File>dlx-20250331.xsd</File>
    <File>dlx-20250331_cal.xml</File>
    <File>dlx-20250331_def.xml</File>
    <File>dlx-20250331_lab.xml</File>
    <File>dlx-20250331_pre.xml</File>
  </InputFiles>
  <SupplementalFiles>
    <File>dlx-20250331_g1.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="698">http://fasb.org/us-gaap/2024</BaseTaxonomy>
    <BaseTaxonomy items="29">http://xbrl.sec.gov/dei/2024</BaseTaxonomy>
    <BaseTaxonomy items="4">http://xbrl.sec.gov/ecd/2024</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
