<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xbrldi="http://xbrl.org/2006/xbrldi"
  xmlns:xhtml="http://www.w3.org/1999/xhtml"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="AsOf2025-08-18">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000883618</identifier>
        </entity>
        <period>
            <startDate>2025-08-18</startDate>
            <endDate>2025-08-18</endDate>
        </period>
    </context>
    <context id="From2025-08-182025-08-18_1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000883618</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-08-18</startDate>
            <endDate>2025-08-18</endDate>
        </period>
    </context>
    <unit id="USD">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="Shares">
        <measure>shares</measure>
    </unit>
    <unit id="USDPShares">
        <divide>
            <unitNumerator>
                <measure>iso4217:USD</measure>
            </unitNumerator>
            <unitDenominator>
                <measure>shares</measure>
            </unitDenominator>
        </divide>
    </unit>
    <unit id="Ratio">
        <measure>pure</measure>
    </unit>
    <dei:EntityCentralIndexKey contextRef="AsOf2025-08-18" id="Fact000003">0000883618</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp contextRef="AsOf2025-08-18" id="xdx2ixbrl0009">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp contextRef="AsOf2025-08-18" id="xdx2ixbrl0010">N-14 8C/A</ffd:SubmissnTp>
    <ffd:FormTp contextRef="AsOf2025-08-18" id="xdx2ixbrl0011">N-14</ffd:FormTp>
    <dei:EntityRegistrantName contextRef="AsOf2025-08-18" id="Fact000012">Nuveen Select Tax-Free Income Portfolio</dei:EntityRegistrantName>
    <ffd:PrevslyPdFlg contextRef="From2025-08-182025-08-18_1" id="Fact000013">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="From2025-08-182025-08-18_1" id="Fact000014">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="From2025-08-182025-08-18_1" id="Fact000015">Common     Shares of Beneficial Interest, $0.01 Par Value Per Share</ffd:OfferingSctyTitl>
    <ffd:FeesOthrRuleFlg contextRef="From2025-08-182025-08-18_1" id="Fact000016">true</ffd:FeesOthrRuleFlg>
    <ffd:AmtSctiesRegd
      contextRef="From2025-08-182025-08-18_1"
      decimals="INF"
      id="Fact000017"
      unitRef="Shares">1000</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty
      contextRef="From2025-08-182025-08-18_1"
      decimals="INF"
      id="Fact000018"
      unitRef="USDPShares">14.07</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric
      contextRef="From2025-08-182025-08-18_1"
      decimals="0"
      id="Fact000019"
      unitRef="USD">14070</ffd:MaxAggtOfferingPric>
    <ffd:FeeAmt
      contextRef="From2025-08-182025-08-18_1"
      decimals="INF"
      id="Fact000020"
      unitRef="USD">2.15</ffd:FeeAmt>
    <ffd:TtlOfferingAmt
      contextRef="AsOf2025-08-18"
      decimals="0"
      id="Fact000021"
      unitRef="USD">14070</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt
      contextRef="AsOf2025-08-18"
      decimals="INF"
      id="Fact000022"
      unitRef="USD">2.15</ffd:TtlFeeAmt>
    <ffd:TtlPrevslyPdAmt
      contextRef="AsOf2025-08-18"
      decimals="0"
      id="Fact000023"
      unitRef="USD">0</ffd:TtlPrevslyPdAmt>
    <ffd:TtlOffsetAmt
      contextRef="AsOf2025-08-18"
      decimals="0"
      id="Fact000024"
      unitRef="USD">0</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt
      contextRef="AsOf2025-08-18"
      decimals="INF"
      id="Fact000025"
      unitRef="USD">2.15</ffd:NetFeeAmt>
    <ffd:OfferingNote contextRef="From2025-08-182025-08-18_1" id="Fact000028">Net asset value per common share on July 8, 2025.</ffd:OfferingNote>
    <ffd:OffsetTableNa contextRef="AsOf2025-08-18" id="Fact000029">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa contextRef="AsOf2025-08-18" id="Fact000030">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb contextRef="AsOf2025-08-18" id="Fact000031">333-288619</ffd:RegnFileNb>
    <link:footnoteLink
      xlink:role="http://www.xbrl.org/2003/role/link"
      xlink:type="extended">
        <link:loc
          xlink:href="#Fact000019"
          xlink:label="Fact000019"
          xlink:type="locator"/>
        <link:footnote id="Footnote000026" xlink:label="Footnote000026" xlink:role="http://www.xbrl.org/2003/role/footnote" xlink:type="resource" xml:lang="en-US">Estimated solely for the purpose of calculating the registration
fee.</link:footnote>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="Fact000019"
          xlink:to="Footnote000026"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#Fact000018"
          xlink:label="Fact000018"
          xlink:type="locator"/>
        <link:footnote id="Footnote000027" xlink:label="Footnote000027" xlink:role="http://www.xbrl.org/2003/role/footnote" xlink:type="resource" xml:lang="en-US"><xhtml:span id="xdx_90C_effd--OfferingNote_c20250818__20250818__ffd--OfferingAxis__1_zzbs9YhSOUj6">Net asset value per common share on July 8, 2025.</xhtml:span></link:footnote>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="Fact000018"
          xlink:to="Footnote000027"
          xlink:type="arc"/>
    </link:footnoteLink>
</xbrl>
