<?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/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="c-1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001713683</identifier>
        </entity>
        <period>
            <startDate>2025-09-11</startDate>
            <endDate>2025-09-11</endDate>
        </period>
    </context>
    <context id="c-2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001713683</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-09-11</startDate>
            <endDate>2025-09-11</endDate>
        </period>
    </context>
    <context id="c-3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001713683</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>2</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-09-11</startDate>
            <endDate>2025-09-11</endDate>
        </period>
    </context>
    <unit id="shares">
        <measure>shares</measure>
    </unit>
    <unit id="usd">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="number">
        <measure>pure</measure>
    </unit>
    <dei:EntityCentralIndexKey contextRef="c-1" id="f-1">0001713683</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName contextRef="c-1" id="f-2">Zscaler Inc</dei:EntityRegistrantName>
    <ffd:FormTp contextRef="c-1" id="f-3">S-8</ffd:FormTp>
    <ffd:SubmissnTp contextRef="c-1" id="f-4">S-8</ffd:SubmissnTp>
    <ffd:FeeExhibitTp contextRef="c-1" id="f-5">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa contextRef="c-1" id="f-6">N/A</ffd:OffsetTableNa>
    <ffd:OfferingSctyTp contextRef="c-2" id="f-7">Equity</ffd:OfferingSctyTp>
    <ffd:PrevslyPdFlg contextRef="c-2" id="f-8">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTitl contextRef="c-2" id="f-9">Common stock, $0.001 par value per share, reserved for issuance pursuant to the Amended and Restated FY2018 Equity Incentive Plan</ffd:OfferingSctyTitl>
    <ffd:FeesOthrRuleFlg contextRef="c-2" id="f-10">true</ffd:FeesOthrRuleFlg>
    <ffd:AmtSctiesRegd contextRef="c-2" decimals="0" id="f-11" unitRef="shares">8152720</ffd:AmtSctiesRegd>
    <ffd:MaxAggtOfferingPric contextRef="c-2" decimals="0" id="f-12" unitRef="usd">1422323531</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate contextRef="c-2" decimals="7" id="f-13" unitRef="number">0.0001381</ffd:FeeRate>
    <ffd:FeeAmt contextRef="c-2" decimals="2" id="f-14" unitRef="usd">196422.88</ffd:FeeAmt>
    <ffd:PrevslyPdFlg contextRef="c-3" id="f-15">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="c-3" id="f-16">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="c-3" id="f-17">Common stock, $0.001 par value per share, reserved for issuance pursuant to the FY2018 Employee Stock Purchase Plan</ffd:OfferingSctyTitl>
    <ffd:FeesOthrRuleFlg contextRef="c-3" id="f-18">true</ffd:FeesOthrRuleFlg>
    <ffd:AmtSctiesRegd contextRef="c-3" decimals="0" id="f-19" unitRef="shares">1630544</ffd:AmtSctiesRegd>
    <ffd:MaxAggtOfferingPric contextRef="c-3" decimals="0" id="f-20" unitRef="usd">241809675</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate contextRef="c-3" decimals="7" id="f-21" unitRef="number">0.0001381</ffd:FeeRate>
    <ffd:FeeAmt contextRef="c-3" decimals="2" id="f-22" unitRef="usd">33393.92</ffd:FeeAmt>
    <ffd:TtlOfferingAmt contextRef="c-1" decimals="0" id="f-23" unitRef="usd">1664133206</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt contextRef="c-1" decimals="2" id="f-24" unitRef="usd">229816.8</ffd:TtlFeeAmt>
    <ffd:TtlOffsetAmt contextRef="c-1" decimals="0" id="f-25" unitRef="usd">0</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt contextRef="c-1" decimals="2" id="f-26" unitRef="usd">229816.8</ffd:NetFeeAmt>
    <ffd:OfferingNote contextRef="c-3" id="f-28">Pursuant to Rule 416(a) under the Securities Act of 1933, as amended (the &#x201c;Securities Act&#x201d;), this Registration Statement on Form S-8 shall also cover any additional shares of the Registrant&#x2019;s common stock that become issuable under the Registrant&#x2019;s Amended and Restated FY2018 Equity Incentive Plan (&#x201c;2018 Plan&#x201d;) and the Registrant&#x2019;s FY2018 Employee Stock Purchase Plan (&#x201c;2018 ESPP&#x201d;) by reason of any stock dividend, stock split, recapitalization or other similar transaction effected without receipt of consideration that increases the number of the Registrant&#x2019;s outstanding shares of common stock.&lt;span style="color:#000000;font-family:'Times New Roman',serif;font-size:10pt;font-weight:400;line-height:120%;padding-left:6.34pt"&gt;Represents an automatic annual increase on August 1, 2026 to the number of shares of the Registrant&#x2019;s common stock reserved for issuance under the 2018 ESPP, which annual increase is provided for in the 2018 ESPP.&lt;/span&gt;</ffd:OfferingNote>
    <ffd:OfferingNote contextRef="c-2" id="f-27">Pursuant to Rule 416(a) under the Securities Act of 1933, as amended (the &#x201c;Securities Act&#x201d;), this Registration Statement on Form S-8 shall also cover any additional shares of the Registrant&#x2019;s common stock that become issuable under the Registrant&#x2019;s Amended and Restated FY2018 Equity Incentive Plan (&#x201c;2018 Plan&#x201d;) and the Registrant&#x2019;s FY2018 Employee Stock Purchase Plan (&#x201c;2018 ESPP&#x201d;) by reason of any stock dividend, stock split, recapitalization or other similar transaction effected without receipt of consideration that increases the number of the Registrant&#x2019;s outstanding shares of common stock.Represents an automatic annual increase on August 1, 2026 to the number of shares of the Registrant&#x2019;s common stock reserved for issuance under the 2018 Plan, which annual increase is provided for in the 2018 Plan.&lt;span style="color:#000000;font-family:'Times New Roman',serif;font-size:10pt;font-weight:400;line-height:120%;padding-left:6.34pt"&gt;Estimated in accordance with Rules 457(c) and (h) of the Securities Act solely for the purpose of calculating the registration fee on the basis of $174.46 per share, which is the average of the high and low prices of the Registrant&#x2019;s common stock on September 2, 2026, as reported on the NASDAQ Global Select Market.&lt;/span&gt;&lt;span style="color:#000000;font-family:'Times New Roman',serif;font-size:10pt;font-weight:400;line-height:120%;padding-left:6.34pt"&gt;Estimated in accordance with Rules 457(c) and (h) of the Securities Act solely for the purpose of calculating the registration fee on the basis of 85% of $174.46 per share, which is the average of the high and low prices of the Registrant&#x2019;s common stock on September 2, 2026, as reported on the NASDAQ Global Select Market. Pursuant to the 2018 ESPP, the purchase price of the shares of common stock reserved for issuance thereunder will be 85% of the lower of the fair market value of a share of the Registrant&#x2019;s common stock on the Enrollment Date (as defined in the Plan) or on the Exercise Date (as defined in the 2018 ESPP).&lt;/span&gt;</ffd:OfferingNote>
</xbrl>
