<?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">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="c0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001815779</identifier>
        </entity>
        <period>
            <startDate>2026-09-25</startDate>
            <endDate>2026-09-25</endDate>
        </period>
    </context>
    <context id="c1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001815779</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2026-09-25</startDate>
            <endDate>2026-09-25</endDate>
        </period>
    </context>
    <unit id="shares">
        <measure>shares</measure>
    </unit>
    <unit id="usdPershares">
        <divide>
            <unitNumerator>
                <measure>iso4217:USD</measure>
            </unitNumerator>
            <unitDenominator>
                <measure>shares</measure>
            </unitDenominator>
        </divide>
    </unit>
    <unit id="usd">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="pure">
        <measure>pure</measure>
    </unit>
    <ffd:FormTp contextRef="c0" id="ixv-15">F-3</ffd:FormTp>
    <dei:EntityRegistrantName contextRef="c0" id="ixv-23">Hafnia Limited</dei:EntityRegistrantName>
    <ffd:PrevslyPdFlg contextRef="c1" id="ixv-221">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="c1" id="ixv-222">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="c1" id="ixv-223">Ordinary Shares</ffd:OfferingSctyTitl>
    <ffd:Rule457rFlg contextRef="c1" id="ixv-224">true</ffd:Rule457rFlg>
    <ffd:AmtSctiesRegd
      contextRef="c1"
      decimals="INF"
      id="ixv-225"
      unitRef="shares">35488875</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty
      contextRef="c1"
      decimals="INF"
      id="ixv-226"
      unitRef="usdPershares">8.432</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric contextRef="c1" decimals="INF" id="ixv-227" unitRef="usd">299242194</ffd:MaxAggtOfferingPric>
    <ffd:FeeRate contextRef="c1" decimals="INF" id="ixv-228" unitRef="pure">0.0001381</ffd:FeeRate>
    <ffd:FeeAmt contextRef="c1" decimals="2" id="ixv-229" unitRef="usd">41325.35</ffd:FeeAmt>
    <ffd:TtlOfferingAmt contextRef="c0" decimals="INF" id="ixv-230" unitRef="usd">299242194</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt contextRef="c0" decimals="2" id="ixv-231" unitRef="usd">41325.35</ffd:TtlFeeAmt>
    <ffd:TtlPrevslyPdAmt contextRef="c0" decimals="0" id="ixv-232" unitRef="usd">0</ffd:TtlPrevslyPdAmt>
    <ffd:TtlOffsetAmt contextRef="c0" decimals="0" id="ixv-233" unitRef="usd">0</ffd:TtlOffsetAmt>
    <ffd:NetFeeAmt contextRef="c0" decimals="2" id="ixv-234" unitRef="usd">41325.35</ffd:NetFeeAmt>
    <ffd:OfferingNote contextRef="c1" id="ixv-189">&lt;table style="font-size: 12pt; border-spacing: 0px; border-collapse: collapse; width: 100%;"&gt; &lt;tr style="height: 0px; font-size: 0px;"&gt;&lt;td style="width: 1%;"&gt;&#160;&lt;/td&gt;&lt;td style="width: 99%;"&gt;&#160;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="vertical-align: top;"&gt; &lt;td style="padding: 0px 0pt;"&gt; &lt;div style="margin-bottom: 4pt;"&gt; &lt;span style="font-size: 10.0pt;"&gt;(1)&lt;/span&gt; &lt;/div&gt; &lt;/td&gt; &lt;td style="padding: 0px 5.4pt; text-align: left;"&gt; &lt;div style="margin-bottom: 4pt;"&gt; &lt;span style="font-size: 10.0pt;"&gt;Calculated in accordance with Rule 457(r) under the Securities Act of 1933, as amended (the "Securities Act"). Payment of the registration fee at the time of filing of the Registrant&#x2019;s registration statement on Form F-3ASR (File No. 333-287637) on March 7, 2025 was deferred pursuant to Rules 456(b) and 457(r) under the Securities Act and is paid herewith with respect to this offering.&lt;/span&gt; &lt;/div&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt;&lt;table style="font-size: 12pt; border-spacing: 0px; border-collapse: collapse; width: 100%;"&gt;
   &lt;tr style="height: 0px; font-size: 0px;"&gt;&lt;td style="width: 1%;"&gt;&#160;&lt;/td&gt;&lt;td style="width: 99%;"&gt;&#160;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="vertical-align: top;"&gt;
    &lt;td style="padding: 0px 0pt;"&gt;
     &lt;div style="margin-bottom: 4pt;"&gt;
      &lt;span style="font-size: 10.0pt;"&gt;(2)&lt;/span&gt;
     &lt;/div&gt;
    &lt;/td&gt;
    &lt;td style="padding: 0px 5.4pt; text-align: left;"&gt;
     &lt;div style="margin-bottom: 4pt;"&gt;
      &lt;span style="font-size: 10.0pt;"&gt;Proposed Maximum Offering Price Per Unit is estimated for the purpose of calculating the registration fee and is based upon the closing exchange rate of $0.1054 to NOK 1.00 on September 24, 2026, as quoted on Bloomberg.&lt;/span&gt;
     &lt;/div&gt;
    &lt;/td&gt;
   &lt;/tr&gt;
  &lt;/table&gt;</ffd:OfferingNote>
    <ffd:RegnFileNb contextRef="c0" id="ixv-235">333-287637</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr contextRef="c0" id="ixv-215">&lt;div style="font-size: 10pt;"&gt;&#160;The maximum amount of securities to which the prospectus relates is 35,488,875 shares. The prospectus is a final prospectus for the related offering.&lt;/div&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric contextRef="c0" decimals="INF" id="ixv-236" unitRef="usd">35488875</ffd:NrrtvMaxAggtOfferingPric>
    <ffd:FnlPrspctsFlg contextRef="c0" id="ixv-237">true</ffd:FnlPrspctsFlg>
    <ffd:CombinedProspectusTableNa contextRef="c0" id="ixv-240">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey contextRef="c0" id="ixv-241">0001815779</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp contextRef="c0" id="ixv-242">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa contextRef="c0" id="ixv-243">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp contextRef="c0" id="ixv-244">424B5</ffd:SubmissnTp>
</xbrl>
