IPv4 ↔ Integer
Translate a dotted-quad IPv4 address (192.168.1.1) into its unsigned 32-bit integer (3232235777) and back again. Handy for config, logging and range math without a CIDR block. Paste either form — the tool detects which one you gave and converts to the other, showing both for reference. Works entirely on your device.
🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.
Options
Your result will appear here
Type or paste your input above, adjust the options, then press Run. Tip: press Ctrl+Enter to run, and ? for every shortcut.
How it works
Two directions, one input
Paste either a dotted-quad IPv4 address such as 192.168.1.1 or an unsigned integer such as 3232235777 and the tool converts it to the other form. A dotted address becomes its 32-bit integer and an integer becomes its dotted address, and with the default setting both forms are shown side by side so you can check your work. The conversion is a plain base-256 digit shift, not an IP-to-country or any network operation.
When you need this number
The integer form shows up in database columns that store addresses as numbers, in access-log entries written by software that logs a long instead of dotted-quad, and in range arithmetic where it is easier to compare two integers than two dotted strings. It is also the compact form you often see in config files and old firewall rules.
What is accepted and what is not
A dotted address must be exactly four octets of 0 to 255; a fourth octet of 256, a letter, or five parts is rejected rather than silently clamped. An integer must be between 0 and 4294967295 — anything larger does not fit a 32-bit IPv4 address and is refused. The showBoth switch controls whether the result is paired with the form you gave it or returned bare.
The limits of the format
This tool deals with IPv4 only, which is a 32-bit space. IPv6 addresses are a completely different 128-bit format handled by the IPv6 expander, and this converter will not guess at one. Leading zeros in an octet are accepted as plain numbers, so 192.168.001.1 is the same address as 192.168.1.1.
It is a pure local conversion
The math is a few multiplications and divisions done in this tab. Nothing is sent to a network, no address is queried, and the tool works offline — so you can convert addresses from a private internal range without broadcasting them anywhere.
Questions
Which input do I give?
Either one — a dotted IPv4 (1.2.3.4) or an unsigned integer between 0 and 4294967295. The tool detects and converts to the other form.
What range is valid?
Integer values 0 … 4294967295 (0.0.0.0 … 255.255.255.255). Values outside that range or malformed octets (256, letters, too many parts) are rejected.
Is this the same as a subnet calculator?
No — it converts one address to its numeric form. For prefix, range or subnet math use the CIDR calculator; this complements it.
Related tools
See categoryCIDR Calculator
Calculate network address, range, broadcast and host count for any IPv4 or IPv6 CIDR block.
IP Address Inspector
Parse and classify an IPv4 or IPv6 address — scope, port, groups and mapped forms.
Number Base Converter
Convert an integer between any bases from 2 to 36 with arbitrary precision (BigInt).
IPv6 Address Expander
Expand and validate IPv6 addresses (:: shorthand).