<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ecd="http://xbrl.sec.gov/ecd/2025"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="xlo-20260428.xsd" xlink:type="simple"/>
    <context id="C_9d8e2d2c-61b5-4cc4-b857-357294eccec4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001840233</identifier>
        </entity>
        <period>
            <startDate>2025-01-01</startDate>
            <endDate>2025-12-31</endDate>
        </period>
    </context>
    <dei:EntityCentralIndexKey
      contextRef="C_9d8e2d2c-61b5-4cc4-b857-357294eccec4"
      id="F_8cb4bfd8-59ba-42e1-9238-36b48896f32d">0001840233</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag
      contextRef="C_9d8e2d2c-61b5-4cc4-b857-357294eccec4"
      id="F_47dd1b1d-f0dd-428e-93a7-8eb093e7df45">false</dei:AmendmentFlag>
    <dei:DocumentType
      contextRef="C_9d8e2d2c-61b5-4cc4-b857-357294eccec4"
      id="F_0dbfd9dc-4e8b-4b06-b8a5-ab2b2492e01b">DEF 14A</dei:DocumentType>
    <dei:EntityRegistrantName
      contextRef="C_9d8e2d2c-61b5-4cc4-b857-357294eccec4"
      id="F_c13dc442-1dec-4fff-a698-edbd3a6fc663">Xilio Therapeutics, Inc.</dei:EntityRegistrantName>
    <ecd:InsiderTrdPoliciesProcAdoptedFlag
      contextRef="C_9d8e2d2c-61b5-4cc4-b857-357294eccec4"
      id="F_e2795b6d-55db-4e2a-8680-7153b0a3502f">true</ecd:InsiderTrdPoliciesProcAdoptedFlag>
    <ecd:AwardTmgMnpiDiscTextBlock
      contextRef="C_9d8e2d2c-61b5-4cc4-b857-357294eccec4"
      id="F_9eade28e-5e31-4459-a6a7-03be25cb4813">&lt;div&gt;&lt;p style="font-size:10pt;margin-top:9pt;font-family:Times New Roman;margin-bottom:0;text-align:justify;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:8.5pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;We &lt;/span&gt;&lt;span style="font-size:8.5pt;font-family:Times New Roman;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:8.5pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;grant&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:8.5pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt; stock options to our employees and directors on an annual basis. We also grant stock options to individuals upon hire or promotion or for retention or recognition purposes and have also granted restricted stock units for retention and recognition purposes. We currently do not grant stock appreciation rights or similar option-like instruments. During the last fiscal year, &lt;/span&gt;&lt;span style="font-size:8.5pt;font-family:Times New Roman;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:8.5pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;neither&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:8.5pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt; the board of directors nor the compensation committee took material nonpublic information into account when determining the timing or terms of stock options, &lt;/span&gt;&lt;span style="font-size:8.5pt;font-family:Times New Roman;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:8.5pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;nor did we time&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:8.5pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt; the disclosure of material nonpublic information for the purpose of affecting the value of executive compensation.&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;p style="font-size:10pt;margin-top:9pt;font-family:Times New Roman;margin-bottom:0;text-align:justify;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:8.5pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;While we do not have any policy or obligation that requires us to grant stock options to employees on specified dates, annual stock option grants to employees are typically approved in December and granted on January 1 of the following year. Stock option awards for new hires are typically approved with a grant date of the first day of the month following commencement of employment. Our annual stock option grants to non-employee directors occur automatically and without the need for any further action&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:10pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt; &lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:8.5pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;by the board of directors on the first business day following the date of each annual meeting of stockholders.&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:8.5pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt; &lt;/span&gt;&lt;/p&gt;&lt;p style="font-size:10pt;margin-top:9pt;font-family:Times New Roman;margin-bottom:0;text-align:justify;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:8.5pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;We did not grant any stock options, stock appreciation rights and/or similar option-like instruments to our named executive officers in the fiscal year ending December 31, 2025 during any period beginning four business days before the filing of a Form 10-Q or Form 10-K, or the filing or furnishing of a Form 8-K that discloses material nonpublic information (other than a Form 8-K disclosing a material new option award grant under Item 5.02(e)), and ending one business day after the filing or furnishing of such report with the SEC.&lt;/span&gt;&lt;/p&gt;</ecd:AwardTmgMnpiDiscTextBlock>
    <ecd:AwardTmgMethodTextBlock
      contextRef="C_9d8e2d2c-61b5-4cc4-b857-357294eccec4"
      id="F_d7b1fd04-4ef3-4bcf-bab8-b747a3751923">&lt;p style="font-size:10pt;margin-top:9pt;font-family:Times New Roman;margin-bottom:0;text-align:justify;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:8.5pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;We &lt;/span&gt;&lt;span style="font-size:8.5pt;font-family:Times New Roman;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:8.5pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;grant&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:8.5pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt; stock options to our employees and directors on an annual basis. We also grant stock options to individuals upon hire or promotion or for retention or recognition purposes and have also granted restricted stock units for retention and recognition purposes. We currently do not grant stock appreciation rights or similar option-like instruments. During the last fiscal year, &lt;/span&gt;&lt;span style="font-size:8.5pt;font-family:Times New Roman;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:8.5pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;neither&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:8.5pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt; the board of directors nor the compensation committee took material nonpublic information into account when determining the timing or terms of stock options, &lt;/span&gt;&lt;span style="font-size:8.5pt;font-family:Times New Roman;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:8.5pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;nor did we time&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:8.5pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt; the disclosure of material nonpublic information for the purpose of affecting the value of executive compensation.&lt;/span&gt;&lt;/p&gt;</ecd:AwardTmgMethodTextBlock>
    <ecd:AwardTmgPredtrmndFlag
      contextRef="C_9d8e2d2c-61b5-4cc4-b857-357294eccec4"
      id="F_bd8d548d-a264-4d56-92e0-08e11f855c0a">true</ecd:AwardTmgPredtrmndFlag>
    <ecd:AwardTmgMnpiCnsdrdFlag
      contextRef="C_9d8e2d2c-61b5-4cc4-b857-357294eccec4"
      id="F_e5109440-95f5-42bb-9c57-7f5a3096952c">false</ecd:AwardTmgMnpiCnsdrdFlag>
    <ecd:MnpiDiscTimedForCompValFlag
      contextRef="C_9d8e2d2c-61b5-4cc4-b857-357294eccec4"
      id="F_d11c071a-1891-487b-bb28-1442245dbab5">false</ecd:MnpiDiscTimedForCompValFlag>
</xbrl>
