0x
NUMBER BASE CONVERTER

Number Base Converter

Convert integers exactly between binary, octal, decimal and hexadecimal.

Local processing
Workspace
0 characters
Read only
Ready. Enter your content, then choose an action.
◇ Content is processed in this browser onlyInput is not saved automatically
HOW TO USE

How to use

Select input and output bases, paste an integer and convert. Negative values and matching 0b, 0o and 0x input prefixes are supported. Output has no prefix.

Example

Decimal 255 → hexadecimal FF → binary 11111111.

GOOD TO KNOW

Keep in mind

BigInt preserves integer precision. Input supports up to 4,096 digits. Fractions, scientific notation and fixed-width two’s-complement conversion are not supported.

Common questions

Why is 102 invalid as binary? Binary uses only 0 and 1. Invalid digits are rejected rather than partially parsed.