IP Converter
Convert IPs to decimal, hex and IPv6, and CIDR blocks to address lists.
What the IP converter does
Enter one of these and press Convert:
| You enter | You get |
|---|---|
An IPv4 address, e.g. 192.168.1.1 |
Decimal, hexadecimal, octal and binary forms, the IPv4-mapped IPv6 address, the 6to4 prefix and the reverse DNS name. |
A number, e.g. 3232235777 or 0xC0A80101 |
The IPv4 address it stands for, with all the forms above. |
A CIDR block, e.g. 10.0.0.0/28 |
The first and last address, the number of addresses, the mask, and a list of every address that you can copy or download. |
A range, e.g. 10.0.0.1-10.0.0.20 |
The fewest CIDR blocks that cover the range exactly. |
An IPv6 address, e.g. 2001:db8::1 |
The full and short forms, the decimal and hexadecimal value and the reverse DNS name. |
Everything is calculated in your browser. Nothing you enter is sent to our server.
Why an IP address can be written as a number
An IPv4 address is a 32-bit number. The dotted form 192.168.1.1 is only a readable way to write its four bytes. The same address is 3232235777 in decimal and 0xC0A80101 in hexadecimal. Databases often store addresses as numbers, because numbers sort and compare correctly and take less space. Many browsers even open http://3232235777/ as http://192.168.1.1/.
IPv6 addresses are 128-bit numbers, written as eight groups of hexadecimal digits. Read how to read an IPv6 address for the short-form rules.
CIDR blocks and ranges
A CIDR block such as /24 describes a group of addresses that share their first bits: a /24 has 256 addresses, a /28 has 16. Firewalls, cloud security groups and allowlists usually want CIDR blocks, while people often think in ranges such as "from .1 to .20". The range converter gives you the exact blocks to paste into those settings. For subnet details such as usable hosts and the broadcast address, use the subnet calculator. Background: subnet masks and CIDR explained.
Frequently asked questions
How large a list can I create?
The list shows the first 256 addresses on the page; copy and download contain up to 65,536 addresses (a /16).
What is an IPv4-mapped IPv6 address?
::ffff:192.168.1.1 is how IPv6 software writes an IPv4 address. You see it in server logs when a program listens on IPv6 and IPv4 at once.
Is 0177.0.0.1 the same as 127.0.0.1?
In many programs, yes: a leading zero means octal, so 0177 is 127. Security filters that do not know this can be tricked, which is why the converter also shows the octal form.
Other free IP and network tools
IP Lookup
Location, network owner and ASN of any IP address or domain.
ISP Lookup
See which internet provider your connection, or any IP address, belongs to.
VPN Leak Test
One-click check of your VPN: IP, IPv6, WebRTC, timezone and language leaks.
VPN & Proxy Check
Find out if an IP belongs to a VPN, proxy or Tor exit node.
Open Port Checker
Test whether a port on your connection is open to the internet.
Online TCP Ping
Measure how fast a server answers on a port, from our worldwide network.
Blacklist Check
Test an IPv4 address against 20+ spam blacklists.
DNS Lookup
A, AAAA, MX, NS, TXT, CNAME, SOA and CAA records of a domain.
DNS Propagation Checker
Compare a DNS record across 13 public resolvers at once.
Website IP Lookup
Find the IP addresses, hosting company and CDN of any website.
Reverse DNS
Find the hostname behind an IP address.
WHOIS Lookup
Owner and registration data for a domain or IP address.
Domain Age Checker
How old a domain is, when it was registered and when it expires.
SPF, DKIM & DMARC Checker
Check and generate the email authentication records of a domain.
Email Header Analyzer
Trace where an email came from and check SPF, DKIM and DMARC.
SSL Certificate Checker
Expiry date, issuer and covered names of a website certificate, plus HTTPS checks.
HTTP Headers Checker
See redirects, response headers and a security grade for any URL.
Is It Down?
Check if a website is down for everyone or just for you.
Subnet Calculator
Network, broadcast, host range and subnets for IPv4 and IPv6.
Bulk IP Lookup
Look up to 25 IP addresses at once and export the results as CSV.
Browser Fingerprint
See what your browser shares with every site you visit.
WebRTC Leak Test
Check if your real IP leaks past your VPN through WebRTC.
IP Widget for Your Site
Free "What is my IP" box for your website or blog, with one line of code.