<?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:xlink="http://www.w3.org/1999/xlink"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="AsOf2026-06-16">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000883618</identifier>
        </entity>
        <period>
            <startDate>2026-06-16</startDate>
            <endDate>2026-06-16</endDate>
        </period>
    </context>
    <context id="From2026-06-162026-06-16_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>2026-06-16</startDate>
            <endDate>2026-06-16</endDate>
        </period>
    </context>
    <context id="From2026-06-162026-06-16_2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000883618</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>2</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-06-16</startDate>
            <endDate>2026-06-16</endDate>
        </period>
    </context>
    <context id="From2026-06-162026-06-16_3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000883618</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>3</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-06-16</startDate>
            <endDate>2026-06-16</endDate>
        </period>
    </context>
    <context id="From2026-06-162026-06-16_4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000883618</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>4</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-06-16</startDate>
            <endDate>2026-06-16</endDate>
        </period>
    </context>
    <unit id="USD">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="Ratio">
        <measure>pure</measure>
    </unit>
    <dei:EntityCentralIndexKey contextRef="AsOf2026-06-16" id="Fact000003">0000883618</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp contextRef="AsOf2026-06-16" id="xdx2ixbrl0009">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp contextRef="AsOf2026-06-16" id="xdx2ixbrl0011">N-2ASR</ffd:SubmissnTp>
    <ffd:FeeRate
      contextRef="From2026-06-162026-06-16_1"
      id="xdx2ixbrl0017"
      unitRef="Ratio"
      xsi:nil="true"/>
    <ffd:FeeRate
      contextRef="From2026-06-162026-06-16_2"
      id="xdx2ixbrl0022"
      unitRef="Ratio"
      xsi:nil="true"/>
    <ffd:OfferingSctyTp contextRef="From2026-06-162026-06-16_3" id="xdx2ixbrl0025">Other</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="From2026-06-162026-06-16_3" id="xdx2ixbrl0026">Unallocated (Universal) Shelf</ffd:OfferingSctyTitl>
    <ffd:FeeRate
      contextRef="From2026-06-162026-06-16_3"
      id="xdx2ixbrl0028"
      unitRef="Ratio"
      xsi:nil="true"/>
    <ffd:CfwdFormTp contextRef="From2026-06-162026-06-16_4" id="xdx2ixbrl0033">N-2</ffd:CfwdFormTp>
    <ffd:OfferingTableNa
      contextRef="AsOf2026-06-16"
      id="xdx2ixbrl0045"
      xsi:nil="true"/>
    <ffd:FormTp contextRef="AsOf2026-06-16" id="Fact000010">N-2</ffd:FormTp>
    <dei:EntityRegistrantName contextRef="AsOf2026-06-16" id="Fact000012">Nuveen Select Tax-Free Income Portfolio</dei:EntityRegistrantName>
    <ffd:PrevslyPdFlg contextRef="From2026-06-162026-06-16_1" id="Fact000013">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="From2026-06-162026-06-16_1" id="Fact000014">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="From2026-06-162026-06-16_1" id="Fact000015">Common Shares $0.01 par value per share</ffd:OfferingSctyTitl>
    <ffd:Rule457rFlg contextRef="From2026-06-162026-06-16_1" id="Fact000016">true</ffd:Rule457rFlg>
    <ffd:PrevslyPdFlg contextRef="From2026-06-162026-06-16_2" id="Fact000018">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="From2026-06-162026-06-16_2" id="Fact000019">Other</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="From2026-06-162026-06-16_2" id="Fact000020">Rights to purchase Common Shares</ffd:OfferingSctyTitl>
    <ffd:FeesOthrRuleFlg contextRef="From2026-06-162026-06-16_2" id="Fact000021">true</ffd:FeesOthrRuleFlg>
    <ffd:FeeAmt
      contextRef="From2026-06-162026-06-16_2"
      decimals="INF"
      id="Fact000023"
      unitRef="USD">0</ffd:FeeAmt>
    <ffd:PrevslyPdFlg contextRef="From2026-06-162026-06-16_3" id="Fact000024">false</ffd:PrevslyPdFlg>
    <ffd:Rule457rFlg contextRef="From2026-06-162026-06-16_3" id="Fact000027">true</ffd:Rule457rFlg>
    <ffd:OfferingSctyTp contextRef="From2026-06-162026-06-16_4" id="Fact000029">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="From2026-06-162026-06-16_4" id="Fact000030">Common Shares, $0.01 par value per share</ffd:OfferingSctyTitl>
    <ffd:Rule415a6Flg contextRef="From2026-06-162026-06-16_4" id="Fact000031">true</ffd:Rule415a6Flg>
    <ffd:MaxAggtOfferingPric
      contextRef="From2026-06-162026-06-16_4"
      decimals="INF"
      id="Fact000032"
      unitRef="USD">106083793.09</ffd:MaxAggtOfferingPric>
    <ffd:CfwdPrrFileNb contextRef="From2026-06-162026-06-16_4" id="Fact000034">333-271575</ffd:CfwdPrrFileNb>
    <ffd:CfwdPrrFctvDt contextRef="From2026-06-162026-06-16_4" id="Fact000035">2023-06-22</ffd:CfwdPrrFctvDt>
    <ffd:CfwdPrevslyPdFee
      contextRef="From2026-06-162026-06-16_4"
      decimals="INF"
      id="Fact000036"
      unitRef="USD">11690.43</ffd:CfwdPrevslyPdFee>
    <ffd:TtlOfferingAmt
      contextRef="AsOf2026-06-16"
      decimals="INF"
      id="Fact000037"
      unitRef="USD">106083793.09</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt
      contextRef="AsOf2026-06-16"
      decimals="INF"
      id="Fact000038"
      unitRef="USD">0</ffd:TtlFeeAmt>
    <ffd:TtlPrevslyPdAmt
      contextRef="AsOf2026-06-16"
      decimals="INF"
      id="Fact000039"
      unitRef="USD">0</ffd:TtlPrevslyPdAmt>
    <ffd:TtlOffsetAmt
      contextRef="AsOf2026-06-16"
      decimals="INF"
      id="Fact000040"
      unitRef="USD">0</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt
      contextRef="AsOf2026-06-16"
      decimals="INF"
      id="Fact000041"
      unitRef="USD">0</ffd:NetFeeAmt>
    <ffd:OfferingNote contextRef="From2026-06-162026-06-16_1" id="Fact000042">
&lt;table cellpadding="0" cellspacing="0" style="font: 10pt Times New Roman, Times, Serif; margin-top: 0pt; margin-bottom: 6pt; width: 100%"&gt;&lt;tr style="vertical-align: top; text-align: justify"&gt;
&lt;td style="width: 15pt; text-align: right"&gt;&lt;sup&gt;(1)&lt;/sup&gt;&lt;/td&gt;&lt;td style="width: 5pt"&gt;&lt;/td&gt;&lt;td style="text-align: justify"&gt;An indeterminate number of common shares, preferred shares and subscription rights to purchase
common shares are being registered as may from time to time be offered, on an immediate, continuous or delayed basis, at indeterminate
prices.&lt;/td&gt;
&lt;/tr&gt;&lt;/table&gt;

&lt;table cellpadding="0" cellspacing="0" style="font: 10pt Times New Roman, Times, Serif; margin-top: 0pt; margin-bottom: 6pt; width: 100%"&gt;&lt;tr style="vertical-align: top; text-align: justify"&gt;
&lt;td style="width: 15pt; text-align: right"&gt;&lt;sup&gt;(2)&lt;/sup&gt;&lt;/td&gt;&lt;td style="width: 5pt"&gt;&lt;/td&gt;&lt;td style="text-align: justify"&gt;In accordance with Rule 456(b) and Rule 457(r) under the Securities Act of 1933, as amended
(&#x201c;Securities Act&#x201d;), the Registrant is deferring payment of all of the registration fees and will pay any registration fees
subsequently in advance or on a pay-as-you-go basis.&lt;/td&gt;
&lt;/tr&gt;&lt;/table&gt;
</ffd:OfferingNote>
    <ffd:OfferingNote contextRef="From2026-06-162026-06-16_2" id="Fact000043">No separate consideration will be received by the Registrant. Any shares issued pursuant
to an offering of rights to purchase common shares, including any shares issued pursuant to an over-subscription privilege or a secondary
over subscription privilege, will be shares registered under this Registration Statement.</ffd:OfferingNote>
    <ffd:OffsetTableNa contextRef="AsOf2026-06-16" id="Fact000046">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa contextRef="AsOf2026-06-16" id="Fact000047">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingNote contextRef="From2026-06-162026-06-16_3" id="Fact000048">&lt;span style="visibility: hidden"&gt;See Offering Note 1.&#160;&lt;/span&gt;</ffd:OfferingNote>
    <ffd:OfferingNote contextRef="From2026-06-162026-06-16_4" id="Fact000049">&lt;span style="visibility: hidden"&gt;See Offering Note 1.&#160;&lt;/span&gt;</ffd:OfferingNote>
    <link:footnoteLink
      xlink:role="http://www.xbrl.org/2003/role/link"
      xlink:type="extended">
        <link:loc
          xlink:href="#Fact000032"
          xlink:label="Fact000032"
          xlink:type="locator"/>
        <link:footnote id="Footnote000044" xlink:label="Footnote000044" xlink:role="http://www.xbrl.org/2003/role/footnote" xlink:type="resource" xml:lang="en-US">The Registrant previously registered 14,000,000 Common Shares in reliance on Rule 457(c)
under the Securities Act, with respect to which the Registrant paid filing fees of $22,316.60 in its prior Registration Statement (File
No. 333-271575), which was declared effective on June 22, 2023 (the &#x201c;2023 Registration Statement&#x201d;). As of the time of this
filing, 7,333,826 Common Shares remain unsold from the 2023 Registration Statement. Pursuant to Rule 415(a)(6) under the Securities Act,
this Registration Statement carries forward such unsold Common Shares, with respect to which $11,690.43 in filing fees have already been
paid. Because this Registration Statement only includes such carry forward securities for which a registration fee was previously paid,
no additional filing fees are currently due.</link:footnote>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="Fact000032"
          xlink:to="Footnote000044"
          xlink:type="arc"/>
        <link:loc
          xlink:href="#Fact000036"
          xlink:label="Fact000036"
          xlink:type="locator"/>
        <link:footnoteArc
          xlink:arcrole="http://www.xbrl.org/2003/arcrole/fact-footnote"
          xlink:from="Fact000036"
          xlink:to="Footnote000044"
          xlink:type="arc"/>
    </link:footnoteLink>
</xbrl>
