⚡
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.

Funciona 100% no seu navegador — o que você insere nunca é enviado nem armazenado nos nossos servidores.

Esta ferramenta ainda não está totalmente traduzida, por isso parte do texto continua em inglês. A ferramenta funciona da mesma forma em todos os idiomas.

⚡

Exemplos rápidos

Entradas típicas e os resultados que esta ferramenta gera.

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.
📖

Visão geral

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.

Por que usar esta ferramenta?

  • 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
⭐

Recursos

🔄

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.

🛠️

Como usar

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.

🤔

Perguntas frequentes