Skip to content
Codesphere
← All tools
</>

Number Base Converter

Convert binary, octal, decimal, hex, and custom bases.

Converted

Binary

11111111

Octal

377

Decimal

255

Hexadecimal

FF

Base 36

73

About the Number Base Converter

Convert integers between binary, octal, decimal, hexadecimal, and any custom base from 2 to 36. The converter uses BigInt so large IDs, bit masks, checksums, and protocol values stay exact instead of being rounded by floating-point math.

How the result is produced

Integer strings are parsed with BigInt and converted to bases from 2 through 36, avoiding floating-point rounding for large identifiers, masks, and protocol values.

Example: The decimal value `255` becomes `11111111` in base 2, `377` in base 8, and `ff` in base 16.

Limitations and review notes

The converter handles integers rather than fractional values or floating-point representations. Prefixes, signed conventions, overflow expectations, and byte order still depend on the system consuming the value.

How to use it

  1. 1. Enter an integer and choose its source base.
  2. 2. Pick any custom output base from 2 to 36.
  3. 3. Review binary, octal, decimal, hex, and custom-base results.
  4. 4. Copy the representation you need.

FAQ

Which number bases are supported?

The converter accepts and outputs bases 2 through 36, including binary, octal, decimal, and hexadecimal.

Can it handle very large integers?

Yes. It uses BigInt, so large integers convert without JavaScript number precision loss.

Are fractional numbers supported?

No. This tool is intentionally for integers across bases 2 through 36.

Related tools

View category →

Was this useful?