MAC Address to Decimal Converter
Convert a MAC address into a single 48-bit decimal number, treating all 6 bytes as one large integer — useful for database storage or numeric sorting.

Built by
Swapnil SanghviFull-Stack Web Developer & WordPress Developer
Swapnil Sanghvi is a full-stack web and WordPress developer, UI designer, and full-time freelancer who builds and maintains Hex Calculator.
Further reading: IPv4 — Wikipedia
How to Convert a MAC Address to Decimal
Strip the separators to get the 12 hex digits, then convert that 48-bit hex value to decimal the standard way — the whole address becomes one large number rather than 6 separate byte values.
Where MAC Address to Decimal Actually Comes Up
Storing MAC Addresses in a Numeric Database Column
Storing a MAC address as a 48-bit integer instead of a string enables faster indexing, sorting, and range queries in some database designs.
BIGINT column storing a MAC as one number
Comparing Two MAC Addresses Numerically
Converting both addresses to decimal makes a numeric comparison (less than, greater than, or a range check) simpler than comparing formatted strings.
macA < macB as plain numbers
Generating Sequential Test MAC Addresses
Incrementing a MAC address's decimal value and converting back gives you an easy way to generate a sequence of test addresses for a lab or simulation environment.
decimal + 1 -> next MAC address
Why Use This Calculator Instead of Doing It by Hand
- Accepts colon, hyphen, and Cisco-dot separator styles automatically
- Handles the full 48-bit range without precision loss
- Runs entirely in your browser — nothing you type gets sent anywhere
- Validates the input is exactly 6 bytes before converting
Limitations
- Requires exactly 12 hex digits once separators are stripped.
- The resulting number is large (up to ~281 trillion) — some systems' plain integer types may not hold it without using a 64-bit or arbitrary-precision type.
Frequently Asked Questions
Why would I want a MAC address as a single decimal number?
Some databases and systems store or sort MAC addresses as a single 48-bit integer instead of a formatted string, since numeric comparison and indexing are often faster than string comparison.
How is the decimal value calculated?
The 6 bytes of the MAC address are treated as one continuous 48-bit hex number, then converted to decimal the standard way — the same 12 hex digits, just read as one big number instead of 6 separate bytes.
How large can this number get?
Up to 2^48 - 1, or 281,474,976,710,655 — the largest value 48 bits (12 hex digits) can hold, which is the value for the broadcast address FF:FF:FF:FF:FF:FF.
Does this work with any separator style in the input?
Yes — colons, hyphens, and Cisco-style dots are all accepted and stripped before the conversion.