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.

✓ Private · no uploads

IPv4 Converter
View options
Keyboard shortcuts

Ctrl/⌘ + Enter: process

Ctrl/⌘ + Shift + F: full screen

Esc: exit full screen

Ctrl/⌘ + F in editor: search

IPv4 representations
Your result will appear here

When it is ready, copy or download the result.

ReadyAutomatic
Lines: 1 · Characters: 0 · Size: 0 B · 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
Decimal: 3221226009
Hex: 0xc0000219
Binary: 0b11000000000000000000001000011001
Octal: 0o30000001031

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.

The integer forms use 0x for hexadecimal, 0b for binary, and 0o for octal. Decimal integers may contain leading zeros, while dotted octets must be canonical. Output pads octal to eleven digits. Copy and download include the representation labels; take only the value when your destination expects a bare number.

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