Number Base Converter
Convert between binary (base 2), octal (base 8), decimal (base 10), and hexadecimal (base 16) — with bit layout visualization and two's complement signed representation. Enter a value in any base and see all four representations updated instantly. Select a bit width (8, 16, 32, or 64 bits) to see the unsigned value, signed two's complement value, and overflow behavior for that width. Also converts to Base64 encoding (RFC 4648) and shows ASCII character ↔ decimal/hex mapping. Radix conversion algorithm: base-N to decimal uses Horner's method (Σ digit_i × N^i for i=0..n-1); decimal to base-N uses repeated division (quotient sequence with remainders read backwards). Per Donald Knuth, The Art of Computer Programming Vol. 2 §4.4. Primary sources: IEEE 754-2019, Knuth TAOCP Vol. 2, x86-64 Intel Software Developer's Manual, RFC 4648 (Base16/Base32/Base64 encoding).
Inputs coming in next batch
The full calculator is in active build. When it ships, you'll be able to model:
- Input value in any base: binary (0b prefix), octal (0o prefix), decimal, or hex (0x prefix)
- Bit width selector: 8-bit · 16-bit · 32-bit · 64-bit (affects two's complement display and overflow)
- Conversion mode: integer bases · Base64 · ASCII character lookup
Binary representation with bit layout (grouped in nibbles of 4 bits). Octal representation. Decimal representation. Hexadecimal representation. Signed two's complement value at selected bit width. Unsigned value at selected bit width. Overflow indicator when value exceeds selected bit width. Base64 encoding (RFC 4648). ASCII character (for values 0–127 in the ASCII table). Radix conversion step-by-step shown in the math accordion.
Frequently asked questions
The information and tools on this website are for general educational purposes only and do not constitute financial, investment, legal, or tax advice. Consult a licensed professional for decisions specific to your situation.