Skip to content

IP to Binary Converter

See an IP address in binary, hex and decimal, octet by octet.

Quick Tool Overview

The IP to Binary Converter shows an address octet by octet in binary, hexadecimal and decimal, with its 32-bit integer value — which is what makes subnet masks stop being something to memorise.

What it does
Converts an IPv4 address between every numeric base
You give it
An address, optionally with a prefix
You get back
Binary, hex, decimal and the 32-bit integer
Best for
Understanding subnetting and storing addresses
Developer Tools Free, unlimited use No sign-up Runs in your browser

About the IP to Binary Converter

An IP address is a 32-bit number written as four decimal octets, and almost everything confusing about subnetting becomes obvious once you see the binary. This shows each octet in binary, hexadecimal and decimal, plus the whole address as one 32-bit integer.

Put a subnet mask alongside and the point of a prefix length becomes visual: the mask is a run of ones followed by a run of zeros, the ones select the network part and the zeros select the host part, and the boundary between them is the slash number. The 32-bit integer form is worth knowing too — it is how addresses are stored in a database column and compared in a range query.

Key features of the IP to Binary Converter

Octet by octet

Each of the four in every base, so the relationship between the dotted form and the underlying bits is visible.

Network and host bits split

Add a mask and the binary is divided at the prefix boundary, which is where subnetting finally makes sense.

The 32-bit integer

How an address is stored in a database column and compared in a range query, where the dotted form cannot be.

Signed values explained

Why some languages report a negative number, and what to add to get the unsigned value.

Copy any form

Click a value to take it, in whichever base you need it.

How to use the IP to Binary Converter

  1. 1

    Enter an address

    Any IPv4 address, with or without a prefix.

  2. 2

    Read the octets

    Each one in binary, hex and decimal, side by side.

  3. 3

    Add a mask

    The network and host bits are then highlighted separately.

  4. 4

    Take the integer

    The 32-bit value, which is how addresses are stored and compared.

Frequently asked questions

Because IPv4 defines it that way: four octets of eight bits. That gives about 4.3 billion addresses, which is why we ran out and why IPv6 uses 128 bits.

Reviews of the IP to Binary Converter

What people who use the IP to Binary Converter think of it. Reviews come from visitors and are posted as written.

No ratings yet

Yours would be the first.

  • 5 0 reviews rated 5 stars
  • 4 0 reviews rated 4 stars
  • 3 0 reviews rated 3 stars
  • 2 0 reviews rated 2 stars
  • 1 0 reviews rated 1 star

Write a review

Used this tool? Your rating helps the next person decide.

Your rating

Plain text only — links, email addresses and HTML are not accepted. Your name and review are shown publicly; nothing else is collected. See the privacy policy.

0 reviews

Newest first

No reviews yet

Be the first to rate the IP to Binary Converter. It takes half a minute and no account.

Write the first review

More developer tools