Number Base Converter

Convert an integer between binary, octal, decimal, and hexadecimal. BigInt precision, two's-complement for signed values, bulk mode. Nothing is uploaded, no sign-in, no tracking.

Mode
Base of your input. 0b/0o/0x prefixes and underscores accepted.
Stored as two's-complement at this width. Positive values ignore.
Each base grouped separately. Useful for binary-into-bytes or hex words.
Binary base 2
—
Octal base 8
—
Decimal base 10
—
Hexadecimal base 16
—

Two's complement

Binary (stored): —

Hex (stored): —

Copy with the button below.
—

Integers only. Past 2⁶³ − 1, paste as unsigned and ignore the two's-complement panel.