IP to Binary, Decimal & Hex Converter

Convert an IPv4 address into binary, its 32-bit decimal integer and hexadecimal, with a per-octet table, and convert any of those forms back to a dotted-quad address. Free, instant and private in your browser.

Read the guide: How to Convert an IP Address to Binary
Dotted quad
192.168.0.1
11000000.10101000.00000000.00000001
Binary
11000000.10101000.00000000.00000001
Decimal integer
3,232,235,521
Hexadecimal
0xC0A80001
OctetDecimalBinaryHex
1192110000000xC0
2168101010000xA8
30000000000x00
41000000010x01

How it works

  1. 1

    Enter an address

    Type an IPv4 address in any form: dotted quad, dotted binary, a 32-bit binary string, a decimal integer or hex.

  2. 2

    Read every form

    See the dotted binary, the 32-bit decimal integer and the hex value side by side, with a row for each octet.

  3. 3

    Convert back

    Paste a binary, integer or hex value and the converter shows the matching dotted-quad address.

Instant & 100% private — nothing is uploaded

Everything runs locally in your browser. Your code, text and files are processed on your own device and are never sent to a server — so there are no upload waits, no size limits from us, and nothing is ever stored or logged.

Frequently asked questions

How do I convert an IP address to binary?
Convert each of the four octets to an 8-bit binary number and join them with dots. 192 is 11000000, 168 is 10101000, so 192.168.0.1 becomes 11000000.10101000.00000000.00000001. The converter shows the binary for every octet so you can check the bit pattern.
What is the decimal integer form of an IP address?
An IPv4 address is 32 bits, so it can be written as a single unsigned integer from 0 to 4294967295. You build it by treating the four octets as the four bytes of that integer. 192.168.0.1 is 3232235521. This form is handy for storing addresses in code or a database.
Can I convert binary, integer or hex back to an IP?
Yes. Paste any of those forms into the input and the converter detects it and shows the dotted-quad address. It reads dotted binary, a 32-bit binary string, a decimal integer in range, and hex with or without a 0x prefix.
Does the conversion happen on a server?
No. Everything runs in your browser, so the address you enter is never sent anywhere. The converter keeps working once the page has loaded and is safe to use with internal addresses.