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.
How to use IP Address Converter
- 1Type an address as dotted decimal, an integer, hex, binary or ::ffff: form.
- 2Copy any of the other forms.
- 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.
Related tools
- DeveloperBase64 EncoderEncode text or files to Base64 and decode it back, with URL-safe and data URL options.
- DeveloperDiff CheckerCompare two texts and see what was added and removed, line by line or word by word, and download a patch.
- DeveloperHash GeneratorGet the MD5, SHA-1, SHA-256, SHA-384 and SHA-512 of text or any file, and check it against a hash you were given.
- DeveloperJSON FormatterFormat, check and minify JSON, with the exact line of any error.
- DeveloperJWT DecoderRead the header and claims of a JSON Web Token, see when it expires, and check an HMAC signature.
- DeveloperRegex TesterTest JavaScript regular expressions live: every match highlighted, capture groups in a table, and a replace preview.