All tools

Four bases, one exact calculation

Number Base Converter

Convert binary, octal, decimal and hexadecimal numbers online, with grouping, place values and step-by-step calculations.

Exact integers · No rounding

Input

Enter a number

Supports +/− signs, 0b/0o/0x prefixes and underscores between digits. Up to 256 digits.

Try an example

Results

All four representations

Copy a value or open its calculation below.

BINBinary
OCTOctal
DECDecimal
HEXHexadecimal

Calculation

How this result is calculated

Choose a target base to see the positional expansion and repeated-division method.

01 / Content summary

Exact conversion across four common bases

Convert signed integers among base 2, base 8, base 10 and base 16 without floating-point rounding, while seeing every representation together.

02 / How to use

Enter once, then inspect the method

Choose the input base, type a value and select any result. The page expands source digits by place value, then shows repeated division for the chosen target base.

03 / Method and sources

Method and sources

The local JavaScript module parses each digit into a BigInt integer. Positional expansion verifies the decimal value, and repeated whole-number division produces binary, octal and hexadecimal digits without floating-point rounding.

04 / FAQ

Frequently asked questions

What can Number Base Converter do?

Convert signed integers among base 2, base 8, base 10 and base 16 without floating-point rounding, while seeing every representation together.

How do I use Number Base Converter?

Choose the input base, type a value and select any result. The page expands source digits by place value, then shows repeated division for the chosen target base.

Does Number Base Converter upload my data?

The tool runs in your browser. Your selected files, entered content and generated results are not sent to Zituo Tools.