Database storage
Input
192.168.1.1Output
3232235777 (decimal)Store as UNSIGNED INT for fast BETWEEN range queries on IP lists.
Results follow RFC 791 IPv4 numeric representations; validate production network changes against authoritative routing controls.
Skip to IP converterConvert IPv4 between dotted decimal, decimal, hex, and binary — plus CIDR subnet details, developer snippets, and batch CSV export.
An IP converter translates IPv4 addresses between dotted decimal, 32-bit integer, hexadecimal, binary, and CIDR subnet details.
An IPv4 address is a 32-bit number, usually written as four decimal octets separated by dots. Developers store that same value as an unsigned integer in databases, as hex in packet captures, or as binary when subnetting.
This tool accepts any common IPv4 input — dotted decimal, decimal integer (0–4294967295), hex (with or without 0x), binary (32 contiguous bits or four 8-bit octets), or CIDR (192.168.1.10/24) — and shows all four output formats at once. CIDR input adds network, netmask, broadcast, and host range.
Conversion runs entirely in your browser. Paste one address or thousands of lines for batch CSV export with copy-ready JavaScript, Python, and SQL snippets.
Paste IPv4 in any common format — get decimal, hex, binary, and dotted decimal instantly, locally.
Each octet contributes to a 32-bit unsigned integer using powers of 256.
Formula
integer = (o1 × 256³) + (o2 × 256²) + (o3 × 256) + o4Enter dotted decimal (192.168.1.1), decimal (3232235777), hex (0xC0A80101), or binary (11000000.10101000.00000001.00000001) — one per line.
The tool auto-detects each line and displays dotted decimal, 32-bit decimal, hex, and binary octets together.
Private (RFC 1918), loopback, link-local, and multicast ranges are labeled when applicable.
Use Developer snippets for JavaScript, Python, or SQL, or export batch results as CSV for spreadsheets.
Input
192.168.1.1Output
3232235777 (decimal)Store as UNSIGNED INT for fast BETWEEN range queries on IP lists.
Input
0x08080808Output
8.8.8.8Decode hex literals from Wireshark or tcpdump exports.
Input
11000000.10101000.00000001.00000001Output
192.168.1.1Translate dotted binary octets from networking coursework.
Common real-world scenarios where this tool saves time.
Convert dotted IPs to integers before INSERT or verify stored values decode correctly.
Batch-convert mixed decimal and dotted IPs from firewall exports to one format.
Move between hex indicators in threat reports and dotted decimal for block lists.
Verify manual binary and hex conversions against bitwise engine output.
Step-by-step chains that connect related tools for common tasks.
| Format | Example (192.168.1.1) | Typical use |
|---|---|---|
| Dotted decimal | 192.168.1.1 | Human-readable configs, DNS A records |
| Decimal integer | 3232235777 | MySQL INET_ATON, analytics databases |
| Hexadecimal | 0xC0A80101 | Packet dumps, firmware, memory views |
| Binary (octets) | 11000000.10101000.00000001.00000001 | Subnetting, ACL bit masks |
| IPv4 | IPv6 | |
|---|---|---|
| Address size | 32 bits | 128 bits |
| Example | 192.168.1.1 | 2001:db8::1 |
| This tool | Supported | Not supported — use URL parser for IPv6 host parsing |
| Related tool | Use this tool when | Use related tool when |
|---|---|---|
| Base Converter | You have a dotted IP or decimal and need all IPv4 formats. | You need arbitrary base conversion (base 2–36) unrelated to IP layout. |
| URL Parser | You need numeric IP format conversions. | You need to parse URLs with IPv4 or IPv6 hosts in brackets. |
Advertisement
IPv4 dotted decimal, 32-bit decimal integer (0–4294967295), hexadecimal (0x prefix optional), and binary (32 bits or four 8-bit octets separated by dots). All four outputs are shown for every valid input.
No. IPv6 uses 128 bits. This tool is IPv4-only. For IPv6 in URLs, use the URL parser which handles bracketed IPv6 hosts.
Paste a dotted IPv4 address (e.g. 192.168.1.1). The decimal column shows the 32-bit unsigned integer (3232235777). The formula is (o1×256³)+(o2×256²)+(o3×256)+o4.
Paste an integer between 0 and 4294967295 (e.g. 3232235777). The tool returns 192.168.1.1 and also shows hex and binary.
Paste any valid IPv4 input. The hex output uses uppercase 0x notation padded to eight digits (e.g. 0xC0A80101 for 192.168.1.1).
Paste hex with or without 0x (e.g. C0A80101 or 0xC0A80101). Values above 4294967295 are rejected.
Paste a dotted IP. Binary output shows four 8-bit octets separated by dots, matching common networking textbook notation.
Paste 32 bits (0100110010101000…) or four octets (11000000.10101000.00000001.00000001). Each octet must be exactly eight bits.
192×16777216 + 168×65536 + 1×256 + 1 = 3232235777. This is the standard unsigned 32-bit representation used by INET_ATON in MySQL and similar functions.
127.0.0.1 is loopback — the integer form is 2130706433. The tool tags loopback addresses automatically.
4294967295, which is 255.255.255.255 — the limited broadcast address.
No. Octets like 192.168.001.1 are rejected because leading zeros are ambiguous (some systems interpret them as octal).
Yes. Private ranges (10/8, 172.16–31/12, 192.168/16) convert like any IPv4 address and are tagged RFC 1918 private.
Yes. Enter one value per line (or comma-separated, which splits to lines). Up to 50,000 lines with CSV export.
Lines with colons are treated as IPv6 (unsupported). Dotted quads are IPv4. Pure digits are decimal. Hex letters or 0x prefix trigger hex. Binary uses 0b, 32 bits, or dotted bit octets.
Yes. Export CSV with columns for input, dotted, decimal, hex, binary, and status — or download tab-separated TXT.
No. Conversion uses JavaScript in your browser. EverydayTools never receives the addresses you paste.
Click Share to copy a URL with your first input value in the query string (?q=). Opening the link pre-fills the converter.
Loopback (127/8), RFC 1918 private, link-local (169.254/16), multicast (224–239), broadcast, and reserved ranges when applicable.
No. This converts numeric representation only. For CIDR mask math, use a dedicated subnet tool when available.
INET_ATON in MySQL produces the same decimal integer for IPv4. This tool also shows hex and binary and runs locally without a database.
Yes — store IPs as UNSIGNED INT and query WHERE ip_int BETWEEN start AND end after converting range boundaries with this tool.
Hex 0x01010101 is dotted decimal 1.1.1.1 (Cloudflare DNS) — decimal 16843009.
IPv6 requires 128-bit math and different notation. Mixing partial IPv6 support would produce incorrect results — the tool errors clearly instead.
Yes. Commas are converted to newlines automatically so CSV pastes from spreadsheets work.
Blank lines are ignored in results. They do not produce errors or output rows.
After batch conversion, click Retry invalid to reload only lines that failed validation into the input box.
RFC 791 defines IPv4. Private ranges are in RFC 1918. This tool implements standard 32-bit unsigned conversion per those definitions.
Yes. 0.0.0.0 is decimal 0, hex 0x00000000, and binary all zeros — often used as an unspecified address.
No. Both uppercase and lowercase hex digits are accepted (0xC0A80101 or 0xc0a80101). Output hex is uppercase.
169.254.0.0/16 is APIPA/link-local assigned when DHCP fails. The tool tags these addresses when detected.
For a single address, use Copy all formats in the results panel. For batch, use Copy all results or Export CSV.
Yes. Paste IPv4/prefix like 192.168.1.10/24 to see network address, netmask, wildcard, broadcast, first/last host, and usable host count alongside all numeric formats.
Yes. After conversion, open Developer snippets to copy JavaScript, Python, MySQL INET_ATON/INET_NTOA, or PostgreSQL inet examples with your values filled in.
Yes. Recent conversions are saved in your browser localStorage. Open Recent conversions to reload a past input — nothing is sent to a server.
Click Share to copy a URL. Single values use a short ?q= parameter; multi-line pastes use compressed encoding. Very large batches should use CSV export instead.
IP conversion runs entirely in your browser — addresses you paste are never uploaded.
Engine uses bitwise 32-bit arithmetic matching RFC 791; verify critical infrastructure changes independently.
For development and analysis — not a substitute for network design review or security certification.
More free tools for the same workflow.
Free number base converter: binary, decimal, octal, hex, custom radix 2–36 & text. Live auto-convert, history, padding. Browser-only, no signup.
Generate MD5, SHA-1, SHA-256, SHA-384, and SHA-512 digests from text or files in your browser. Verify download checksums—nothing is uploaded.
Free URL builder — add a base URL, append query parameters, auto-encode values, and copy the complete URL string. Perfect for API testing, UTM links, and affiliate tracking. No signup. Runs locally in your browser when supported—no upload required for normal use.
Advertisement
Reviewed by EverydayTools Editorial Team on 2026-06-02.