>_
0x

Number Base Converter

Convert numbers between binary, octal, decimal, hexadecimal and any base from 2 to 36 — with arbitrary precision, digit grouping and two’s-complement view.

Runs locally — your input never leaves this page.

Custom base

Two’s complement

How to use

  1. Type into any field — binary, octal, decimal, hex or a custom base — and the others update.
  2. Prefixes like 0x, 0b and 0o and separators like _ and spaces are accepted.
  3. Numbers of any size are supported. The two’s-complement view shows how negative numbers are stored in 8, 16, 32 or 64 bits.

Common examples

FAQ

Is there a size limit?

No practical limit — conversion uses JavaScript BigInt, so 64-bit IDs, hashes and very large numbers convert exactly, with no floating-point rounding.

What is two’s complement?

The standard way computers store signed integers: a negative number −n is stored as 2^bits − n. For example, −1 in 8 bits is 11111111.

Report a bug or suggest a feature →