<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="elox-20260527.xsd" xlink:type="simple"/>
    <context id="duration_2026-05-27_to_2026-05-27">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001035354</identifier>
        </entity>
        <period>
            <startDate>2026-05-27</startDate>
            <endDate>2026-05-27</endDate>
        </period>
    </context>
    <dei:SecurityExchangeName
      contextRef="duration_2026-05-27_to_2026-05-27"
      id="Hidden_dei_SecurityExchangeName">NONE</dei:SecurityExchangeName>
    <dei:CurrentFiscalYearEndDate
      contextRef="duration_2026-05-27_to_2026-05-27"
      id="Hidden_dei_CurrentFiscalYearEndDate_duration_2026-05-27_to_2026-05-27">--12-31</dei:CurrentFiscalYearEndDate>
    <dei:EntityCentralIndexKey
      contextRef="duration_2026-05-27_to_2026-05-27"
      id="Hidden_dei_EntityCentralIndexKey_duration_2026-05-27_to_2026-05-27">0001035354</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag
      contextRef="duration_2026-05-27_to_2026-05-27"
      id="Hidden_dei_AmendmentFlag_duration_2026-05-27_to_2026-05-27">false</dei:AmendmentFlag>
    <dei:DocumentType contextRef="duration_2026-05-27_to_2026-05-27" id="Fact_1">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate contextRef="duration_2026-05-27_to_2026-05-27" id="Fact_0">2026-05-27</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName contextRef="duration_2026-05-27_to_2026-05-27" id="ixv-332">Eloxx Pharmaceuticals, Inc.</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode contextRef="duration_2026-05-27_to_2026-05-27" id="ixv-333">DE</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber contextRef="duration_2026-05-27_to_2026-05-27" id="ixv-334">001-31326</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber contextRef="duration_2026-05-27_to_2026-05-27" id="ixv-335">84-1368850</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1 contextRef="duration_2026-05-27_to_2026-05-27" id="ixv-336">P.O. Box 274</dei:EntityAddressAddressLine1>
    <dei:EntityAddressAddressLine2 contextRef="duration_2026-05-27_to_2026-05-27" id="Fact_2">10 Court Street</dei:EntityAddressAddressLine2>
    <dei:EntityAddressCityOrTown contextRef="duration_2026-05-27_to_2026-05-27" id="Fact_3">Arlington</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince contextRef="duration_2026-05-27_to_2026-05-27" id="Fact_4">MA</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode contextRef="duration_2026-05-27_to_2026-05-27" id="Fact_5">02476</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode contextRef="duration_2026-05-27_to_2026-05-27" id="ixv-341">781</dei:CityAreaCode>
    <dei:LocalPhoneNumber contextRef="duration_2026-05-27_to_2026-05-27" id="ixv-342">577-5300</dei:LocalPhoneNumber>
    <dei:WrittenCommunications contextRef="duration_2026-05-27_to_2026-05-27" id="ixv-343">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial contextRef="duration_2026-05-27_to_2026-05-27" id="ixv-344">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer contextRef="duration_2026-05-27_to_2026-05-27" id="ixv-345">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer contextRef="duration_2026-05-27_to_2026-05-27" id="ixv-346">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle contextRef="duration_2026-05-27_to_2026-05-27" id="Fact_6">Common Stock, $0.01 par value per share</dei:Security12bTitle>
    <dei:TradingSymbol contextRef="duration_2026-05-27_to_2026-05-27" id="Fact_7">ELOX</dei:TradingSymbol>
    <dei:EntityEmergingGrowthCompany contextRef="duration_2026-05-27_to_2026-05-27" id="ixv-349">false</dei:EntityEmergingGrowthCompany>
</xbrl>
