10 GB free data on sign-up · One time only · Valid for 1 monthClaim for free
AnboVPN
IP ranges

Hetzner IP ranges

Every IPv4 and IPv6 range that Hetzner (AS24940) currently announces on the internet, with CIDR and start/end IP, free to download as TXT or CSV. Data snapshot: 2026-11-02.

Hetzner announces 92 IPv4 prefixes covering 3,237,376 addresses, and 5 IPv6 prefixes, through AS24940. The lists below are a snapshot of 2026-11-02 taken from the public BGP routing table, sorted by address and kept as announced.

ASNAS24940
IPv4 prefixes92
IPv4 addresses3,237,376Overlaps are counted once
IPv6 prefixes5
Data snapshot

Download the complete list

The complete list has 97 ranges (IPv4 and IPv6). TXT has one CIDR per line; CSV has the columns cidr, version, start_ip, end_ip and addresses.

Hetzner IPv4 ranges

IPv4 ranges announced by Hetzner: CIDR, start and end IP, address count
CIDRStart IP – end IPAddresses
2.28.0.0/162.28.0.0–2.28.255.25565,536
2.29.0.0/162.29.0.0–2.29.255.25565,536
2.31.0.0/162.31.0.0–2.31.255.25565,536
5.9.0.0/165.9.0.0–5.9.255.25565,536
5.75.128.0/175.75.128.0–5.75.255.25532,768
23.88.0.0/1723.88.0.0–23.88.127.25532,768
31.58.88.0/2431.58.88.0–31.58.88.255256
37.27.0.0/1637.27.0.0–37.27.255.25565,536
45.15.99.0/2445.15.99.0–45.15.99.255256
45.145.227.0/2445.145.227.0–45.145.227.255256
46.4.0.0/1646.4.0.0–46.4.255.25565,536
46.62.128.0/1746.62.128.0–46.62.255.25532,768
46.224.0.0/1546.224.0.0–46.225.255.255131,072
49.12.0.0/1649.12.0.0–49.12.255.25565,536
49.13.0.0/1649.13.0.0–49.13.255.25565,536
62.238.0.0/1762.238.0.0–62.238.127.25532,768
65.21.0.0/1665.21.0.0–65.21.255.25565,536
65.108.0.0/1665.108.0.0–65.108.255.25565,536
65.109.0.0/1665.109.0.0–65.109.255.25565,536
77.42.0.0/1777.42.0.0–77.42.127.25532,768
78.46.0.0/1578.46.0.0–78.47.255.255131,072
78.138.62.0/2478.138.62.0–78.138.62.255256
85.10.192.0/1885.10.192.0–85.10.255.25516,384
85.93.20.0/2485.93.20.0–85.93.20.255256
88.99.0.0/1688.99.0.0–88.99.255.25565,536
88.198.0.0/1688.198.0.0–88.198.255.25565,536
89.167.0.0/1789.167.0.0–89.167.127.25532,768
91.98.0.0/1691.98.0.0–91.98.255.25565,536
91.99.0.0/1691.99.0.0–91.99.255.25565,536
91.107.128.0/1791.107.128.0–91.107.255.25532,768
91.190.240.0/2191.190.240.0–91.190.247.2552,048
94.130.0.0/1694.130.0.0–94.130.255.25565,536
95.216.0.0/1695.216.0.0–95.216.255.25565,536
95.217.0.0/1695.217.0.0–95.217.255.25565,536
116.202.0.0/16116.202.0.0–116.202.255.25565,536
116.203.0.0/16116.203.0.0–116.203.255.25565,536
128.140.0.0/17128.140.0.0–128.140.127.25532,768
135.181.0.0/16135.181.0.0–135.181.255.25565,536
136.243.0.0/16136.243.0.0–136.243.255.25565,536
138.199.128.0/17138.199.128.0–138.199.255.25532,768
138.201.0.0/16138.201.0.0–138.201.255.25565,536
142.132.128.0/17142.132.128.0–142.132.255.25532,768
144.76.0.0/16144.76.0.0–144.76.255.25565,536
148.251.0.0/16148.251.0.0–148.251.255.25565,536
149.245.242.0/24149.245.242.0–149.245.242.255256
157.90.0.0/16157.90.0.0–157.90.255.25565,536
157.180.0.0/17157.180.0.0–157.180.127.25532,768
159.69.0.0/16159.69.0.0–159.69.255.25565,536
162.55.0.0/16162.55.0.0–162.55.255.25565,536
167.233.0.0/16167.233.0.0–167.233.255.25565,536
167.235.0.0/16167.235.0.0–167.235.255.25565,536
168.119.0.0/16168.119.0.0–168.119.255.25565,536
171.25.225.0/24171.25.225.0–171.25.225.255256
176.9.0.0/16176.9.0.0–176.9.255.25565,536
178.63.0.0/16178.63.0.0–178.63.255.25565,536
178.104.0.0/15178.104.0.0–178.105.255.255131,072
178.212.75.0/24178.212.75.0–178.212.75.255256
185.12.65.0/24185.12.65.0–185.12.65.255256
185.50.120.0/23185.50.120.0–185.50.121.255512
185.107.52.0/22185.107.52.0–185.107.55.2551,024
185.126.28.0/22185.126.28.0–185.126.31.2551,024
185.157.83.0/24185.157.83.0–185.157.83.255256
185.157.176.0/23185.157.176.0–185.157.177.255512
185.157.178.0/23185.157.178.0–185.157.179.255512
185.171.224.0/22185.171.224.0–185.171.227.2551,024
185.189.228.0/24185.189.228.0–185.189.228.255256
185.189.229.0/24185.189.229.0–185.189.229.255256
185.189.230.0/24185.189.230.0–185.189.230.255256
185.189.231.0/24185.189.231.0–185.189.231.255256
185.213.45.0/24185.213.45.0–185.213.45.255256
185.216.237.0/24185.216.237.0–185.216.237.255256
185.226.99.0/24185.226.99.0–185.226.99.255256
185.228.8.0/23185.228.8.0–185.228.9.255512
188.34.128.0/17188.34.128.0–188.34.255.25532,768
188.40.0.0/16188.40.0.0–188.40.255.25565,536
188.245.0.0/16188.245.0.0–188.245.255.25565,536
193.105.82.0/24193.105.82.0–193.105.82.255256
193.110.6.0/23193.110.6.0–193.110.7.255512
193.163.198.0/24193.163.198.0–193.163.198.255256
194.42.180.0/22194.42.180.0–194.42.183.2551,024
194.42.184.0/22194.42.184.0–194.42.187.2551,024
194.62.106.0/24194.62.106.0–194.62.106.255256
195.60.226.0/24195.60.226.0–195.60.226.255256
195.201.0.0/16195.201.0.0–195.201.255.25565,536
195.248.224.0/24195.248.224.0–195.248.224.255256
197.242.84.0/22197.242.84.0–197.242.87.2551,024
201.131.3.0/24201.131.3.0–201.131.3.255256
204.29.146.0/24204.29.146.0–204.29.146.255256
204.168.128.0/17204.168.128.0–204.168.255.25532,768
213.133.96.0/19213.133.96.0–213.133.127.2558,192
213.239.192.0/18213.239.192.0–213.239.255.25516,384
216.55.108.0/22216.55.108.0–216.55.111.2551,024

All 92 ranges are listed.

Hetzner IPv6 ranges

IPv6 ranges announced by Hetzner: CIDR, start and end IP, address count
CIDRStart IP – end IPAddresses
2a01:4f8::/322a01:4f8::–2a01:4f8:ffff:ffff:ffff:ffff:ffff:ffff296
2a01:4f9::/322a01:4f9::–2a01:4f9:ffff:ffff:ffff:ffff:ffff:ffff296
2a01:4ff:ff01::/482a01:4ff:ff01::–2a01:4ff:ff01:ffff:ffff:ffff:ffff:ffff280
2a06:be80::/292a06:be80::–2a06:be87:ffff:ffff:ffff:ffff:ffff:ffff299
2a12:2240::/292a12:2240::–2a12:2247:ffff:ffff:ffff:ffff:ffff:ffff299

All 5 ranges are listed.

About the Hetzner IP range data

  • ASNs and holders

    Hetzner announces its prefixes from AS24940. Holders in the registry: AS24940 (HETZNER-AS Hetzner Online GmbH).

  • What the list contains

    The ranges are the prefixes these ASNs announce in the public BGP routing table (obtained through RIPEstat), with adjacent blocks left unmerged. This is not an ownership record: it can include prefixes of customers and leased address space, and it can miss routes that very few peers see. Snapshot of 2026-11-02.

  • Typical uses

    Allow or block traffic from Hetzner in a firewall, WAF or nginx, label source IPs in your logs by network, or test with a CIDR match whether an IP belongs to Hetzner. Remember that cloud and carrier address space also runs the services of customers, so blocking a whole network can hit unrelated sites.

How to use the Hetzner IP list

  1. Start with the tables above: one for IPv4 and one for IPv6, each row with CIDR, start IP – end IP and address count.
  2. Choose Download TXT or Download CSV for the complete list. The file has all 97 ranges, not only the first rows shown on the page.
  3. Import the TXT as one address set into your firewall, router or ipset, or paste the CIDRs into a cloud security group rule.
  4. Check the snapshot date (2026-11-02) before using it in production. Cloud ranges change often, so compare with the official range file published by the provider.

Hetzner IP ranges: frequently asked questions

How many IP ranges does Hetzner have?

As of 2026-11-02, Hetzner announces 92 IPv4 prefixes covering 3,237,376 addresses and 5 IPv6 prefixes in the public BGP routing table, through AS24940.

What is the ASN of Hetzner?

Hetzner uses AS24940. Holders in the registry: AS24940 (HETZNER-AS Hetzner Online GmbH). Large organisations often run several ASNs, and this page merges the ones listed here.

How do I use the Hetzner IP list for a firewall allowlist or blocklist?

Download the TXT file (one CIDR per line) and import it into ipset, nftables, an nginx allow or deny include, a router address list or a cloud security group. Import the 97 ranges as one address set rather than as separate rules. The address space of Hetzner also hosts the services of its customers, so blocking all of it can cut off unrelated sites.

How often is the Hetzner IP list updated?

The list is a snapshot of 2026-11-02, regenerated about once a week from public BGP data (RIPEstat). Announcements change every day, so download it again before using it in production, and for cloud providers also compare it with the official range file they publish.

More free tools

Need an IP in a specific country?

AnboVPN offers dedicated IPs in many regions, and shared IPs billed by data. Compare the options and pick the location you need.