Hrpelje was attested in historical sources as Herpelie and Herpelye in 1763–1787. The name may be derived from the plural demonym*Vьrpeľane based on the common noun*vьrpa 'sinkhole', thus originally meaning 'people living near a sinkhole'. If so, the initial H- is prothetic.