Duration Converter
Convert a duration between seconds, ISO 8601, clock time and words.
See an IP address in binary, hex and decimal, octet by octet.
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.
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.
Each of the four in every base, so the relationship between the dotted form and the underlying bits is visible.
Add a mask and the binary is divided at the prefix boundary, which is where subnetting finally makes sense.
How an address is stored in a database column and compared in a range query, where the dotted form cannot be.
Why some languages report a negative number, and what to add to get the unsigned value.
Click a value to take it, in whichever base you need it.
Any IPv4 address, with or without a prefix.
Each one in binary, hex and decimal, side by side.
The network and host bits are then highlighted separately.
The 32-bit value, which is how addresses are stored and compared.
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.
Where the network part ends and the host part begins. A /26 mask is 26 ones then 6 zeros, and seeing that makes the subnet arithmetic obvious rather than memorised.
Storing and comparing. An address as a single integer sorts correctly and makes a range query a simple BETWEEN, which the dotted form does not.
Because it read the 32 bits as signed, so anything above 127 in the first octet comes out negative. Add 4,294,967,296 to get the unsigned value.
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.
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 reviewConvert a duration between seconds, ISO 8601, clock time and words.
Check any number against the Luhn checksum and see the working.
Convert internationalised domain names to punycode and back.
Generate serde-ready Rust structs from a sample JSON document.
Fill in the fields and get a complete README.md in Markdown.
Inspect any character: code point, block, category, UTF-8 bytes and escapes.
Test a regular expression live, with every match and capture group shown.
Re-indent JavaScript, with strings and regular expressions left alone.