<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:cik0001547576="http://kraneshares.com/20260331"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:oef="http://xbrl.sec.gov/oef/2025"
  xmlns:xbrldi="http://xbrl.org/2006/xbrldi"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="cik0001547576-20260331.xsd" xlink:type="simple"/>
    <context id="AsOf2026-03-31">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001547576</identifier>
        </entity>
        <period>
            <startDate>2026-03-31</startDate>
            <endDate>2026-03-31</endDate>
        </period>
    </context>
    <context id="From2026-03-312026-03-31_custom_S000085506Member">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001547576</identifier>
            <segment>
                <xbrldi:explicitMember dimension="dei:LegalEntityAxis">cik0001547576:S000085506Member</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-03-31</startDate>
            <endDate>2026-03-31</endDate>
        </period>
    </context>
    <dei:AmendmentFlag contextRef="AsOf2026-03-31" id="Fact000003">false</dei:AmendmentFlag>
    <dei:DocumentType contextRef="AsOf2026-03-31" id="Fact000004">497</dei:DocumentType>
    <dei:EntityInvCompanyType contextRef="AsOf2026-03-31" id="Fact000005">N-1A</dei:EntityInvCompanyType>
    <dei:DocumentPeriodEndDate contextRef="AsOf2026-03-31" id="Fact000006">2026-03-31</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName contextRef="AsOf2026-03-31" id="Fact000007">Krane Shares Trust</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey contextRef="AsOf2026-03-31" id="Fact000008">0001547576</dei:EntityCentralIndexKey>
    <oef:RiskReturnHeading
      contextRef="From2026-03-312026-03-31_custom_S000085506Member"
      id="Fact000014">KraneShares
Artificial Intelligence and Technology ETF

(the &#x201c;Fund&#x201d;)</oef:RiskReturnHeading>
    <oef:SupplementToProspectusTextBlock
      contextRef="From2026-03-312026-03-31_custom_S000085506Member"
      id="Fact000016">&lt;p id="xdx_A8C_eoef--SupplementToProspectusTextBlock_zNyKzGIrOcYf" style="font: 10pt Times New Roman, Times, Serif; margin: 0pt 0; text-align: center; text-indent: 0in"&gt;&lt;b&gt;Supplement dated &lt;span style="font-family: Times New Roman, Times, Serif"&gt;&lt;span id="xdx_90A_eoef--ProspectusDate_c20260331__20260331_zuHGpGqdVFd3"&gt;March 31,
2026&lt;/span&gt; to the Fund&#x2019;s Summary Prospectus, Statutory&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p style="font: 10pt Times New Roman, Times, Serif; margin: 0pt 0; text-align: center; text-indent: 0in"&gt;&lt;b&gt;&lt;span style="font-family: Times New Roman, Times, Serif"&gt;Prospectus, and Statement of Additional Information, each dated August 1, 2025,
as each&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p style="font: 10pt Times New Roman, Times, Serif; margin: 0pt 0; text-align: center; text-indent: 0in"&gt;&lt;b&gt;&lt;span style="font-family: Times New Roman, Times, Serif"&gt;may be supplemented and amended from time to time.&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p style="font: 10pt Times New Roman, Times, Serif; margin: 0pt 0; text-indent: 0in"&gt;&lt;b&gt;&#160;&lt;/b&gt;&lt;/p&gt;

&lt;p style="font: 10pt Times New Roman, Times, Serif; margin: 0pt 0; text-align: center; text-indent: 0in"&gt;&lt;b&gt;IMPORTANT NOTICE REGARDING
CHANGE IN INVESTMENT POLICY&lt;/b&gt;&lt;/p&gt;

&lt;p style="font: 10pt Times New Roman, Times, Serif; margin: 0pt 0; text-align: center; text-indent: 0in"&gt;&lt;b&gt;&#160;&lt;/b&gt;&lt;/p&gt;

&lt;p style="font: 10pt Times New Roman, Times, Serif; margin: 0pt 0; text-align: justify; text-indent: 0in"&gt;&lt;i&gt;Capitalized terms and certain
other terms used in this supplement, unless otherwise defined in this supplement, have the meanings assigned to them in the Summary Prospectus,
Statutory Prospectus, and Statement of Additional Information.&lt;/i&gt;&lt;/p&gt;

&lt;p style="font: 10pt Times New Roman, Times, Serif; margin: 0pt 0; text-align: justify"&gt;&#160;&lt;/p&gt;

&lt;p style="font: 10pt Times New Roman, Times, Serif; margin: 0pt 0; text-align: justify"&gt;On March 31, 2026, the Trust&#x2019;s Board of
Trustees approved changing the Fund&#x2019;s name to &#x201c;KraneShares Artificial Intelligence and Technology Public and Private ETF&#x201d;
and making corresponding changes to the Fund&#x2019;s principal investment strategies and investment policies.&lt;/p&gt;

&lt;p style="font: 10pt Times New Roman, Times, Serif; margin: 0pt 0; text-align: justify"&gt;&#160;&lt;/p&gt;

&lt;p style="font: 10pt Times New Roman, Times, Serif; margin: 0pt 0; text-align: justify"&gt;&lt;b&gt;Accordingly, effective June 1, 2026, the following
changes are made to the Fund&#x2019;s Summary Prospectus, Statutory Prospectus, and Statement of Additional Information:&lt;/b&gt;&lt;/p&gt;

&lt;p style="font: 10pt Times New Roman, Times, Serif; margin: 0pt 0; text-align: justify"&gt;&#160;&lt;/p&gt;

&lt;table cellpadding="0" cellspacing="0" style="font: 10pt Times New Roman, Times, Serif; width: 100%; margin-top: 0pt; margin-bottom: 0pt"&gt;&lt;tr style="vertical-align: top"&gt;
&lt;td style="width: 0.25in"&gt;&lt;/td&gt;&lt;td style="width: 0.5in"&gt;1.&lt;/td&gt;&lt;td style="text-align: justify"&gt;&lt;b&gt;In the Fund&#x2019;s Summary Prospectus, Statutory Prospectus, and Statement of Additional Information,
all references to &#x201c;KraneShares Artificial Intelligence and Technology ETF&#x201d; are hereby replaced with &#x201c;KraneShares Artificial
Intelligence and Technology Public and Private ETF&#x201d;.&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;

&lt;p style="font: 10pt Times New Roman, Times, Serif; margin: 0pt 0 0pt 0.75in; text-align: justify"&gt;&lt;b&gt;&#160;&lt;/b&gt;&lt;/p&gt;

</oef:SupplementToProspectusTextBlock>
    <oef:ProspectusDate contextRef="AsOf2026-03-31" id="Fact000017">2026-03-31</oef:ProspectusDate>
    <oef:StrategyNarrativeTextBlock
      contextRef="From2026-03-312026-03-31_custom_S000085506Member"
      id="Fact000018">&lt;div id="xdx_A85_eoef--StrategyNarrativeTextBlock_zaBB56s326S7"&gt;&lt;/div&gt;
&lt;table cellpadding="0" cellspacing="0" style="font: 10pt Times New Roman, Times, Serif; width: 100%; margin-top: 0pt; margin-bottom: 0pt"&gt;&lt;tr style="vertical-align: top"&gt;
&lt;td style="width: 0.25in"&gt;&lt;/td&gt;&lt;td style="width: 0.5in"&gt;2.&lt;/td&gt;&lt;td style="text-align: justify"&gt;&lt;b&gt;In the Fund&#x2019;s Summary Prospectus and Statutory Prospectus, the first sentence of the &#x201c;Principal
Investment Strategies&#x201d; and &#x201c;KraneShares Artificial Intelligence and Technology ETF (&#x201c;AGIX&#x201d;)&#x201d; sections is
deleted in its entirety and replaced with the following:&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;

&lt;p style="font: 10pt Times New Roman, Times, Serif; margin: 0pt 0; text-align: justify"&gt;&#160;&lt;/p&gt;

&lt;p style="font: 10pt Times New Roman, Times, Serif; margin: 0pt 0 0pt 0.75in; text-align: justify"&gt;Under normal circumstances, the Fund
invests at least 80% of its net assets (plus borrowings for investment purposes) in the publicly traded or privately offered securities
of &#x201c;Artificial Intelligence (&#x201c;AI&#x201d;) and Technology&#x201d; companies and other instruments that have economic characteristics
similar to such securities.&lt;/p&gt;

&lt;p style="font: 10pt Times New Roman, Times, Serif; margin: 0pt 0; text-align: justify"&gt;&#160;&lt;/p&gt;

&lt;p style="font: 10pt Times New Roman, Times, Serif; margin: 0pt 0; text-align: center"&gt;&lt;b&gt;PLEASE RETAIN THIS SUPPLEMENT FOR FUTURE REFERENCE.&lt;/b&gt;&lt;/p&gt;

</oef:StrategyNarrativeTextBlock>
</xbrl>
