Esta página ainda não foi traduzida para o português, por isso aparece em inglês.

Hex to Decimal Converter

Type a hex number like FF or 0x1A3F to get its decimal value — plus binary and octal — and convert decimal back to hex in the same view.

Atualizado em
Options

Prefixes like 0x, 0b, 0o, spaces and underscores are ignored. Arbitrarily large integers are supported.

Two’s complement bit view
255
Signed value
255
Unsigned value
0x000000FF
Hex (fixed width)

Click a bit to flip it. The highlighted bit is the sign bit.

Text ↔ hex ↔ binary (UTF-8)

Seus dados nunca saem do seu computador. Todo o processamento acontece localmente no navegador.

Como usar: Hex to Decimal Converter

  1. Type the hex value — with or without 0x — in the hexadecimal field.
  2. Read the decimal, binary and octal values, updated as you type.
  3. Type in the decimal field to convert the other way.

How hex to decimal works

Hexadecimal is base 16: the digits 0–9 and the letters A–F (10–15). Each position is worth 16 times the one to its right. 1A3F = 1×4096 + 10×256 + 3×16 + 15×1 = 6,719. Two hex digits make exactly one byte, which is why hex is used for colors (#FF8800), memory addresses and byte dumps.

Large numbers and negative values

The converter uses arbitrary-precision integers, so 64-bit and larger values convert exactly — no rounding as in a regular calculator. For signed values, the two’s-complement view shows how a value like FFFFFFFF reads as −1 in a 32-bit signed integer.

Quick reference

0xFF = 255 · 0x100 = 256 · 0xFFFF = 65,535 · 0x7FFFFFFF = 2,147,483,647 (largest signed 32-bit integer).

Também pesquisado como: hex to decimal, hexadecimal to decimal, convert hex to decimal, hex to dec, decimal to hex, hex converter, hex calculator.

Ferramentas que combinam com: Hex to Decimal Converter

  • Number Base Converter — Type a number in any base and see it in all the others instantly.
  • HEX to RGBA Converter — Paste a HEX code, drag the opacity slider and copy the exact CSS you need — legacy rgba(), modern rgb( / alpha) or 8-digit HEX.
  • Binary to Text Converter — Paste binary code — groups of eight 0s and 1s, or one long string — and read it as text.
  • Conversor de texto para binário — Digite um texto para vê-lo como código binário ou cole um código binário (ou hexadecimal, octal ou decimal) para convertê-lo de volta em texto legível.

Perguntas frequentes

What is FF in decimal?
255 — F is 15, so FF = 15×16 + 15.
How do I convert decimal to hex?
Type the number in the decimal field. Manually, divide by 16 repeatedly and write the remainders from last to first.
What does the 0x prefix mean?
It marks a hexadecimal number in code (C, JavaScript, Python). The converter accepts values with or without it.
Posso instalar o Hex to Decimal Converter como um aplicativo da web e usá-lo offline?
Sim. O Hex to Decimal Converter é um aplicativo da web instalável (PWA) — instalado a partir do seu navegador, não baixado de uma loja de aplicativos. Clique em “Instalar aplicativo” na parte superior desta página no Chrome ou no Edge (Windows, macOS, Linux, ChromeOS) ou, no Android, use “Compartilhar” → “Adicionar à tela inicial” no iPhone e no iPad, ou “Arquivo” → “Adicionar ao Dock” no Safari 17+ em um Mac. Em seguida, ela se abre em uma janela própria com seu próprio ícone e, como é executada inteiramente no seu navegador, continua funcionando offline. O Firefox no desktop não permite a instalação de aplicativos da web. Como funciona a instalação.

Ferramentas relacionadas