A hex converter is a tool that translates values between hexadecimal, decimal, binary, and other number systems. It works by reading each hex digit as a power of 16, then converting that value into the target format you need. The tool offers 4 main benefits: instant conversion without manual math, error-free handling of large values, support for multiple formats in one place, and a clear view of how bytes map to human-readable numbers. People use a hex converter to read memory addresses, decode color codes, inspect blockchain data, debug network packets, and translate raw bytes into text. The main parts of a hex converter are the input field for the source value, the output field for the converted result, a format selector for choosing between hex, decimal, binary, octal, or text, and a copy button for grabbing the result.
What Is a Hex Converter?
A hex converter is a tool that changes a hexadecimal value into another number format, or changes another format into hex. You type a value into the input field, the tool reads each digit, and it returns the equivalent value in decimal, binary, octal, text, or another target format.
The tool removes the need for manual calculation. Converting 1D8A from hex to decimal by hand means multiplying four digits by powers of 16 and adding the results. A hex converter does this in the time it takes to press a key.
⚡ Experimente ao vivo
—
—
—
What Is Hexadecimal?
Hexadecimal is a base-16 number system. It uses 16 symbols: the digits 0 through 9 and the letters A through F. The letters stand in for the values 10 through 15, since decimal only has 10 single-digit symbols to work with.
Computers store data in bits, and 8 bits form a byte. Writing a byte in binary takes 8 characters. Writing the same byte in hex takes 2 characters, because each hex digit covers exactly 4 bits (a nibble). This is why hex shows up anywhere programmers need to read binary data without staring at long strings of 1s and 0s: memory addresses, color codes, hash values, and file headers.
A hex value is often written with a 0x prefix, such as 0xFF, to separate it from a decimal number that happens to use the same digits.
🔄 Número em cada base
—
What Can You Convert With a Hex Converter?
A hex converter handles 6 common conversion types: hex to decimal, decimal to hex, hex to binary, binary to hex, hex to octal, and hex to text (ASCII or UTF-8). Many tools also support hex to RGB for web colors, hex to Base64 for encoded data, and hex to IP address for network values.
Each conversion type serves a different task. Hex to decimal helps you read a raw value in familiar terms. Hex to binary shows the exact bit pattern a processor works with. Hex to text decodes byte sequences back into readable characters. Hex to RGB turns a 6-character color code into red, green, and blue channel values for design work.
🔀 Caminhos de conversão
Hexadecimal Number System
The hexadecimal number system uses a radix, or base, of 16. Each position in a hex number represents a power of 16, starting at 16⁰ on the right and increasing by one power for each position moved left.
A hex digit can hold 16 possible values (0-9, A-F), compared to 10 values in decimal and 2 values in binary. This gives hex more information density per character. A single hex digit encodes 4 bits, so 2 hex digits encode a full byte (8 bits), and 4 hex digits encode 2 bytes (16 bits).
📐 Explorador de valor local
× 16² (256)
Como usar o conversor hexadecimal
Digite um valor hexadecimal no campo de entrada e leia o resultado convertido no campo de saída. O conversor aceita valores com ou sem o prefixo 0x, em letras maiúsculas ou minúsculas, e normalmente ignora espaços ou dois pontos colocados entre pares de bytes.
Para converter decimal em hexadecimal, insira um número inteiro no campo decimal e a ferramenta retornará o equivalente hexadecimal. Mude a direção usando o seletor de troca ou formato se a ferramenta suportar ambas as direções em uma interface. Copie o resultado com o botão copiar em vez de selecioná-lo e digitá-lo novamente, pois a redigitação manual introduz erros em valores de hash longos.
📋 Como funciona
Passo 1
Escolha o formato
Fórmulas de conversão hexadecimal
Each conversion between hex and another format follows a fixed formula. The 6 formulas below cover the conversions people look up most.
Hexadecimal to Decimal Formula
The hexadecimal to decimal formula is decimal = Σ (digit × 16ⁿ), summed across every digit, where n is the digit’s position counted from right to left starting at 0. Hex 1A3 converts to decimal 419: (1 × 16²) + (10 × 16¹) + (3 × 16⁰) = 256 + 160 + 3 = 419.
Decimal to Hexadecimal Formula
The decimal to hexadecimal formula divides the decimal number by 16 repeatedly, recording each remainder as a hex digit, until the quotient reaches 0. Decimal 419 converts to hex 1A3: 419 ÷ 16 = 26 remainder 3, 26 ÷ 16 = 1 remainder 10 (A), 1 ÷ 16 = 0 remainder 1. Reading the remainders in reverse gives 1A3.
Fórmula hexadecimal para binária
The hexadecimal to binary formula replaces each hex digit with its 4-bit binary equivalent, then joins the groups in order: binary = concat(digit → 4-bit binary), applied digit by digit. Hex 2AA converts to binary 0010 1010 1010, since 2 is 0010 and A is 1010 in each remaining position.
Binário to Hexadecimal Formula
The binary to hexadecimal formula groups binary digits into sets of 4 starting from the right, padding the leftmost group with zeros when it has fewer than 4 digits, then converts each group to its hex digit: hex = concat(4-bit group → digit). Binário 1010101010 converts to hex 2AA.
Hexadecimal to Octal Formula
The hexadecimal to octal formula runs through binary as a middle step: convert each hex digit to 4-bit binary, regroup the full binary string into sets of 3 from the right, then convert each 3-digit group to its octal digit. Hex FF converts to octal 377, since FF is binary 11111111, grouped as 011 111 111.
Hexadecimal to Text Formula
A fórmula hexadecimal para texto divide a string hexadecimal em pares de bytes de 2 caracteres, converte cada par em seu valor decimal usando a fórmula hexadecimal para decimal e, em seguida, mapeia cada valor decimal para seu caractere usando a tabela ASCII ou UTF-8: texto = mapa (decimal (byte) → caractere). Hex 48656C6C6F é convertido no texto “Olá”.
📐 Referência Rápida da Fórmula
Hex Conversion Examples
Hex A3 converte para decimal 163, pois A (10) × 16¹ + 3 × 16⁰ = 160 + 3 = 163. Hex FF converte para decimal 255, pois F (15) × 16¹ + F (15) × 16⁰ = 240 + 15 = 255. Hex 1D8A converte para decimal 7562, seguindo a mesma multiplicação dígito por dígito em 4 posições.
Decimal 1500 converts to hex 5DC. Decimal 255 converts to hex FF. Decimal 4132 converts to hex 1024.
Hex 48656C6C6F converts to the text “Hello,” since each 2-character hex pair maps to one ASCII byte: 48 is H, 65 is e, 6C is l, 6C is l, and 6F is o.
🧮 Calculadora passo a passo
Métodos de conversão hexadecimal
There are 2 core methods for converting between hex and decimal: digit expansion for hex-to-decimal, and repeated division for decimal-to-hex.
A expansão de dígitos multiplica cada dígito hexadecimal por sua potência posicional de 16 e, em seguida, soma os resultados. A divisão repetida divide o número decimal por 16 repetidamente, registrando o restante em cada etapa e, em seguida, lê os restos na ordem inversa para construir o valor hexadecimal.
🔬 Visualizador de métodos
(Digit × 16^pos) + (Digit × 16^pos)…
Hexadecimal vs Decimal, Binário, and Octal
Hexadecimal, decimal, binary, and octal differ in base and in how many digits each needs to represent the same value. Binário (base 2) uses 8 digits to represent one byte. Octal (base 8) uses 3 digits. Decimal (base 10) uses 1 to 3 digits. Hex (base 16) uses exactly 2 digits.
Binário is the format processors operate on directly. Octal was common in early computing and now survives mainly in Unix file permission codes. Decimal is the system people use for everyday arithmetic. Hex balances compactness with a direct mapping to binary, which is why it dominates in memory addressing, color codes, and cryptographic output.
🎚️ Compare bases numéricas
O que é o sistema decimal?
O sistema decimal é um sistema numérico de base 10 que usa 10 dígitos: 0 a 9. A posição de cada dígito representa uma potência de 10, começando em 10⁰ à direita.
O sistema decimal é o padrão para a aritmética diária porque os humanos contam em 10 dedos. Os computadores não usam decimal internamente, portanto, qualquer valor decimal inserido em um sistema é convertido em binário ou hexadecimal antes do processamento.
Sistema hexadecimal (sistema hexadecimal)
O sistema hexadecimal usa 16 símbolos: 0-9 e AF. Cada dígito representa uma potência de 16. As letras de A a F representam os valores decimais de 10 a 15.
Hex é usado na computação porque se alinha aos limites de bytes. Um único byte, composto de 8 bits, é convertido de forma limpa em exatamente 2 dígitos hexadecimais, sem resto ou arredondamento. Esse mapeamento limpo não existe entre bytes e dígitos decimais, e é por isso que os dados brutos do computador são mostrados em hexadecimal em vez de decimal.
Decimal System
Decimal é um sistema numérico posicional de base 10. O valor de cada dígito depende do próprio dígito e de sua posição no número. O dígito 5 no número 500 representa 5 × 10², ou 500. O mesmo dígito 5 no número 50 representa 5 × 10¹, ou 50.
Decimal trata valores fracionários usando um ponto decimal, onde os dígitos após o ponto representam potências negativas de 10 (décimos, centésimos e assim por diante).
Como calcular hexadecimal para decimal
Multiplique cada dígito hexadecimal por 16 elevado à sua posição, contando as posições da direita para a esquerda começando em 0 e, em seguida, some os resultados. O valor hexadecimal 2AA é convertido para decimal 682: (2 × 16²) + (10 × 16¹) + (10 × 16⁰) = 512 + 160 + 10 = 682.
For long hex strings like cryptographic hashes, this calculation still works digit by digit, but the resulting decimal number grows large fast. A 64-character hex hash can produce a decimal number with 77 digits.
⚙️ Expansão de dígitos ao vivo
Convert Hexadecimal Value to Decimal Value
A conversão de um valor hexadecimal em decimal segue 3 etapas: atribua a cada dígito sua potência de 16 com base na posição, multiplique cada dígito por sua potência e some todos os resultados.
Exemplo: hex 7DE converte para decimal 2014. (7 × 16²) + (13 × 16¹) + (14 × 16⁰) = 1792 + 208 + 14 = 2014.
Converter valor decimal em valor hexadecimal
Converting a decimal value to hex follows 4 steps: divide the decimal number by 16, record the remainder as a hex digit, use the quotient as the next number to divide, and repeat until the quotient reaches 0.
Exemplo: decimal 7562 é convertido em hexadecimal 1D8A. 7562 ÷ 16 = 472 resto 10 (A). 472 ÷ 16 = 29 resto 8 (8). 29 ÷ 16 = 1 resto 13 (D). 1 ÷ 16 = 0 resto 1 (1). Ler os restos do último para o primeiro dá 1D8A.
Hex para binário e binário para hex
A conversão hexadecimal para binário substitui cada dígito hexadecimal por seu equivalente binário de 4 bits e, em seguida, junta os grupos em ordem. Hex 2AA converte para binário 0010 1010 1010, já que 2 é 0010 e A é 1010 em cada uma das 2 posições restantes.
Binário to hex conversion groups binary digits into sets of 4 starting from the right, padding the leftmost group with zeros when it has fewer than 4 digits, then converts each group to its hex digit. Binário 1010101010 converts to hex 2AA, using the same grouped values in reverse.
Hex to Octal
A conversão de hexadecimal para octal passa pelo binário como uma etapa intermediária: converta o valor hexadecimal em binário, reagrupe os dígitos binários em conjuntos de 3 a partir da direita e, em seguida, converta cada grupo de 3 dígitos em seu dígito octal. Hex FF é convertido para octal 377: FF é o binário 11111111, agrupado como 011 111 111, que é lido como 3, 7, 7.
Hexadecimal para inteiro
A conversão de hexadecimal em inteiro lê um valor hexadecimal como um inteiro sem sinal ou com sinal, dependendo da largura do tipo de dados. Um valor hexadecimal de 8 bits sem sinal varia de 00 a FF ou de 0 a 255 em decimal. Um valor hexadecimal assinado de 8 bits usa complemento de dois, portanto, 00 a 7F representa 0 a 127, enquanto 80 a FF representa -128 a -1. Hex FF como um número inteiro sem sinal de 8 bits é igual a 255, mas como um número inteiro com sinal de 8 bits é igual a -1.
The same signed and unsigned rules extend to 16-bit, 32-bit, and 64-bit integers, across more hex digits: 4 hex digits for 16-bit, 8 hex digits for 32-bit, and 16 hex digits for 64-bit.
Cálculo Hexadecimal – Adicionar, Subtrair, Multiplicar ou Dividir
A aritmética hexadecimal segue as mesmas regras da aritmética decimal, com 2 ajustes: dígitos acima de 9 usam letras de A a F e movimentos de transporte ou empréstimo em unidades de 16 em vez de 10.
Adição hexadecimal
Add hex digits the same way you add decimal digits, converting letters to their decimal values when needed, then carry any amount of 16 or more into the next column. Example: B (11) + 8 = 19 in decimal, which equals 13 in hex. Write down 3, carry 1 into the next column.
Subtração hexadecimal
Subtraia os dígitos hexadecimais coluna por coluna, pegando emprestado 16 da próxima coluna quando o dígito superior for menor que o dígito inferior. Exemplo: em 5D1C − 3AF, a coluna mais à direita precisa de C (12) − F (15), que é negativo, então a coluna pega emprestado 16 do próximo dígito: 16 + 12 − 15 = 13, ou D.
Hex Multiplication
Multiplique dígitos hexadecimais usando seus equivalentes decimais, converta cada produto parcial novamente em hexadecimal e, em seguida, some os produtos parciais seguindo a adição hexadecimal normal. Uma tabela de multiplicação hexadecimal elimina a necessidade de conversão em cada etapa.
Hex Division
Divida números hexadecimais usando divisão longa, executando cada etapa de multiplicação e subtração em hexadecimal em vez de decimal. O empréstimo durante a subtração ainda se move em unidades de 16.
Hexadecimal Multiplication Table
| × | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | C | D | E | F |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | C | D | E | F |
| 2 | 2 | 4 | 6 | 8 | A | C | E | 10 | 12 | 14 | 16 | 18 | 1A | 1C | 1E |
| 3 | 3 | 6 | 9 | C | F | 12 | 15 | 18 | 1B | 1E | 21 | 24 | 27 | 2A | 2D |
| 4 | 4 | 8 | C | 10 | 14 | 18 | 1C | 20 | 24 | 28 | 2C | 30 | 34 | 38 | 3C |
| 5 | 5 | A | F | 14 | 19 | 1E | 23 | 28 | 2D | 32 | 37 | 3C | 41 | 46 | 4B |
| 6 | 6 | C | 12 | 18 | 1E | 24 | 2A | 30 | 36 | 3C | 42 | 48 | 4E | 54 | 5A |
| 7 | 7 | E | 15 | 1C | 23 | 2A | 31 | 38 | 3F | 46 | 4D | 54 | 5B | 62 | 69 |
| 8 | 8 | 10 | 18 | 20 | 28 | 30 | 38 | 40 | 48 | 50 | 58 | 60 | 68 | 70 | 78 |
| 9 | 9 | 12 | 1B | 24 | 2D | 36 | 3F | 48 | 51 | 5A | 63 | 6C | 75 | 7E | 87 |
| A | A | 14 | 1E | 28 | 32 | 3C | 46 | 50 | 5A | 64 | 6E | 78 | 82 | 8C | 96 |
| B | B | 16 | 21 | 2C | 37 | 42 | 4D | 58 | 63 | 6E | 79 | 84 | 8F | 9A | A5 |
| C | C | 18 | 24 | 30 | 3C | 48 | 54 | 60 | 6C | 78 | 84 | 90 | 9C | A8 | B4 |
| D | D | 1A | 27 | 34 | 41 | 4E | 5B | 68 | 75 | 82 | 8F | 9C | A9 | B6 | C3 |
| E | E | 1C | 2A | 38 | 46 | 54 | 62 | 70 | 7E | 8C | 9A | A8 | B6 | C4 | D2 |
| F | F | 1E | 2D | 3C | 4B | 5A | 69 | 78 | 87 | 96 | A5 | B4 | C3 | D2 | E1 |
🔢 Aritmética Hexadecimal
(191)
Valores Hexadecimais Comuns
| Hex | Decimal | Binário | ASCII |
|---|---|---|---|
| 00 | 0 | 00000000 | NUL |
| 0A | 10 | 00001010 | LF (newline) |
| 20 | 32 | 00100000 | Space |
| 30 | 48 | 00110000 | 0 |
| 41 | 65 | 01000001 | A |
| 61 | 97 | 01100001 | a |
| 7F | 127 | 01111111 | DEL |
| FF | 255 | 11111111 | Extended byte |
Esses 8 valores aparecem frequentemente porque marcam limites: 00 é o byte nulo, 20 é o caractere de espaço que separa palavras em ASCII, 41 inicia o alfabeto maiúsculo, 61 inicia o alfabeto minúsculo e FF marca o valor mais alto de byte único.
🗺️ ASCII Map Explorer
Hex to Text, ASCII, and UTF-8
A conversão hexadecimal em texto divide a string hexadecimal em pares de bytes de 2 caracteres, converte cada par em seu valor decimal e, em seguida, lê esses bytes como caracteres. Hex 48656C6C6F decodifica para “Olá”, já que 48 é H, 65 é e, 6C é l, 6C é l e 6F é o.
Hex para ASCII segue o mesmo método de par de bytes, mas ASCII cobre apenas valores de bytes de 0 a 127 ou 00 a 7F em hexadecimal. Hex para UTF-8 estende isso para valores de bytes acima de 7F, onde o conversor lê 2, 3 ou 4 bytes hexadecimais juntos para decodificar um único caractere.
🗺️ ASCII Map Explorer
Texto para hexadecimal
A conversão de texto em hexadecimal converte cada caractere em seu valor de byte usando sua codificação de caracteres e, em seguida, grava cada valor de byte como um par hexadecimal de 2 caracteres. O texto “Hi” é convertido em hexadecimal 4869, pois H é igual ao decimal 72 (hex 48) e i é igual ao decimal 105 (hex 69).
Hex to Base64
Hex to Base64 conversion regroups the raw bytes a hex string represents into sets of 3 bytes (24 bits), splits each 24-bit group into four 6-bit segments, then maps each 6-bit segment to one of 64 Base64 characters (A-Z, a-z, 0-9, +, /). Hex 48656C6C6F, which is 5 bytes, converts to Base64 SGVsbG8=, with padding added when the byte count doesn’t divide evenly by 3.
Hex Color Conversions
A hex color code is a 6-character hex value that represents a color using 2 digits each for red, green, and blue. The code FF5733 represents a red-orange color: FF (255) red, 57 (87) green, and 33 (51) blue.
Hex to RGB
Hex to RGB conversion splits a 6-character hex color into 3 pairs, then converts each pair to its decimal value. Hex FF5733 converts to RGB(255, 87, 51), following the red, green, blue pair order.
Hex to HSL
Hex to HSL conversion extracts the RGB values first, then calculates hue, saturation, and lightness from the relative brightness and range of the RGB channels. Hue is measured in degrees from 0 to 360, while saturation and lightness are both measured as percentages from 0 to 100.
Hex to HSV
Hex to HSV conversion also starts from the extracted RGB values, then calculates hue, saturation, and value (brightness). HSV differs from HSL in how it defines brightness: HSV’s value channel tracks the highest of the 3 RGB channels directly, while HSL’s lightness averages the highest and lowest channels.
Hex to CMYK
Hex to CMYK conversion extracts RGB first, then converts the RGB values into cyan, magenta, yellow, and key (black) percentages for print use. CMYK values are subtractive, meaning they describe how much ink absorbs light, while RGB and hex values are additive, describing how much light a screen emits.
Hexadecimal para Pantone
Hex to Pantone conversion matches a hex color against the closest entry in the Pantone Matching System (PMS) library, since Pantone uses named ink formulations rather than a mathematical RGB or CMYK formula. The match is an approximation: 2 different hex values can map to the same Pantone swatch, and print output can vary from the on-screen hex preview depending on paper stock and printing process.
Hexadecimal em Blockchain
Os sistemas Blockchain armazenam quase todos os dados brutos em formato hexadecimal. Identificadores de transação, hashes de bloco, endereços e dados de contratos inteligentes usam hexadecimal porque mapeiam diretamente para os bytes subjacentes sem perder a estrutura.
IDs de transação
A Bitcoin transaction ID (txid) is a 64-character hex string. It represents the double SHA-256 hash of the serialized transaction, compressed from 32 raw bytes into hex form for readability.
Block Hashes
A block hash is also a 64-character hex string, produced by hashing the 80-byte block header twice with SHA-256. Bitcoin’s proof-of-work difficulty target requires the hash to fall below a threshold, which in hex terms means the hash must start with a set number of leading zeros.
Addresses and Public Keys
Uma chave pública Bitcoin tem 33 bytes em formato compactado ou 65 bytes descompactados, mostrados em hexadecimal antes da conversão para o formato Base58Check ou Bech32. Um endereço Ethereum é uma string hexadecimal de 40 caracteres (20 bytes) com um prefixo 0x.
Opcodes and Script
Bitcoin Script uses single-byte opcodes referenced by their hex values. A standard Pay-to-Public-Key-Hash script reads 76 A9 14 [hash] 88 AC in hex, where 76 is OP_DUP, A9 is OP_HASH160, 88 is OP_EQUALVERIFY, and AC is OP_CHECKSIG.
Dados de contrato inteligente
Ethereum smart contract calls encode as hex data in a transaction’s input field. The first 4 bytes form a function selector, derived from the Keccak-256 hash of the function signature. An ERC-20 transfer() call starts with the selector 0xA9059CBB.
⛓️ Transaction Anatomy
01000000
01
7b1eabe0209b1fe794124575ef807057c77ada2138ae4fa8d6c4de0398a14f3f
00000000
494830450221008949…
ffffffff
Hover over fields to decode the raw hex transaction bytes.
Hex em Programação e Dados
O hexadecimal aparece em 6 tarefas comuns de programação e dados além da conversão básica de números: codificação de ponto flutuante, manipulação de ordem de bytes, operações bit a bit, inspeção de código de máquina, análise de arquivo bruto e geração de identificador.
Hex to IEEE 754
A conversão de hexadecimal para IEEE 754 lê um valor hexadecimal como um número de ponto flutuante usando o padrão IEEE 754, que divide os bits em um bit de sinal, um expoente e uma mantissa. Um float de 32 bits (precisão simples) usa 1 bit de sinal, 8 bits de expoente e 23 bits de mantissa. O valor hexadecimal 3F800000 é convertido para o valor de ponto flutuante 1,0 sob este padrão.
Conversor Hexadecimal Endian
Um conversor hexadecimal endian inverte a ordem de bytes de um valor hexadecimal entre os formatos big endian e little endian. Big-endian armazena primeiro o byte mais significativo; little-endian armazena primeiro o byte menos significativo. O valor hexadecimal de 4 bytes 12345678 em big-endian torna-se 78563412 em little-endian, uma vez que a sequência de bytes é invertida enquanto os 2 dígitos de cada byte mantêm sua ordem.
Calculadora Hexadecimal XOR
Uma calculadora XOR hexadecimal aplica a operação XOR bit a bit a 2 valores hexadecimais, comparando-os bit a bit e retornando 1 onde os bits diferem e 0 onde eles correspondem. Hex FF XOR 0F é igual a F0, pois cada posição de bit onde os 2 valores discordam produz um 1.
Hex para montagem
A conversão hexadecimal em assembly, também chamada de desmontagem, traduz bytes brutos de código de máquina de volta em instruções de montagem legíveis para uma arquitetura de processador específica. Cada opcode hexadecimal é mapeado para um mnemônico de instrução, como MOV, ADD ou JMP, embora o mapeamento exato dependa do conjunto de instruções: x86, ARM ou outra arquitetura.
Conversor de despejo hexadecimal
Um conversor hexadecimal pega um arquivo binário e exibe seus bytes brutos em formato hexadecimal, geralmente ao lado de uma coluna ASCII mostrando o caractere imprimível para cada byte. Os despejos hexadecimais permitem que os desenvolvedores inspecionem cabeçalhos de arquivos, verifiquem assinaturas de arquivos e depurem dados binários sem um analisador especializado para cada tipo de arquivo.
Hex to UUID
A conversão de hexadecimal para UUID formata um valor hexadecimal de 32 caracteres (16 bytes) no padrão UUID padrão: 8-4-4-4-12 dígitos hexadecimais separados por hífens, como 550E8400-E29B-41D4-A716-446655440000. Um UUID é um valor de 128 bits usado para identificar registros ou objetos com chance quase zero de colisão entre sistemas.
Conversion Reference
| Hex | Decimal | Binário | ASCII |
|---|---|---|---|
| 00 | 0 | 00000000 | NUL |
| 0A | 10 | 00001010 | LF |
| 30 | 48 | 00110000 | 0 |
| 41 | 65 | 01000001 | A |
| 61 | 97 | 01100001 | a |
| 7F | 127 | 01111111 | DEL |
| FF | 255 | 11111111 | — |
📚 ASCII Control Chars
| Hex | Decimal | Binário | ASCII |
|---|---|---|---|
| 00 | 0 | 00000000 | NUL |
| 0A | 10 | 00001010 | LF |
| 30 | 48 | 00110000 | 0 |
| 41 | 65 | 01000001 | A |
| 61 | 97 | 01100001 | a |
| 7F | 127 | 01111111 | DEL |
| FF | 255 | 11111111 | — |
Valores hexadecimais comuns em criptografia
| Hex Value | Name | Context |
|---|---|---|
| 0x76 | OP_DUP | Duplicates the top stack item |
| 0xA9 | OP_HASH160 | Applies SHA-256 then RIPEMD-160 |
| 0xAC | OP_CHECKSIG | Verifies a signature |
| 0x6A | OP_RETURN | Marks an output as unspendable |
| 0x88 | OP_EQUALVERIFY | Checks equality and verifies |
| 0xAE | OP_CHECKMULTISIG | Verifies a multisig condition |
| 0xA9059CBB | transfer(address,uint256) | ERC-20 function selector |
| 0x095EA7B3 | approve(address,uint256) | ERC-20 function selector |
| 0x70A08231 | balanceOf(address) | ERC-20 function selector |
🪙 Web3 & Bitcoin Ops
| Hex Value | Name | Context |
|---|---|---|
| 0x76 | OP_DUP | Duplicates the top stack item |
| 0xA9 | OP_HASH160 | Applies SHA-256 then RIPEMD-160 |
| 0xAC | OP_CHECKSIG | Verifies a signature |
| 0x6A | OP_RETURN | Marks an output as unspendable |
| 0x88 | OP_EQUALVERIFY | Checks equality and verifies |
| 0xAE | OP_CHECKMULTISIG | Verifies a multisig condition |
| 0xA9059CBB | transfer(address,uint256) | ERC-20 function selector |
| 0x095EA7B3 | approve(address,uint256) | ERC-20 function selector |
| 0x70A08231 | balanceOf(address) | ERC-20 function selector |
Hex versus outros sistemas numéricos
| Property | Binário (Base-2) | Octal (Base-8) | Decimal (Base-10) | Hex (Base-16) |
|---|---|---|---|---|
| Digits used | 0, 1 | 0-7 | 0-9 | 0-9, A-F |
| Bits per digit | 1 | 3 | ~3.32 | 4 |
| One byte requires | 8 digits | 3 digits | 1-3 digits | 2 digits |
| Common prefix | 0b | 0o | None | 0x |
| 255 expressed as | 11111111 | 377 | 255 | FF |
| Primary use | Logic gates, bit flags | Unix permissions | Everyday arithmetic | Memory, crypto, colors |
📊 Base Comparison
HEX
2 chars
FF
Explore nossas ferramentas especializadas
Conversor de CMYK para HEX
Conversor de despejo hexadecimal
Conversor Hexadecimal Endian
Conversor hexadecimal IEEE 754
Conversor hexadecimal assinado/não assinado
Conversor hexadecimal para ASCII
Conversor hexadecimal para montagem
Conversor Hexadecimal para Base64
Conversor hexadecimal para BCD
Conversor HEX para CMYK
Conversor Hexadecimal para EBCDIC
Conversor de HEX para HSL
Conversor de HEX para HSV
Conversor de endereço hexadecimal para IP
Conversor de endereço hexadecimal para MAC
Conversor de HEX para OKLCH
Conversor HEX para Pantone
Conversor hexadecimal para PCAP
Converta HEX para RAL
Conversor HEX para RGB
Conversor HEX para RGBA
Conversor hexadecimal para UF2
Conversor hexadecimal para Unicode
Conversor hexadecimal para UTF-8
Conversor UUID hexadecimal
Calculadora Hexadecimal XOR
Conversor de HSL para HEX
Conversor de HSV para HEX
Conversor RGB para HEX
Perguntas frequentes
What is hexadecimal?
Hexadecimal is a base-16 number system that uses 16 symbols: the digits 0 through 9 and the letters A through F. Each hex digit represents 4 binary digits, so 2 hex digits always equal 1 byte. Computers use hex to display raw data in a form that stays short and readable.
O que é um conversor hexadecimal?
A hex converter is a tool that translates a value between hexadecimal and another number format, such as decimal, binary, octal, or text. You enter a value in one field, and the tool returns the equivalent value in the target format within the same step.
Como faço para converter hexadecimal em decimal?
Multiply each hex digit by 16 raised to its position, then add the results together. The hex value 1A3 converts to decimal 419: (1 × 256) + (10 × 16) + (3 × 1) = 256 + 160 + 3 = 419.
How do I convert decimal to hex?
Divide the decimal number by 16, record the remainder as a hex digit, then repeat the division on the quotient until the quotient reaches 0. Reading the remainders in reverse order gives the hex value. Decimal 1500 converts to hex 5DC using this method: 1500 ÷ 16 = 93 remainder 12 (C), 93 ÷ 16 = 5 remainder 13 (D), 5 ÷ 16 = 0 remainder 5. Reading the remainders backward gives 5DC.
How do I convert hex to binary?
Replace each hex digit with its 4-bit binary equivalent, then join the groups together in order. The hex value 2AA converts to binary 0010 1010 1010, since 2 is 0010, and A is 1010 in each of the two remaining positions.
How do I convert binary to hex?
Group the binary digits into sets of 4, starting from the right, padding the leftmost group with zeros if it has fewer than 4 digits, then convert each group to its hex digit. The binary value 1010101010 converts to hex 2AA: grouped as 0010 1010 1010, which reads as 2, A, A.
How do I convert hex to octal?
Convert the hex value to binary first, then regroup the binary digits into sets of 3 from the right, then convert each group of 3 to its octal digit. The hex value FF converts to octal 377: FF is binary 11111111, grouped as 011 111 111, which reads as 3, 7, 7.
How do I convert hex to text?
Split the hex string into 2-character byte pairs, convert each pair to its decimal value, then read those bytes as characters using ASCII or UTF-8. The hex string 48 65 6C 6C 6F decodes to “Hello,” since 48 is H, 65 is e, 6C is l, 6C is l, and 6F is o.
Como faço para converter hexadecimal em ASCII?
Converta hexadecimal em ASCII da mesma forma que hexadecimal em texto: divida a string hexadecimal em pares de bytes, converta cada par em decimal e compare esse valor decimal com a tabela ASCII. ASCII cobre apenas valores de bytes de 0 a 127 (00 a 7F em hexadecimal), portanto, qualquer byte acima de 7F fica fora do padrão ASCII e precisa de decodificação UTF-8.
Como faço para converter hexadecimal em UTF-8?
Para valores de bytes de 00 a 7F, a conversão de hexadecimal para UTF-8 funciona exatamente como hexadecimal para ASCII, com 1 byte por caractere. Para valores de bytes acima de 7F, o UTF-8 usa sequências multibyte, de modo que o conversor lê 2, 3 ou 4 bytes hexadecimais juntos para decodificar um único caractere corretamente.
Como faço para converter texto em hexadecimal?
Converta cada caractere em seu valor de byte usando sua codificação de caracteres e, em seguida, escreva cada valor de byte como um par hexadecimal de 2 caracteres. O texto “Hi” é convertido para hexadecimal 48 69, pois H é igual ao decimal 72 (hex 48) e i é igual ao decimal 105 (hex 69).
Qual é a diferença entre hexadecimal e binário?
O binário usa 2 símbolos (0 e 1), enquanto o hexadecimal usa 16 símbolos (0-9 e AF). Um dígito hexadecimal sempre equivale a 4 dígitos binários, então hexadecimal representa os mesmos dados usando um quarto dos caracteres. O byte 0xFF em hexadecimal é 11111111 em binário.
O que significa o prefixo 0x?
O prefixo 0x marca um valor como hexadecimal em vez de decimal. Sem ele, “10” é ambíguo entre dez (decimal) e dezesseis (hexadecimal). O prefixo começou na linguagem de programação C e agora aparece na maioria das linguagens de programação e protocolos blockchain. Os endereços Ethereum sempre carregam o prefixo 0x; O Bitcoin geralmente não.
Os números hexadecimais podem conter letras?
Sim, os números hexadecimais contêm 6 letras: A, B, C, D, E e F. Essas letras representam os valores decimais de 10 a 15, preenchendo a lacuna deixada pelos 10 símbolos de um dígito decimal (0-9) em um sistema de 16 símbolos.
O hexadecimal diferencia maiúsculas de minúsculas?
Não, as letras hexadecimais não diferenciam maiúsculas de minúsculas em seu valor numérico. FF e ff são iguais ao decimal 255, e a maioria dos conversores aceita qualquer um dos casos ou uma combinação de ambos. Existe uma exceção no Ethereum, onde as somas de verificação de endereço codificam informações extras nas letras maiúsculas e minúsculas, portanto, alterar a caixa de um endereço Ethereum pode invalidar sua soma de verificação, mesmo que o valor subjacente permaneça o mesmo.
Quantos bytes existem em um valor hexadecimal?
Um valor hexadecimal contém 1 byte para cada 2 dígitos hexadecimais, pois cada dígito hexadecimal representa 4 bits e um byte contém 8 bits. Um valor de 2 caracteres como FF tem 1 byte, um valor de 4 caracteres como 1A3F tem 2 bytes e um valor de 64 caracteres, comum para hashes criptográficos, tem 32 bytes.
Can hex values contain spaces?
No, raw hex encoding does not include spaces as part of the data itself. Spaces or colons are sometimes added between byte pairs for readability, such as 48 65 6C 6C 6F or 48:65:6C:6C:6F. Most hex conversion tools strip these separators automatically before processing the value.
Quão grande pode ser um número hexadecimal?
Não há limite fixo para o tamanho de um número hexadecimal. Os aplicativos Blockchain geralmente usam valores de 32 bytes (256 bits) para hashes e valores de 20 bytes (160 bits) para endereços. Uma string hexadecimal de 32 bytes tem 64 caracteres e pode representar números de até aproximadamente 1,16 × 10⁷⁷ em decimal, o que requer aritmética de precisão arbitrária para converter sem erros de arredondamento.
Para que é usado o hexadecimal no blockchain?
Hexadecimal representa quase todos os dados brutos do blockchain, incluindo IDs de transação, hashes de bloco, chaves públicas, endereços, opcodes de script e dados de chamada de contrato inteligente. Hexadecimal mapeia diretamente para dados binários, com 2 caracteres hexadecimais iguais a 1 byte, o que mantém os dados do protocolo de baixo nível compactos e legíveis ao mesmo tempo.
Por que os exploradores de blockchain mostram dados em hexadecimal?
Os exploradores de blockchain mostram dados em hexadecimal porque o hexadecimal preserva a estrutura exata de bytes sem interpretação. Opcodes, bytes de versão, prefixos de endereço e saídas hash permanecem visíveis e verificáveis em hexadecimal. Decimal obscureceria a estrutura em nível de byte e binário ocuparia muito espaço para leitura.
Como posso solucionar uma conversão hexadecimal incorreta?
Verifique 5 fontes comuns de erro quando uma conversão hexadecimal parece errada: espaço em branco inicial ou final na entrada, um prefixo 0x não removido, ordem de bytes (endianness) incompatível entre leituras big-endian e little-endian, interpretação assinada versus não assinada dos mesmos bits e um zero inicial descartado que muda a posição de cada dígito. Comparar o valor com uma entrada conhecida na tabela de conversão, como FF igual a 255, isola qual destas 5 causas se aplica.