<?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">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="P05_19_2026To05_19_2026">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000107263</identifier>
        </entity>
        <period>
            <startDate>2026-05-19</startDate>
            <endDate>2026-05-19</endDate>
        </period>
    </context>
    <context id="P05_19_2026To05_19_2026_1TypedMemberffdOfferingAxis">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000107263</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-05-19</startDate>
            <endDate>2026-05-19</endDate>
        </period>
    </context>
    <unit id="Unit_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="Unit_pure">
        <measure>pure</measure>
    </unit>
    <unit id="Unit_shares">
        <measure>shares</measure>
    </unit>
    <dei:EntityCentralIndexKey contextRef="P05_19_2026To05_19_2026" id="ixv-194">0000107263</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp contextRef="P05_19_2026To05_19_2026" id="ixv-195">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:PrevslyPdFlg
      contextRef="P05_19_2026To05_19_2026_1TypedMemberffdOfferingAxis"
      id="hidden165769213">false</ffd:PrevslyPdFlg>
    <ffd:FeeRate
      contextRef="P05_19_2026To05_19_2026_1TypedMemberffdOfferingAxis"
      decimals="INF"
      id="hidden165769226"
      unitRef="Unit_pure">0.0001381</ffd:FeeRate>
    <ffd:OffsetTableNa contextRef="P05_19_2026To05_19_2026" id="ixv-198">N/A</ffd:OffsetTableNa>
    <ffd:FormTp contextRef="P05_19_2026To05_19_2026" id="ixv-223">S-8</ffd:FormTp>
    <ffd:SubmissnTp contextRef="P05_19_2026To05_19_2026" id="ixv-224">S-8</ffd:SubmissnTp>
    <dei:EntityRegistrantName contextRef="P05_19_2026To05_19_2026" id="ixv-225">The Williams Companies, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingSctyTp
      contextRef="P05_19_2026To05_19_2026_1TypedMemberffdOfferingAxis"
      id="ixv-226">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl
      contextRef="P05_19_2026To05_19_2026_1TypedMemberffdOfferingAxis"
      id="ixv-227">Common Stock, $1.00 par value per share</ffd:OfferingSctyTitl>
    <ffd:Rule457aFlg
      contextRef="P05_19_2026To05_19_2026_1TypedMemberffdOfferingAxis"
      id="ixv-228">true</ffd:Rule457aFlg>
    <ffd:AmtSctiesRegd
      contextRef="P05_19_2026To05_19_2026_1TypedMemberffdOfferingAxis"
      decimals="0"
      id="ixv-229"
      unitRef="Unit_shares">53100000</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty
      contextRef="P05_19_2026To05_19_2026_1TypedMemberffdOfferingAxis"
      decimals="2"
      id="ixv-230"
      unitRef="Unit_pure">75.18</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric
      contextRef="P05_19_2026To05_19_2026_1TypedMemberffdOfferingAxis"
      decimals="0"
      id="ixv-231"
      unitRef="Unit_USD">3992058000</ffd:MaxAggtOfferingPric>
    <ffd:FeeAmt
      contextRef="P05_19_2026To05_19_2026_1TypedMemberffdOfferingAxis"
      decimals="2"
      id="ixv-232"
      unitRef="Unit_USD">551303.21</ffd:FeeAmt>
    <ffd:TtlOfferingAmt
      contextRef="P05_19_2026To05_19_2026"
      decimals="0"
      id="ixv-233"
      unitRef="Unit_USD">3992058000</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt
      contextRef="P05_19_2026To05_19_2026"
      decimals="2"
      id="ixv-234"
      unitRef="Unit_USD">551303.21</ffd:TtlFeeAmt>
    <ffd:TtlOffsetAmt
      contextRef="P05_19_2026To05_19_2026"
      decimals="0"
      id="ixv-235"
      unitRef="Unit_USD">0</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt
      contextRef="P05_19_2026To05_19_2026"
      decimals="2"
      id="ixv-236"
      unitRef="Unit_USD">551303.21</ffd:NetFeeAmt>
    <ffd:OfferingNote
      contextRef="P05_19_2026To05_19_2026_1TypedMemberffdOfferingAxis"
      id="ixv-185">
&lt;table cellpadding="0" cellspacing="0" style="text-align:start; BORDER-COLLAPSE:COLLAPSE; font-family:Times New Roman; font-size:10pt;border-spacing:0;width:100%"&gt;
&lt;tr style="page-break-inside:avoid"&gt;
&lt;td style="width:4%;vertical-align:top;text-align:left"&gt;(1)&lt;/td&gt;
&lt;td style="vertical-align:top;text-align:left"&gt;&lt;div style=" margin-top:0pt ; margin-bottom:0pt; font-size:10pt; font-family:Times New Roman;text-align:left"&gt;The Amount Registered represents 49,500,000 shares of common stock, par value $1.00 per share (the &#x201c;Common Stock&#x201d;) of The Williams Companies, Inc. (the &#x201c;Registrant&#x201d;) issuable under the Registrant&#x2019;s 2007 Incentive Plan (as amended and restated, the &#x201c;Incentive Plan&#x201d;), including 4,500,000 shares of Common Stock that may become available for issuance under the Incentive Plan as a result of outstanding awards that are forfeited, settled in cash or otherwise terminate without the delivery of such shares, and 3,600,000 shares of Common Stock issuable under the Registrant&#x2019;s 2007 Employee Stock Purchase Plan (as amended and restated, the &#x201c;ESPP,&#x201d; and together with the Incentive Plan, the &#x201c;Plans&#x201d;). Pursuant to Rule 416(a) under the Securities Act of 1933, as amended (the &#x201c;Securities Act&#x201d;), this Registration Statement on Form &lt;div style="white-space:nowrap;display:inline;"&gt;S-8&lt;/div&gt; shall also cover any additional shares of Common Stock that become issuable under the Plans to prevent dilution in the event of stock splits, stock dividends or similar transactions. The Proposed Maximum Offering Price Per Unit has been estimated solely for the purpose of calculating the registration fee pursuant to Rules 457(c) and (h)&#160;of the Securities Act, and is based on the average of the high and low sale prices of the Common Stock, as quoted on The New York Stock Exchange, on May 13, 2026. &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</ffd:OfferingNote>
</xbrl>
