DevLocal only
Number Base Converter
Convert between Decimal, Binary, Octal, and Hexadecimal with bit-width views.
binaryhexoctaldecimalbase converter
⌘⇧CCopy output
Your data stays in your browser — nothing is uploaded.
Supports prefixes: 0b (binary), 0o (octal), 0x (hex), or plain decimal
Decimal (base 10)
255
Binary (base 2)
0b1111 1111
Octal (base 8)
0o377
Hexadecimal (base 16)
0xFF
Bit Width Representations
8-bit
1111 1111
16-bit
0000 0000 1111 1111
32-bit
0000 0000 0000 0000 0000 0000 1111 1111
64-bit
0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 1111 1111
💡
What is Number Base Converter?
Number Base Converter instantly converts numbers between decimal, binary (base 2), octal (base 8), and hexadecimal (base 16). It auto-detects prefixed input (0b, 0o, 0x) and shows bit-width representations for 8, 16, 32, and 64-bit.
🚀
How it Helps
- ✓Convert numbers between any common base instantly while typing.
- ✓View bit-width representations (8/16/32/64-bit) for embedded and systems work.
- ✓Auto-detect input format from standard prefixes like 0x, 0b, 0o.
📖
Usage Guide
- 1Enter a number in the input field. Use prefixes (0b, 0x, 0o) or select the input base.
- 2All base representations appear simultaneously as you type.
- 3Click Copy on any result to copy it to your clipboard.
Frequently Asked Questions
Decimal (base 10), Binary (base 2), Octal (base 8), and Hexadecimal (base 16) with auto-detection via standard prefixes.
Yes, it uses BigInt under the hood, supporting arbitrarily large integers beyond the standard 64-bit range.
They show the binary representation padded to 8, 16, 32, or 64 bits, useful for understanding how a number is stored in memory.
