<?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">0001517413</identifier>
        </entity>
        <period>
            <startDate>2026-02-25</startDate>
            <endDate>2026-02-25</endDate>
        </period>
    </context>
    <context id="c-2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001517413</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-02-25</startDate>
            <endDate>2026-02-25</endDate>
        </period>
    </context>
    <context id="c-3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001517413</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>2</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-02-25</startDate>
            <endDate>2026-02-25</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>
    <ffd:FeeExhibitTp contextRef="c-1" id="f-29">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey contextRef="c-1" id="f-30">0001517413</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa contextRef="c-1" id="f-31">N/A</ffd:OffsetTableNa>
    <ffd:AmtSctiesRegd contextRef="c-2" decimals="0" id="f-32" unitRef="shares">7576863</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty contextRef="c-2" decimals="2" id="f-33" unitRef="usd">17.18</ffd:MaxOfferingPricPerScty>
    <ffd:AmtSctiesRegd contextRef="c-3" decimals="0" id="f-34" unitRef="shares">1515372</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty contextRef="c-3" decimals="2" id="f-35" unitRef="usd">14.61</ffd:MaxOfferingPricPerScty>
    <ffd:FormTp contextRef="c-1" id="f-1">S-8</ffd:FormTp>
    <ffd:SubmissnTp contextRef="c-1" id="f-2">S-8</ffd:SubmissnTp>
    <dei:EntityRegistrantName contextRef="c-1" id="f-3">Fastly, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingSctyTp contextRef="c-2" id="f-4">Equity</ffd:OfferingSctyTp>
    <ffd:PrevslyPdFlg contextRef="c-2" id="f-5">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTitl contextRef="c-2" id="f-6">2019 Equity Incentive PlanClass A Common Stock, par value $0.00002 per share</ffd:OfferingSctyTitl>
    <ffd:FeesOthrRuleFlg contextRef="c-2" id="f-7">true</ffd:FeesOthrRuleFlg>
    <ffd:AmtSctiesRegd contextRef="c-2" decimals="0" id="f-8" unitRef="shares">7576863</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty contextRef="c-2" decimals="2" id="f-9" unitRef="usd">17.18</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric contextRef="c-2" decimals="2" id="f-10" unitRef="usd">130170506.34</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate contextRef="c-2" decimals="7" id="f-11" unitRef="number">0.0001381</ffd:FeeRate>
    <ffd:FeeAmt contextRef="c-2" decimals="2" id="f-12" unitRef="usd">17976.55</ffd:FeeAmt>
    <ffd:OfferingSctyTp contextRef="c-3" id="f-13">Equity</ffd:OfferingSctyTp>
    <ffd:PrevslyPdFlg contextRef="c-3" id="f-14">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTitl contextRef="c-3" id="f-15">2019 Employee Stock Purchase Plan Class A Common Stock, par value $0.00002 per share</ffd:OfferingSctyTitl>
    <ffd:FeesOthrRuleFlg contextRef="c-3" id="f-16">true</ffd:FeesOthrRuleFlg>
    <ffd:AmtSctiesRegd contextRef="c-3" decimals="0" id="f-17" unitRef="shares">1515372</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty contextRef="c-3" decimals="2" id="f-18" unitRef="usd">14.61</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric contextRef="c-3" decimals="2" id="f-19" unitRef="usd">22139584.92</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate contextRef="c-3" decimals="7" id="f-20" unitRef="number">0.0001381</ffd:FeeRate>
    <ffd:FeeAmt contextRef="c-3" decimals="2" id="f-21" unitRef="usd">3057.48</ffd:FeeAmt>
    <ffd:TtlOfferingAmt contextRef="c-1" decimals="2" id="f-22" unitRef="usd">152310091.26</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt contextRef="c-1" decimals="2" id="f-23" unitRef="usd">21034.03</ffd:TtlFeeAmt>
    <ffd:TtlPrevslyPdAmt contextRef="c-1" decimals="2" id="f-24" unitRef="usd">0</ffd:TtlPrevslyPdAmt>
    <ffd:TtlOffsetAmt contextRef="c-1" decimals="2" id="f-25" unitRef="usd">0</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt contextRef="c-1" decimals="2" id="f-26" unitRef="usd">21034.03</ffd:NetFeeAmt>
    <ffd:OfferingNote contextRef="c-3" id="f-28">&lt;span style="color:#000000;font-family:'Times New Roman',serif;font-size:10pt;font-weight:400;line-height:100%;padding-left:6.34pt"&gt;Pursuant to Rule 416(a) under the Securities Act of 1933, as amended (the &#x201c;Securities Act&#x201d;), this Registration Statement shall also cover any additional shares of Class A common stock (&#x201c;Class A Common Stock&#x201d;) of Fastly, Inc. (the &#x201c;Registrant&#x201d;) that become issuable under the Registrant&#x2019;s 2019 Equity Incentive Plan (the &#x201c;2019 Plan&#x201d;) and the Registrant&#x2019;s 2019 Employee Stock Purchase Plan (the &#x201c;2019 ESPP&#x201d;) by reason of any stock dividend, stock split, recapitalization or other similar transaction.&lt;/span&gt;&lt;span style="color:#000000;font-family:'Times New Roman',serif;font-size:10pt;font-weight:400;line-height:100%;padding-left:6.34pt"&gt;Represents 1,515,372 additional shares of Class A Common Stock available for issuance as a result of the annual evergreen increase on January 1, 2026 under the 2019 ESPP.&lt;/span&gt;&lt;span style="color:#000000;font-family:'Times New Roman',serif;font-size:10pt;font-weight:400;line-height:100%;padding-left:6.34pt"&gt;Estimated solely for the purpose of calculating the amount of the registration fee pursuant to Rule 457(h) and 457(c) of the Securities Act. The proposed maximum aggregate offering price per share and proposed maximum aggregate offering price are calculated using the average of the high and low prices of the Class A Common Stock as reported on the Nasdaq Stock Market LLC on February 23, 2026, multiplied by 85%. Pursuant to the 2019 ESPP, the purchase price of the shares of Class A Common Stock reserved for issuance thereunder shall equal 85% of the lesser of the Fair Market Value of a share of Class A Common &lt;/span&gt;&lt;div style="padding-left:99pt;padding-right:85.5pt"&gt;&lt;span style="color:#000000;font-family:'Times New Roman',serif;font-size:10pt;font-weight:400;line-height:100%"&gt;Stock on (a) the applicable Offering Date and (b) the applicable Purchase Date (each term as defined in the 2019 ESPP).&lt;/span&gt;&lt;/div&gt;The Registrant does not have any fee offsets.</ffd:OfferingNote>
    <ffd:OfferingNote contextRef="c-2" id="f-27">&lt;span style="color:#000000;font-family:'Times New Roman',serif;font-size:10pt;font-weight:400;line-height:100%;padding-left:6.34pt"&gt;Pursuant to Rule 416(a) under the Securities Act of 1933, as amended (the &#x201c;Securities Act&#x201d;), this Registration Statement shall also cover any additional shares of Class A common stock (&#x201c;Class A Common Stock&#x201d;) of Fastly, Inc. (the &#x201c;Registrant&#x201d;) that become issuable under the Registrant&#x2019;s 2019 Equity Incentive Plan (the &#x201c;2019 Plan&#x201d;) and the Registrant&#x2019;s 2019 Employee Stock Purchase Plan (the &#x201c;2019 ESPP&#x201d;) by reason of any stock dividend, stock split, recapitalization or other similar transaction.&lt;/span&gt;&lt;span style="color:#000000;font-family:'Times New Roman',serif;font-size:10pt;font-weight:400;line-height:100%;padding-left:6.34pt"&gt;Represents 7,576,863 additional shares of Class A Common Stock available for issuance as a result of the annual evergreen increase on January 1, 2026 under the 2019 Plan.&lt;/span&gt;&lt;span style="color:#000000;font-family:'Times New Roman',serif;font-size:10pt;font-weight:400;line-height:100%;padding-left:6.34pt"&gt;Estimated solely for the purpose of calculating the amount of the registration fee pursuant to Rule 457(h) and 457(c) of the Securities Act. The proposed maximum aggregate offering price per share and proposed maximum aggregate offering price are calculated using the average of the high and low prices of the Class A Common Stock as reported on the Nasdaq Stock Market LLC on February 23, 2026.&lt;/span&gt;The Registrant does not have any fee offsets.</ffd:OfferingNote>
</xbrl>
