<?xml version="1.0"?>
<ownershipDocument>

    <schemaVersion>X0508</schemaVersion>

    <documentType>4</documentType>

    <periodOfReport>2023-11-27</periodOfReport>

    <issuer>
        <issuerCik>0000914156</issuerCik>
        <issuerName>UFP TECHNOLOGIES INC</issuerName>
        <issuerTradingSymbol>UFPT</issuerTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001033284</rptOwnerCik>
            <rptOwnerName>BAILLY R JEFFREY</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>C/O UFP TECHNOLOGIES, INC.</rptOwnerStreet1>
            <rptOwnerStreet2>100 HALE STREET</rptOwnerStreet2>
            <rptOwnerCity>NEWBURYPORT</rptOwnerCity>
            <rptOwnerState>MA</rptOwnerState>
            <rptOwnerZipCode>01950</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>1</isDirector>
            <isOfficer>1</isOfficer>
            <isTenPercentOwner>0</isTenPercentOwner>
            <isOther>0</isOther>
            <officerTitle>President and CEO</officerTitle>
        </reportingOwnerRelationship>
    </reportingOwner>

    <aff10b5One>0</aff10b5One>

    <nonDerivativeTable>
        <nonDerivativeTransaction>
            <securityTitle>
                <value>Common Stock, $.01 Par Value</value>
            </securityTitle>
            <transactionDate>
                <value>2023-11-27</value>
            </transactionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>S</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
            </transactionCoding>
            <transactionAmounts>
                <transactionShares>
                    <value>45</value>
                </transactionShares>
                <transactionPricePerShare>
                    <value>173.00</value>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>D</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>72125</value>
                    <footnoteId id="F1"/>
                    <footnoteId id="F2"/>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>I</value>
                </directOrIndirectOwnership>
                <natureOfOwnership>
                    <value>In Trust</value>
                </natureOfOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>
    </nonDerivativeTable>

    <footnotes>
        <footnote id="F1">The reporting person disclaims beneficial ownership of such securities except to the extent of his pecuniary interest therein, if any, and this report shall not be deemed an admission that the reporting person is the beneficial owner of any or all of the reported shares for purposes of Section 16 or any other purpose.</footnote>
        <footnote id="F2">The reporting person also owns 284,797 shares of UFP Technologies, Inc. directly.</footnote>
    </footnotes>

    <ownerSignature>
        <signatureName>Patrick J. Kinney, Jr., as attorney-in-fact for R. Jeffrey Bailly</signatureName>
        <signatureDate>2023-11-29</signatureDate>
    </ownerSignature>
</ownershipDocument>
