IP Tools

IPv4 Converter

Translate a dotted IPv4 address into an unsigned 32-bit integer, hexadecimal, binary, and octal; or reverse an integer to dotted notation.

✓ Every tool runs in your browser. We do not upload your input or output.

IPv4 Converter
Keyboard shortcuts

Ctrl/⌘ + Enter: process

Ctrl/⌘ + Shift + F: full screen

Esc: exit full screen

Ctrl/⌘ + F in editor: search

IPv4 representations
ReadyLines: 1 · Characters: 0 · Size: 0 KB · Time: — · Cursor: 1:1

How to use

  1. Enter four decimal octets such as 192.0.2.25, or one unsigned integer.
  2. Run the converter and review all five representations.
  3. Use 0x, 0b, or 0o prefixes when entering a nondecimal integer.
  4. Copy the representation required by a log, protocol, or spreadsheet.

Examples

Inspect a documentation address

Each dotted octet contributes eight bits to the 32-bit value.

Input
192.0.2.25
Output
IPv4: 192.0.2.25 plus decimal, hex, binary, and octal forms

Convert representations without ambiguity

An IPv4 address is four eight-bit octets. Some logs, APIs, and firewall exports present the same 32-bit value as one integer. This tool shows how the representations line up, including a zero-padded 32-bit binary form and eight-digit hexadecimal form. Enter dotted notation when you know the address, or enter a decimal or prefixed integer when you have a raw value.

The parser deliberately accepts only four canonical decimal octets in dotted form. Values above 255 and extra parts are errors. Numeric input must be nonnegative and fit in 32 bits. This avoids silently wrapping an out-of-range value into an unrelated address. The converter does not contact a network or identify an address owner; it only performs local arithmetic. For general integer base conversion outside the IPv4 range, use the Number Base Converter.

The output uses network-order significance: the first dotted octet occupies the highest eight bits. If another application reports a different integer, check whether it uses a different byte order before assuming either value is wrong. The address text itself is not looked up or geolocated.

Frequently asked questions

Does this support IPv6?

No. IPv6 uses 128-bit addresses and a separate notation.

Are leading zeroes accepted in dotted octets?

No. Enter ordinary decimal octets from 0 through 255.

Is an address checked for public routing?

No. This is a representation converter, not a network reachability test.

What is the largest integer?

The maximum unsigned 32-bit value is 4294967295, or 255.255.255.255.

Related tools