Skip to content
Local

Developer

IP Address Converter

Convert an IPv4 address to an integer, hex, binary and IPv4-mapped IPv6, and turn a start-to-end range into the fewest CIDR blocks.

Runs in your browser. Nothing leaves this device.

Open IP Address Converter

Free, no account, no watermark and no daily limit.

Open IP Address Converter

How to use IP Address Converter

  1. 1Type an address as dotted decimal, an integer, hex, binary or ::ffff: form.
  2. 2Copy any of the other forms.
  3. 3For a range, type the first and last address to get the CIDR blocks that cover exactly that range.

Questions

Why store an IP as an integer?

An IPv4 address is a 32-bit number. Stored as an integer it sorts correctly and range checks become simple number comparisons.

What is an IPv4-mapped IPv6 address?

It is how an IPv6 system writes an IPv4 address: ::ffff: followed by the IPv4 address, such as ::ffff:192.168.1.1. You often see it in server logs.

Why does my range need several CIDR blocks?

A CIDR block always starts on a boundary and holds a power of two addresses. A range like 10.0.0.5 to 10.0.0.20 does not fit one block, so it is split into the fewest blocks that match exactly.

Does it support IPv6?

This tool is for IPv4. Use the IPv6 Calculator for IPv6 addresses and prefixes.

Is it free?

Yes. No account, no watermark and no daily limit.

Esc