IP to Decimal Online: Convert Any IPv4 Address to Decimal Free
CodexFuse Team · 2026-10-31T15:34:49.797Z · 10 min read min read
Convert any IPv4 address to its decimal integer free — with a worked sorting example, the hand formula, and honest limits.
An ip to decimal converter turns a dotted IPv4 address such as 203.0.113.45 into a single whole number — in this case, 3,405,803,821. That one number is the same address, rewritten in the form databases, spreadsheets, and firewall rules can sort, store, and compare without tripping over dots and digit lengths.
If you have ever sorted a list of IP addresses in a spreadsheet and watched 10.0.0.25 land after 192.168.1.10, you have met the problem decimal conversion solves. Text sorting compares characters, not values. Numeric sorting compares values, and the decimal form gives every IPv4 address exactly one value.
What Is IP to Decimal Conversion?
IP to decimal conversion rewrites the four numbers in an IPv4 address as a single 32-bit integer, calculated by weighting each octet by its place value: the first octet multiplied by 16,777,216, the second by 65,536, the third by 256, and the fourth added as it stands.
Every IPv4 address is already a 32-bit number. The dotted form is a convenience for humans. Each octet holds 8 bits, so the first octet is worth 256 × 256 × 256, the second 256 × 256, the third 256, and the fourth 1. Multiply, add, and the dots disappear — but no information is lost, and the conversion reverses exactly.
How Do You Convert an IP Address to Decimal by Hand?
To convert an IP address to decimal by hand, multiply the first octet by 16,777,216, the second by 65,536, the third by 256, add the fourth octet, and total the four products — the result is the address as one decimal integer.
Take 192.168.1.10 as a check you can do on a calculator:
- First octet: 192 × 16,777,216 = 3,221,225,472.
- Second octet: 168 × 65,536 = 11,010,048.
- Third octet: 1 × 256 = 256.
- Fourth octet: 10, added as it stands.
- Total: 3,221,225,472 + 11,010,048 + 256 + 10 = 3,223,235,786.
If you only need to know whether two addresses are in the same block, compare their first three octets first. If those match, the decimal values will be within 256 of each other — a quick sanity check before you convert anything.
A Worked Example: Sorting 47 Addresses That Refused to Sort
Sara runs IT support for a 40-person distribution firm. After a warehouse refit, she inherits a spreadsheet of 47 device addresses — printers, barcode scanners, cameras, and access points — pasted from three different installers. Sorted as text, the list is useless: 10.0.0.25 sits below 192.168.1.10, and 172.16.5.200 sits above both, even though numerically it belongs between them.
Her goal is concrete: one clean list, in true numeric order, that she can hand to the firewall contractor on Friday, with no address duplicated and no gap hidden by bad sorting. She converts each address to decimal, sorts by that column, and converts back only for display. One row shows the whole method.
The one address she checks by hand
Sara picks the warehouse gateway, 203.0.113.45, and works it through the formula before trusting any tool output:
| Octet | Value | Multiplier | Product |
|---|---|---|---|
| First | 203 | 16,777,216 | 3,405,774,848 |
| Second | 0 | 65,536 | 0 |
| Third | 113 | 256 | 28,928 |
| Fourth | 45 | 1 | 45 |
| Total | 3,405,803,821 | ||
She then runs the full list through the IP to Decimal tool, pastes the decimal column beside the dotted column, and sorts by decimal. The result is immediate and verifiable: 10.0.0.25 becomes 167,772,185, 172.16.5.200 becomes 2,886,731,208, and 192.168.1.10 becomes 3,223,235,786. In that order, the spreadsheet finally matches the network.
The payoff is not cosmetic. With the list in true order, Sara spots two duplicated camera addresses and a gap of eight unassigned addresses in the printer range — both invisible under text sorting. She reserves the gap for new scanners, removes the duplicates, and sends the contractor a list she can defend row by row.
Keep the original dotted address alongside the decimal value in any shared sheet. Decimal alone is hard for the next person to read at a glance, and a single mistyped digit changes the address entirely. Two columns — dotted for humans, decimal for sorting — prevent most conversion errors.
Why Does the Decimal Form Matter in Real Work?
Decimal matters because so much real work is comparison work: sorting, filtering, range-checking, and storing. Dotted addresses fight all four. A database column of text sorts wrong, a range check needs four separate comparisons, and a firewall rule written against text can miss addresses it should catch.
- Sorting that actually works: one integer column sorts every address in true numeric order, from 0.0.0.0 (0) to 255.255.255.255 (4,294,967,295).
- Range checks in one step: an address belongs to a block when its decimal value falls between the block's first and last decimal values — one comparison instead of four.
- Cleaner storage: a single integer column is smaller, faster to index, and easier to query than four columns or a text field.
- Log analysis: converting logged addresses to decimal lets you group, count, and filter traffic by network segment without string parsing.
Decimal, Binary, Hex, and Dotted: When to Use Each
No single form is best for everything. The right choice depends on who — or what — reads the value next.
| Form | Example for 203.0.113.45 | Best for |
|---|---|---|
| Dotted decimal | 203.0.113.45 | Humans reading configs and tickets |
| Decimal integer | 3,405,803,821 | Sorting, databases, range checks |
| Binary | 11001011.00000000.01110001.00101101 | Subnet masks and bit-level rules |
| Hex | CB.00.71.2D | Packet captures and device manuals |
Convert the list once, sort it properly, and hand your contractor or your own future self a clean, checkable inventory. CodexFuse takes the same managed approach to the hosting, email, and security behind that network — one platform, on credits, with no server babysitting.
Get Started with CodexFuseWhat Does the CodexFuse IP to Decimal Tool Do?
The free IP to Decimal converter takes one IPv4 address and returns its decimal and hex values instantly. The steps, verified against the live tool page, are simple:
- Enter an IPv4 address: type the dotted address into the single input field — for example, 203.0.113.45.
- Read the decimal value: the tool shows the converted integer immediately, with no extra form to complete.
- Check the hex value too: the same result screen shows the hex form, handy when a manual or capture file uses hex.
- Use it again, free: the tool is free with unlimited use, so a whole spreadsheet converts one address at a time without a paywall interrupting the job.
Before converting an unfamiliar address, it is worth confirming what kind of address it is. An IP address lookup tells you the version, class, and type, so you do not waste time converting a private address you meant to keep internal, or a public address you meant to investigate.
What This Tool Does Not Do — and What to Use Instead
Honest limits save more time than extra features. This converter handles one IPv4 address at a time, and it does three things it is important not to expect from it:
- It does not convert IPv6: IPv6 addresses are 128-bit and need a different converter entirely. Do not try to force a colon-separated address into this tool.
- It does not identify an owner or location: a decimal value is just a number. For reputation or blocklist questions, run the address through an IP blacklist checker instead.
- It does not test reachability: conversion says nothing about whether the address responds, is assigned, or is even in use. Ping or check the device itself for that.
It also does not convert a whole list in bulk. For Sara's 47 addresses, the practical approach is a spreadsheet formula — first octet × 16,777,216, plus second × 65,536, plus third × 256, plus fourth — applied down the column, with the tool used to spot-check the first and last rows. That combination gives both speed and a verified answer.
If you are auditing a network rather than sorting one list, start with the IP range calculator guide to map the whole block, then convert individual addresses as needed.
A Concrete CodexFuse Workflow for the Reader With a Messy Network
Converting addresses is usually a symptom: the network, hosting, or email behind them has grown without a single owner. CodexFuse is built for exactly that moment, as an all-in-one, fully managed platform on credits — pay as you go, no subscriptions, no lock-in. Here is a workflow you can follow this week:
- List what you actually run: hosting, domains, business email, backups, and security tools, each with its renewal date and login. Most messy networks are messy billing first and messy technology second.
- Convert and clean the address inventory: use the decimal method above to sort, deduplicate, and reserve ranges, so the migration team works from one true list.
- Move one service at a time to CodexFuse: start with the service causing the most tickets — often hosting or email — and let the managed team handle setup and migration instead of babysitting a server yourself.
- Pay with credits, not subscriptions: top up credits and use them across services as you need them, so a quiet month costs a quiet amount and a busy launch does not trigger a surprise bill.
- Keep the inventory live: every time a device or service is added, record its dotted address and decimal value together. The next audit then takes minutes, not a weekend.
Frequently Asked Questions
What is the decimal value of 192.168.1.1?
It is 3,223,235,777: 192 × 16,777,216 (3,221,225,472) + 168 × 65,536 (11,010,048) + 1 × 256 (256) + 1 = 3,223,235,777. It is the most common home-router address, and a useful value to memorise as a conversion check.
Can every IPv4 address be converted to decimal?
Yes. Every valid IPv4 address maps to exactly one integer between 0 and 4,294,967,295, and every integer in that range maps back to exactly one address. Invalid inputs — missing octets, values above 255, or letters — have no decimal equivalent and should be rejected, not guessed.
Why does text sorting get IP addresses wrong?
Text sorting compares characters left to right, so "10." sorts before "192." because "1" comes before "9" in the first character comparison, regardless of the full value. Numeric sorting compares the whole value, which is why converting to decimal before sorting fixes the order completely.
Is the decimal form the same as the hex form?
They represent the same 32-bit number in different bases: decimal is base 10, hex is base 16. For 203.0.113.45, the decimal is 3,405,803,821 and the hex is CB.00.71.2D. Neither is more correct; use whichever the system you are feeding expects.
Does converting an IP address reveal who owns it?
No. Conversion is pure arithmetic on the address itself and adds no ownership, location, or reputation information. For ownership or blocklist checks, use a lookup or blacklist tool, and treat any tool claiming otherwise with suspicion.
Can I convert IPv6 addresses the same way?
Not with this method. IPv6 uses 128 bits, written in hexadecimal groups separated by colons, and its decimal value would be far too large to be useful in a spreadsheet. Use a dedicated IPv6 converter instead of forcing the address into an IPv4 tool.
Start With the Address in Front of You
Open the converter, type in the one address that is causing trouble right now, and check the decimal value against the hand calculation above. Then sort the list, fix the duplicates, and reserve the gaps — and if the network behind those addresses is eating your week, move your hosting, email, and security to CodexFuse, where it is fully managed on credits and you stop babysitting servers for good.