AscendLab

Converters

进制转换器

New free tool

Number Base Converter for Binary, Decimal & Hex

Convert whole numbers across common programming bases without sending values to a server.

Quick answer

A number base converter translates the same integer into binary, octal, decimal, and hexadecimal forms.

It is useful for programming, debugging, docs, and data cleanup.

Best inputs

Pick the source base first

A value like 101 can mean different things in binary, decimal, or hex.

Use integers

This tool focuses on whole-number conversions, not floating-point notation.

Number input
Convert integers between binary, octal, decimal, and hexadecimal.

Try a common integer

Valid integer input.

Converted values
Copy the value in the base you need for code, docs, or data cleanup.

Binary

Base 2

0b11111111

Octal

Base 8

0o377

Decimal

Base 10

255

Hex

Base 16

0xFF
Example
Enter decimal 255 to get binary 0b11111111, octal 0o377, and hex 0xFF.
Assumption
The input is an integer written in the base you selected.
Limitation
It does not convert fractional numbers, floating-point formats, signed byte widths, or endian-specific binary layouts.

Suggested workflow

Encoding and conversion workflow

Convert numeric bases, then encode text or generate fingerprints when preparing developer notes.

Related tools

Related conversion tools

Frequently asked questions

Which number bases are supported?

The converter supports binary, octal, decimal, and hexadecimal integers.

Can I use prefixes like 0x or 0b?

Yes. Hexadecimal can use 0x, binary can use 0b, and octal can use 0o.

Does conversion need a backend?

No. Integer parsing and conversion run locally in the browser.

Does it support fractions?

No. This tool focuses on whole-number integer conversion.