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

    <schemaVersion>X0508</schemaVersion>

    <documentType>4</documentType>

    <periodOfReport>2026-02-17</periodOfReport>

    <issuer>
        <issuerCik>0001005731</issuerCik>
        <issuerName>IDT CORP</issuerName>
        <issuerTradingSymbol>IDT</issuerTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001560958</rptOwnerCik>
            <rptOwnerName>ASH MENACHEM</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>C/O IDT CORPORATION</rptOwnerStreet1>
            <rptOwnerStreet2>520 BROAD STREET</rptOwnerStreet2>
            <rptOwnerCity>NEWARK</rptOwnerCity>
            <rptOwnerState>NJ</rptOwnerState>
            <rptOwnerZipCode>07102</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>false</isDirector>
            <isOfficer>true</isOfficer>
            <isTenPercentOwner>false</isTenPercentOwner>
            <isOther>false</isOther>
            <officerTitle>EVP of Strategic&amp;Legal Affairs</officerTitle>
        </reportingOwnerRelationship>
    </reportingOwner>

    <aff10b5One>false</aff10b5One>

    <nonDerivativeTable>
        <nonDerivativeTransaction>
            <securityTitle>
                <value>Class B Common Stock, $.01 par value per share</value>
            </securityTitle>
            <transactionDate>
                <value>2026-02-17</value>
            </transactionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>M</transactionCode>
                <equitySwapInvolved>false</equitySwapInvolved>
            </transactionCoding>
            <transactionAmounts>
                <transactionShares>
                    <value>834</value>
                    <footnoteId id="F1"/>
                </transactionShares>
                <transactionPricePerShare>
                    <value>48.45</value>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>A</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>52590</value>
                    <footnoteId id="F2"/>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>
        <nonDerivativeTransaction>
            <securityTitle>
                <value>Class B Common Stock, $.01 par value per share</value>
            </securityTitle>
            <transactionDate>
                <value>2026-02-17</value>
            </transactionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>F</transactionCode>
                <equitySwapInvolved>false</equitySwapInvolved>
            </transactionCoding>
            <transactionAmounts>
                <transactionShares>
                    <value>347</value>
                    <footnoteId id="F3"/>
                </transactionShares>
                <transactionPricePerShare>
                    <value>48.45</value>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>D</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>52243</value>
                    <footnoteId id="F4"/>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>
        <nonDerivativeHolding>
            <securityTitle>
                <value>Class B Common Stock, $.01 par value per share</value>
            </securityTitle>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>2871</value>
                    <footnoteId id="F5"/>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>I</value>
                </directOrIndirectOwnership>
                <natureOfOwnership>
                    <value>By 401(k) Plan</value>
                </natureOfOwnership>
            </ownershipNature>
        </nonDerivativeHolding>
    </nonDerivativeTable>

    <derivativeTable>
        <derivativeTransaction>
            <securityTitle>
                <value>Deferred Stock Units</value>
            </securityTitle>
            <conversionOrExercisePrice>
                <footnoteId id="F6"/>
            </conversionOrExercisePrice>
            <transactionDate>
                <value>2026-02-17</value>
            </transactionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>M</transactionCode>
                <equitySwapInvolved>false</equitySwapInvolved>
            </transactionCoding>
            <transactionAmounts>
                <transactionShares>
                    <value>834</value>
                </transactionShares>
                <transactionPricePerShare>
                    <value>0</value>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>D</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <exerciseDate>
                <footnoteId id="F6"/>
            </exerciseDate>
            <expirationDate>
                <footnoteId id="F6"/>
            </expirationDate>
            <underlyingSecurity>
                <underlyingSecurityTitle>
                    <value>Class B Common Stock</value>
                </underlyingSecurityTitle>
                <underlyingSecurityShares>
                    <value>4166</value>
                </underlyingSecurityShares>
            </underlyingSecurity>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>4166</value>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </derivativeTransaction>
    </derivativeTable>

    <footnotes>
        <footnote id="F1">Under the terms of the IDT Corporation Equity Growth Program, due to the market price of the Issuer's Class B common stock (&quot;Stock&quot;) on the applicable vesting date of February 17, 2026 as compared to the Grant Price of the Deferred Stock Units (&quot;DSUs&quot;) ($50.90), the Reporting Person received 1.0 share of Stock for each of the DSUs that vested.  The Reporting Person had the option on 1/19/2026 to defer vesting to the next scheduled vesting of 2/16/2027. He elected to defer vesting of 833 DSUs that vested, entitling him to receive 834 shares of Stock.</footnote>
        <footnote id="F2">Consists of 19,688 shares of Stock issued upon the vesting of DSUs and 32,902 fully vested shares of Restricted Stock.</footnote>
        <footnote id="F3">Represents shares withheld by the Issuer for tax purposes upon the vesting of DSUs.</footnote>
        <footnote id="F4">Consists of 19,341 shares of Stock issued upon the vesting of DSUs and 32,902 fully vested shares of Restricted Stock.</footnote>
        <footnote id="F5">As of January 30, 2026.</footnote>
        <footnote id="F6">Represents 834 DSUs that vested on 2/17/2026.  The 834 shares of Stock that were issued is equal to 1.0 share per vested DSU and was based on the Market Price on the applicable vesting date as compared to the Grant Price of the DSUs ($50.90), with no less than 0.5 shares (Market Price less than $25.45) and no more than 4.0 shares (Market Price greater than $101.80), to be issued for each DSU vested. Upon vesting of all of the DSUs, between 2,500 and 20,000 shares of Stock will have been issued. &quot;Market Price&quot; for each vesting date will be the greater of (i) the closing price for the Stock on the trading date immediately prior to such vesting date, and (ii) the average of the closing prices of the Stock for the 20 trading days ending with the trading day immediately prior to such vesting date.</footnote>
    </footnotes>

    <ownerSignature>
        <signatureName>Joyce J. Mason, by Power of Attorney</signatureName>
        <signatureDate>2026-02-19</signatureDate>
    </ownerSignature>
</ownershipDocument>
