<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="rc">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001723690</identifier>
        </entity>
        <period>
            <startDate>2026-09-30</startDate>
            <endDate>2026-09-30</endDate>
        </period>
    </context>
    <context id="offrl_1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001723690</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-09-30</startDate>
            <endDate>2026-09-30</endDate>
        </period>
    </context>
    <context id="offrl_2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001723690</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>2</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-09-30</startDate>
            <endDate>2026-09-30</endDate>
        </period>
    </context>
    <unit id="USD">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="pure">
        <measure>pure</measure>
    </unit>
    <unit id="Shares">
        <measure>shares</measure>
    </unit>
    <ffd:FormTp contextRef="rc" id="ixv-189">S-8</ffd:FormTp>
    <ffd:SubmissnTp contextRef="rc" id="ixv-190">S-8</ffd:SubmissnTp>
    <ffd:FeeExhibitTp contextRef="rc" id="ixv-191">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey contextRef="rc" id="ixv-192">0001723690</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName contextRef="rc" id="ixv-193">Bilibili Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa contextRef="rc" id="hiddenrcOfferingTableNa" xsi:nil="true"/>
    <ffd:OffsetTableNa contextRef="rc" id="hiddenrcOffsetTableNa">N/A</ffd:OffsetTableNa>
    <ffd:PrevslyPdFlg contextRef="offrl_1" id="ixv-196">false</ffd:PrevslyPdFlg>
    <ffd:PrevslyPdFlg contextRef="offrl_2" id="ixv-197">false</ffd:PrevslyPdFlg>
    <ffd:FormTp contextRef="rc" id="ixv-231">S-8</ffd:FormTp>
    <dei:EntityRegistrantName contextRef="rc" id="ixv-232">Bilibili Inc.</dei:EntityRegistrantName>
    <ffd:OfferingSctyTp contextRef="offrl_1" id="ixv-233">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_1" id="ixv-234">Class Z ordinary shares, par value US$0.0001 per share</ffd:OfferingSctyTitl>
    <ffd:FeesOthrRuleFlg contextRef="offrl_1" id="ixv-235">true</ffd:FeesOthrRuleFlg>
    <ffd:AmtSctiesRegd
      contextRef="offrl_1"
      decimals="0"
      id="ixv-236"
      unitRef="Shares">9107839</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty
      contextRef="offrl_1"
      decimals="3"
      id="ixv-237"
      unitRef="USD">14.875</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric
      contextRef="offrl_1"
      decimals="2"
      id="ixv-238"
      unitRef="USD">135479105.13</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate
      contextRef="offrl_1"
      decimals="6"
      id="ixv-239"
      unitRef="pure">0.000087</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="offrl_1"
      decimals="2"
      id="ixv-240"
      unitRef="USD">11786.68</ffd:FeeAmt>
    <ffd:OfferingSctyTp contextRef="offrl_2" id="ixv-241">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="offrl_2" id="ixv-242">Class Z ordinary shares, par value US$0.0001 per share</ffd:OfferingSctyTitl>
    <ffd:FeesOthrRuleFlg contextRef="offrl_2" id="ixv-243">true</ffd:FeesOthrRuleFlg>
    <ffd:AmtSctiesRegd
      contextRef="offrl_2"
      decimals="0"
      id="ixv-244"
      unitRef="Shares">4392161</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty
      contextRef="offrl_2"
      decimals="3"
      id="ixv-245"
      unitRef="USD">14.875</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric
      contextRef="offrl_2"
      decimals="2"
      id="ixv-246"
      unitRef="USD">65333394.87</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate
      contextRef="offrl_2"
      decimals="6"
      id="ixv-247"
      unitRef="pure">0.000087</ffd:FeeRate>
    <ffd:FeeAmt
      contextRef="offrl_2"
      decimals="2"
      id="ixv-248"
      unitRef="USD">5684.01</ffd:FeeAmt>
    <ffd:TtlOfferingAmt contextRef="rc" decimals="2" id="ixv-249" unitRef="USD">200812500.00</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt contextRef="rc" decimals="2" id="ixv-250" unitRef="USD">17470.69</ffd:TtlFeeAmt>
    <ffd:TtlOffsetAmt contextRef="rc" decimals="2" id="ixv-251" unitRef="USD">0.00</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt contextRef="rc" decimals="2" id="ixv-252" unitRef="USD">17470.69</ffd:NetFeeAmt>
    <ffd:OfferingNote contextRef="offrl_1" id="ixv-253">(1) These shares may be represented by the Registrant's ADSs, each of which represents one Class Z ordinary share of the Company, par value US$0.0001 per share. The Registrant's ADSs issuable upon deposit of Class Z ordinary shares registered hereby have been registered under a separate registration statement on Form F-6 (File No. 333-223711). (2) Represents Class Z ordinary shares to be delivered upon settlement of outstanding awards granted under the Amended and Restated 2018 Share Incentive Plan and the Second Amended and Restated 2018 Share Incentive Plan and pursuant to future delivery of shares pursuant to the award grants under the Second Amended and Restated 2018 Share Incentive Plan and the 2024 Share Incentive Plan. The Amended and Restated 2018 Share Incentive Plan, the Second Amended and Restated 2018 Share Incentive Plan and the 2024 Share Incentive Plan are collectively referred to herein as the "Plans." Pursuant to Rule 416(a) under the Securities Act of 1933, as amended (the "Securities Act"), this Registration Statement also covers an indeterminate number of additional shares which may be offered and issued to prevent dilution from share splits, share dividends or similar transactions as provided in the Plans. Any Class Z ordinary shares covered by an award granted under the Plans (or portion of an award) that terminates, expires or lapses for any reason will be deemed not to have been issued for purposes of determining the maximum aggregate number of Class Z ordinary shares that may be issued under the Plans. (3) Represents Class Z ordinary shares to be delivered upon the vesting of outstanding restricted share units granted under the Amended and Restated 2018 Share Incentive Plan and the Second Amended and Restated 2018 Share Incentive Plan and the corresponding proposed maximum offering price per share, which is estimated solely for the purposes of calculating the registration fee under Rule 457(c) and Rule 457(h) under the Securities Act, is based on US$14.875 per ADS, the average of the high and low prices for the Registrant's ADSs as quoted on the Nasdaq Global Select Market on September 29, 2026.</ffd:OfferingNote>
    <ffd:OfferingNote contextRef="offrl_2" id="ixv-254">(1) These shares may be represented by the Registrant's ADSs, each of which represents one Class Z ordinary share of the Company, par value US$0.0001 per share. The Registrant's ADSs issuable upon deposit of Class Z ordinary shares registered hereby have been registered under a separate registration statement on Form F-6 (File No. 333-223711). (2) Represents Class Z ordinary shares to be delivered upon settlement of outstanding awards granted under the Amended and Restated 2018 Share Incentive Plan and the Second Amended and Restated 2018 Share Incentive Plan and pursuant to future delivery of shares pursuant to the award grants under the Second Amended and Restated 2018 Share Incentive Plan and the 2024 Share Incentive Plan. The Amended and Restated 2018 Share Incentive Plan, the Second Amended and Restated 2018 Share Incentive Plan and the 2024 Share Incentive Plan are collectively referred to herein as the "Plans." Pursuant to Rule 416(a) under the Securities Act of 1933, as amended (the "Securities Act"), this Registration Statement also covers an indeterminate number of additional shares which may be offered and issued to prevent dilution from share splits, share dividends or similar transactions as provided in the Plans. Any Class Z ordinary shares covered by an award granted under the Plans (or portion of an award) that terminates, expires or lapses for any reason will be deemed not to have been issued for purposes of determining the maximum aggregate number of Class Z ordinary shares that may be issued under the Plans. (4) 392,161 Class Z ordinary shares are reserved for future delivery of shares pursuant to the awards granted or to be granted under the Second Amended and Restated 2018 Share Incentive Plan and 4,000,000 Class Z ordinary shares are reserved for future delivery of shares pursuant to the awards to be granted under the 2024 Share Incentive Plan, the numbers of which have been estimated for the purposes of calculating the amount of the registration fee. The corresponding proposed maximum offering price per share, which is estimated solely for the purposes of calculating the registration fee under Rule 457(c) and Rule 457(h) under the Securities Act, is based on US$14.875 per ADS, the average of the high and low prices for the Registrant's ADSs as quoted on the Nasdaq Global Select Market on September 29, 2026.</ffd:OfferingNote>
</xbrl>
