Number Base Converter

Type in any field — BIN, OCT, DEC, and HEX sync in real time.

Number input

Type any base to sync all four

BIN Binary
OCT Octal
DEC Decimal
HEX Hexadecimal

Quick presets

Bit visualizer

Bit Strip

Live

Bit strip

About Number Bases

Computers only understand binary (0 and 1), but humans find hex (0–F) or decimal easier to read. Octal appears in UNIX file permissions (chmod 755). All four bases can be converted into each other. This tool uses JavaScript BigInt to work beyond the 2⁵³ precision limit.

Each binary bit represents a power of 2: rightmost is 2⁰=1, next is 2¹=2, 2²=4, and so on. Each hex digit equals 4 bits (one nibble), so two hex digits represent exactly one byte (8 bits).

Common special values: 255 (0xFF) = 8-bit all-ones mask; 65535 (0xFFFF) = 16-bit mask; 4294967295 (0xFFFFFFFF) = 32-bit mask. These 2^n−1 values have all bits set to 1, commonly used in AND bitmask operations.

Quick guide

Use cases, answers, and nearby tools

Compact below-tool notes that help first-run users and repeated visitors move faster without changing the main interface.

Chinese search: 進位制轉換、二進位十六進位、BIN OCT DEC HEX、位元計算、BigInt

How to use

Run a clean first pass

  1. Enter a number in any of the BIN / OCT / DEC / HEX fields.
  2. The other three sync instantly; the bit strip lights up each bit.
  3. Tap a preset chip or click ⎘ to copy any format.

Examples

Real jobs this page helps with

  • Bitmask operationsVerify mask values like 0xFF or 0xFFFF across all bases at a glance.
  • Memory addressesConvert hex addresses to binary to understand bit layout.

FAQ

What people usually want to know

Does it support negative numbers?
Not currently — only non-negative integers (≥ 0).
Why BigInt?
It removes JavaScript's 2⁵³ precision limit so arbitrarily large integers work correctly.