Convert an IPv4 address to/from decimal, hexadecimal, binary and octal

Dotted decimal192.168.0.1
Decimal (uint32)3232235521
Hexadecimal0xC0A80001
Binary11000000.10101000.00000000.00000001
Octal030052000001
Per-octet hexc0.a8.00.01

Accepts any format and converts to all the others — entirely in your browser.

🔢 IP Address Converter — Free Online Tool

Convert an IPv4 address to decimal, hex and binary, free. An IPv4 address (RFC 791) is really a single 32-bit number — the familiar dotted form like 192.168.0.1 is just one of several ways to write it. This converter turns an IPv4 address into its decimal (uint32), hexadecimal, binary and octal forms and back again, so you can move between the representation a human reads and the one a database, log or firewall stores.

🚀 Why use this IP Address Converter tool?

It converts an IPv4 address between dotted-decimal, 32-bit integer, hexadecimal, octal and binary in both directions, so you can store IPs as integers, decode a numeric log value, or read a hex address from a packet capture. 100% free, no registration, and complete privacy — everything runs locally in your browser, so your data never touches a server.

Key Features

↔️Every format, both ways

Enter dotted-decimal, a uint32 integer, a 0x hex value or 32-bit binary — the tool detects the input and shows all the other forms.

💾Integer storage

Get the uint32 value to store IPs compactly in a database column or compare them numerically for range checks.

🧮Per-octet view

See the binary and per-octet hex breakdown to understand how the 32 bits map onto the four dotted octets.

🔒100% private

Conversion runs locally in your browser; nothing you enter is uploaded or stored.

Popular Use Cases

Databases

  • Store IPs as uint32 integers
  • Numeric range queries (BETWEEN)
  • Compact indexes

Debugging

  • Decode a numeric IP in logs
  • Read a hex IP from a capture
  • Verify byte order

Learning

  • See the 32-bit structure
  • Map octets to bits
  • Teach IP addressing

What It Handles

Input

  • Dotted decimal
  • Integer / hex / binary
  • Auto-detected

Output

  • uint32 decimal
  • Hex & octal
  • 32-bit binary

Privacy

  • Client-side only
  • No network calls
  • Runs offline

Related Tools

Sources & References

Frequently Asked Questions

How do I convert an IP address to a number?

Treat the four octets as bytes of a 32-bit integer: 192.168.0.1 = 192×256³ + 168×256² + 0×256 + 1 = 3232235521. This tool does that automatically and also shows the hex, octal and binary forms.

Why store an IP as an integer?

A uint32 is smaller than a string, indexes efficiently, and lets you do numeric range comparisons (e.g. BETWEEN two IPs) directly in SQL. Many databases also offer native INET types; pick whichever fits your stack.

What is the hexadecimal form of an IP used for?

Hex appears in packet captures, some log formats and low-level networking code. 192.168.0.1 is 0xC0A80001 — each octet is one hex byte (C0 A8 00 01).

Can it convert a number back to an IP?

Yes. Enter a decimal integer (0–4294967295), a 0x hex value, or 32-bit binary and the tool reconstructs the dotted-decimal address.

Is my input uploaded anywhere?

No. Everything is computed in your browser; nothing you type leaves your device.

🎓 Pro Tips

  • Tip 1: When storing IPs as integers, use an unsigned 32-bit type — a signed int overflows for addresses above 127.255.255.255.
  • Tip 2: For sortable range queries, the integer form lets you write WHERE ip BETWEEN start AND end without string gymnastics.
  • Tip 3: Standard reference: IPv4 is defined in RFC 791 — https://www.rfc-editor.org/rfc/rfc791.