IP Address Formatter
Convert an IPv4 address between dotted-decimal, integer, hex, and binary representations at once.
How this tool works
Enter an IPv4 address
Standard dotted-decimal form, like 192.168.1.1.
The address is validated
Exactly four octets, each 0-255 - anything else produces a specific error message.
See all four formats at once
Dotted-decimal, 32-bit decimal integer, hexadecimal, and binary all convert together.
Copy any representation
Each format has its own copy button.
Quick facts
- Category
- Converters
- Best for
- Translating an IP stored as a decimal integer or hex value in a database or log back to dotted-decimal
About this tool
Enter an IPv4 address in the familiar dotted-decimal form and see it converted into three other common representations simultaneously: a single 32-bit decimal integer, hexadecimal, and binary split into its four constituent octets. The input is validated as a well-formed IPv4 address first - exactly four dot-separated parts, each a number from 0 to 255 - so a typo like a fifth octet or a value over 255 is caught with a specific error message rather than producing a nonsensical result. This is pure format conversion and intentionally does nothing with subnets or network math: ip-subnet-calculator is the tool for CIDR notation, calculating a network address, broadcast address, or usable host range from an IP/prefix pair. This tool exists for the simpler, more common need of translating one representation of a single address into another - useful when a firewall rule, a database column, or a legacy system stores IPs as a decimal integer or hex value and you need to see what dotted-decimal address that actually corresponds to, or vice versa. Runs entirely client-side.
Why use this tool
All four formats together
See dotted-decimal, decimal, hex, and binary at once instead of converting one pair at a time.
Strict octet validation
Catches an out-of-range octet or wrong part count with a specific error, not a silent bad result.
Pure format conversion
Focused on translating one representation to another - no subnet or CIDR math involved.
Complements the subnet calculator
Use ip-subnet-calculator for network/broadcast/CIDR math; this tool for simple format translation.
Frequently asked questions
ip-subnet-calculator takes an IP address with a CIDR prefix (like 192.168.1.0/24) and computes network math: the network address, broadcast address, and usable host range. This tool takes a single plain IP address with no prefix and converts it between different ways of writing the same address - dotted-decimal, decimal integer, hex, and binary - with no subnet or network calculation involved at all.
Storing an IPv4 address as a single 32-bit integer is a common database and networking convention, since it's more compact than a string and makes range comparisons (like "is this IP between X and Y") a simple numeric comparison rather than a string operation. This tool converts that integer back to the familiar dotted-decimal form, or the reverse, so you can work with whichever representation a given system exposes.
No - this tool is scoped to IPv4 only, since IPv4's four-octet, 32-bit structure maps cleanly onto decimal, hex, and binary in the way shown here. IPv6's 128-bit address space and different notation conventions (colon-separated hex groups, zero compression) would need a distinct tool built around those rules rather than an extension of this one.
Explore more free tools
Formatters, converters, validators, and generators - all free and running entirely in your browser.
Browse more tools