⚡
usefultools.dev
0x

Number Base Converter

Convert numbers between Binary (base 2), Octal (base 8), Decimal (base 10), and Hexadecimal (base 16) instantly, with exact results for big integers.

Fonctionne à 100 % dans votre navigateur — vos données ne sont jamais envoyées ni stockées sur nos serveurs.

Cet outil n'est pas encore entièrement traduit : une partie du texte est encore en anglais. L'outil lui-même fonctionne de la même façon dans toutes les langues.

⚡

Exemples rapides

Des entrées typiques et les résultats produits par cet outil.

Decimal
255 (base 10)
FF hex · 11111111 bin
Hex
FF (base 16)
255 dec · 377 oct
Binary
1010 (base 2)
10 dec · A hex
Big
9007199254740993 (base 10)
20000000000001 hex
Error
0xFF (base 16)
Invalid number for base 16.
📖

Présentation

Number base conversion is a fundamental concept in computer science, programming, and digital electronics. Binary (base 2) is used by processors, hexadecimal (base 16) is used in memory addresses and color codes, and octal (base 8) appears in Unix file permissions.

This tool converts a non-negative integer from any of these bases to all four at once, making it easy to cross-check values during development or study. It uses BigInt arithmetic, so 64-bit values and larger numbers convert exactly, and everything runs in your browser.

Only whole numbers are supported: fractions, negative signs, spaces, underscores and prefixes such as 0x or 0b are rejected. Hexadecimal results are shown in uppercase without leading zeros, so FF is not padded to 00FF.

Pourquoi utiliser cet outil ?

  • Understand memory addresses and CPU registers in hex
  • Convert Unix file permission bits (octal) for chmod commands
  • Work with HTML color codes in hexadecimal
  • Study binary arithmetic and bitwise operations
⭐

Fonctionnalités

🔄

All-at-Once

Enter a number in any base and see all other base representations simultaneously.

⚡

Exact Big Numbers

BigInt math keeps every digit, even above 2^53 or 64 bits.

✅

Input Validation

Detects invalid characters for the selected base (e.g., '2' in binary).

🔒

In Your Browser

Conversions run locally; nothing is sent to a server.

🛠️

Mode d'emploi

1

Enter your number

Type a number and select its base (Binary, Octal, Decimal, or Hex).

2

Read conversions

Click "Convert" to see the binary, octal, decimal and hexadecimal values.

3

Fix invalid input

If a digit is not valid for the selected base, an error explains which base rejected it.

🤔

Questions fréquentes