All tools

IP Address Converter

Network

Convert IPv4 addresses between decimal, hex, binary, octal, and integer formats

Paste a dotted-decimal IPv4 address and see it converted to hex, binary, octal, and its raw 32-bit integer form all at once, or go the other way and paste an integer, say one pulled straight from a database column, to get the dotted-decimal address back. The binary breakdown is a quick way to double-check subnet mask or CIDR math by hand, and a trailing CIDR suffix like `/24` is preserved through the conversion if you include one. This covers IPv4 only, no IPv6 support, and it only validates that an address is well-formed (each octet in range 0-255); it doesn't check whether the address is actually a publicly routable or reserved range, which is a separate concern from format validity.

ipipv4converthexbinarydecimal

How to use IP Address Converter

  • 1.Paste a dotted-decimal IPv4 address like `192.168.1.1` to instantly see its hex, binary, octal, and 32-bit integer equivalents.
  • 2.Paste a raw integer (e.g. from a database column storing IPs as numbers) to convert it back into dotted-decimal notation.
  • 3.Use the binary breakdown to double-check subnet mask math or manually verify a CIDR range boundary.

Frequently asked questions

Does this support IPv6?
No, this tool is specifically for IPv4 address format conversions — IPv6 addresses use a different addressing scheme and aren't handled here.
Is my IP address sent anywhere?
No, all conversions are pure math done locally in your browser.
Why would I store an IP as an integer?
Storing IPs as integers in a database makes range queries (e.g. "is this IP within this CIDR block") faster than string comparison, which is why this conversion comes up often in backend work.
Does it validate that the address is a legitimate public IP?
It validates that the format is a well-formed IPv4 address, but it doesn't check whether that address is publicly routable, reserved, or currently assigned to anyone.

Use via API, SDK, or MCP

Installnpm install @utilix-tech/sdk
Usageimport { units } from '@utilix-tech/sdk'
const decimal = units.ipToDecimal('192.168.1.1')
console.log(decimal) // 3232235777
const hex = units.ipToHex('192.168.1.1')
console.log(hex) // 0xC0A80101

Runs locally · no API key · no rate limits · Node.js SDK docs →