<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xml:lang="en-US"
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xbrldi="http://xbrl.org/2006/xbrldi"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="c-1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000109198</identifier>
        </entity>
        <period>
            <startDate>2026-05-29</startDate>
            <endDate>2026-05-29</endDate>
        </period>
    </context>
    <context id="c-2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000109198</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-05-29</startDate>
            <endDate>2026-05-29</endDate>
        </period>
    </context>
    <unit id="number">
        <measure>pure</measure>
    </unit>
    <unit id="usd">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey contextRef="c-1" id="f-15">0000109198</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp contextRef="c-1" id="f-16">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa contextRef="c-1" id="f-17">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa contextRef="c-1" id="f-18">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp contextRef="c-1" id="f-19">S-3ASR</ffd:SubmissnTp>
    <ffd:FormTp contextRef="c-1" id="f-1">S-3</ffd:FormTp>
    <dei:EntityRegistrantName contextRef="c-1" id="f-2">The TJX Companies, Inc.</dei:EntityRegistrantName>
    <ffd:PrevslyPdFlg contextRef="c-2" id="f-3">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="c-2" id="f-4">Debt</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="c-2" id="f-5">Debt Securities</ffd:OfferingSctyTitl>
    <ffd:Rule457rFlg contextRef="c-2" id="f-6">true</ffd:Rule457rFlg>
    <ffd:FeeRate contextRef="c-2" decimals="7" id="f-7" unitRef="number">0.0001381</ffd:FeeRate>
    <ffd:FeeAmt contextRef="c-2" decimals="2" id="f-8" unitRef="usd">0.00</ffd:FeeAmt>
    <ffd:TtlOfferingAmt contextRef="c-1" decimals="2" id="f-9" unitRef="usd">0.00</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt contextRef="c-1" decimals="2" id="f-10" unitRef="usd">0.00</ffd:TtlFeeAmt>
    <ffd:TtlPrevslyPdAmt contextRef="c-1" decimals="2" id="f-11" unitRef="usd">0.00</ffd:TtlPrevslyPdAmt>
    <ffd:TtlOffsetAmt contextRef="c-1" decimals="2" id="f-12" unitRef="usd">0.00</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt contextRef="c-1" decimals="2" id="f-13" unitRef="usd">0.00</ffd:NetFeeAmt>
    <ffd:OfferingNote contextRef="c-2" id="f-14">The Registrant is relying on Rule 456(b) and Rule 457(r) under the Securities Act of 1933, as amended, to defer payment of all of the registration fee. In connection with the securities offered hereby, the Registrant will pay "pay-as-you-go registration fees" in accordance with Rule 456(b). The Registrant will calculate the registration fee applicable to an offer of securities pursuant to this Registration Statement based on the fee payment rate in effect on the date of such fee payment. This Registration Statement covers an indeterminate number of securities of the identified class of the Registrant as may from time to time be issued at indeterminate prices, including securities that may be issued upon exercise, conversion, settlement or exchange of, any securities offered hereunder.</ffd:OfferingNote>
</xbrl>
