Binary, Decimal & Hex Base Converter

Type in any box to convert between Decimal, Binary, Hex, and Octal in real time. Fast, simple, and handles huge numbers without precision loss.

Common Numbers:
0 - 9
6 bits
0-9, a-f
0 - 7
💡 How Number Bases Work in Plain Words:
A base determines when a number rolls over to the next digit. Decimal rolls over at 10 (0-9). Binary rolls over at 2 (using only 0 and 1). Hexadecimal rolls over at 16, using a through f for 10 through 15 (e.g. 0xFF = 255).
⚙️ Advanced Options: Base32 / Base58 / Base62, Endianness & Arbitrary Radix
Hex Formatting
Binary Layout
Pad:
Group:
Endian:
Special Radix Value
26 (Alphabet a-z)
32 (Crockford Base32)
36 (Base36)
52 (Base52)
58 (Bitcoin Base58)
62 (Base62 Short URL)
Arbitrary Base (2 to 64):
Embed this tool on your website / blog No code required · Copy and paste
HTML Embed Code (iframe):
<iframe src="https://lucentool.com/base-converter" width="100%" height="650" style="border:1px solid #e5e0d8;border-radius:12px;max-width:850px;width:100%;" frameborder="0"></iframe>
<div style="font-size:12px;color:#78716c;margin-top:6px;font-family:sans-serif;">Powered by <a href="https://lucentool.com/base-converter" target="_blank" style="color:#c85a32;text-decoration:none;">Lucentool - Binary, Hex & Decimal Base Converter</a></div>

Common Bases and When They Are Used

Positional base systems represent numbers using different counts of digits. While decimal is universal for humans, computers rely on binary and hexadecimal.

The Four Core Bases

Why Do We Have Base58 and Base62?

Base62 combines digits and upper/lowercase letters to compress long database IDs into compact short-URL slugs. Bitcoin Base58 deliberately removes visually confusable characters (0, O, I, l) to prevent costly transcription errors.