Number Base Converter

Convert numbers between bases instantly: binary, octal, decimal, hexadecimal, and any custom base (2-36). Free online base converter tool.

Everything runs in your browser — your data is never sent to any server.

Why Use a Number Base Converter?

Different number systems are fundamental to computing. Binary is the language of hardware, hexadecimal is used in memory addressing and color codes, octal appears in file permissions, and decimal is our everyday number system. Our base converter lets you translate between these systems instantly, with support for any base from 2 to 36.

Key Features

  • Standard bases: binary (2), octal (8), decimal (10), hexadecimal (16)
  • Custom base conversion for any base 2-36
  • One-click copy for any conversion result

How to Use

  1. Select the input base and enter your number
  2. View all standard base conversions at once
  3. Switch to the Custom tab for non-standard base conversions

Technical Details

Number base conversion works by first parsing the input number in its source base to a decimal integer using JavaScript's parseInt(value, radix) function. The decimal value is then converted to the target base using Number.toString(radix). Bases above 10 use letters A-Z for digits 10-35. All processing is client-side.

FAQ

What bases are supported?

The tool supports any base from 2 to 36. Common bases include binary (2), octal (8), decimal (10), and hexadecimal (16).

What are the prefix conventions for different bases?

Common prefixes are 0b for binary, 0o for octal, and 0x for hexadecimal. Decimal numbers have no prefix.

Related tools