Convertidor hexadecimal

Este conversor hexadecimal puede convertir valores hexadecimales a texto decimal, binario, así como sumar, restar, multiplicar y dividir valores hexadecimales y decimales.

1

Elija el formato de entrada

2
0x

Ingrese cualquier número hexadecimal: cualquier longitud, los dígitos impares están bien.

Opciones avanzadas +
tipo de datos
Ancho de broca
Firmado
3

Resultados convertidos

hexadecimal base 16
Decimal base 10
Binario Base 2
Texto ASCII
bytes0
bits0

Un conversor hexadecimal es una herramienta que traduce valores entre sistemas numéricos hexadecimales, decimales, binarios y otros. Funciona leyendo cada dígito hexadecimal como una potencia de 16 y luego convierte ese valor al formato de destino que necesita. La herramienta ofrece 4 beneficios principales: conversión instantánea sin matemáticas manuales, manejo sin errores de valores grandes, soporte para múltiples formatos en un solo lugar y una vista clara de cómo los bytes se asignan a números legibles por humanos. La gente usa un convertidor hexadecimal para leer direcciones de memoria, decodificar códigos de color, inspeccionar datos de blockchain, depurar paquetes de red y traducir bytes sin procesar en texto. Las partes principales de un convertidor hexadecimal son el campo de entrada para el valor de origen, el campo de salida para el resultado convertido, un selector de formato para elegir entre hexadecimal, decimal, binario, octal o texto, y un botón de copiar para capturar el resultado.

¿Qué es un convertidor hexadecimal?

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.

Pruébalo en vivo

HEX

DEC

BIN

¿Qué es 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.

Un valor hexadecimal a menudo se escribe con un prefijo 0x, como 0xFF, para separarlo de un número decimal que utiliza los mismos dígitos.

🔄 Número en cada base

HEX

¿Qué se puede convertir con un convertidor hexadecimal?

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.

Cada tipo de conversión cumple una tarea diferente. Hex a decimal le ayuda a leer un valor bruto en términos familiares. Hex a binario muestra el patrón de bits exacto con el que trabaja un procesador. Hex a texto decodifica secuencias de bytes en caracteres legibles. Hex to RGB convierte un código de color de 6 caracteres en valores de canal rojo, verde y azul para trabajos de diseño.

🔀 Rutas de conversión

hexadecimal → Dec
Dec → hexadecimal
hexadecimal → Papelera
Papelera → hexadecimal
hexadecimal → Texto
hexadecimal → Octubre

hexadecimal Number System

El sistema numérico hexadecimal utiliza una base, o base, de 16. Cada posición en un número hexadecimal representa una potencia de 16, comenzando en 16⁰ a la derecha y aumentando en una potencia por cada posición que se mueve hacia la izquierda.

Un dígito hexadecimal puede contener 16 valores posibles (0-9, A-F), en comparación con 10 valores en decimal y 2 valores en binario. Esto le da a hexadecimal más densidad de información por carácter. Un solo dígito hexadecimal codifica 4 bits, por lo que 2 dígitos hexadecimales codifican un byte completo (8 bits) y 4 dígitos hexadecimales codifican 2 bytes (16 bits).

📐 Explorador de valor posicional

2

× 16² (256)

= 512

How to Use the Hex Converter

Escriba un valor hexadecimal en el campo de entrada y luego lea el resultado convertido en el campo de salida. El convertidor acepta valores con o sin el prefijo 0x, en mayúsculas o minúsculas, y normalmente ignora los espacios o dos puntos colocados entre pares de bytes.

Para convertir decimal a hexadecimal, ingrese un número entero en el campo decimal y la herramienta devolverá el equivalente hexadecimal. Cambie la dirección usando el selector de intercambio o formato si la herramienta admite ambas direcciones en una interfaz. Copie el resultado con el botón copiar en lugar de seleccionarlo y volver a escribirlo, ya que volver a escribirlo manualmente introduce errores en valores hash largos.

📋 Cómo funciona

🎯

Paso 1

Elija formato

Fórmulas de conversión hexadecimales

Cada conversión entre hexadecimal y otro formato sigue una fórmula fija. Las 6 fórmulas siguientes cubren las conversiones que más buscan las personas.

Fórmula hexadecimal a decimal

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.

Fórmula de decimal a hexadecimal

La fórmula de decimal a hexadecimal divide el número decimal por 16 repetidamente, registrando cada resto como un dígito hexadecimal, hasta que el cociente llega a 0. El decimal 419 se convierte a hexadecimal 1A3: 419 ÷ 16 = 26 resto 3, 26 ÷ 16 = 1 resto 10 (A), 1 ÷ 16 = 0 resto 1. Leer los restos en el reverso da 1A3.

Fórmula hexadecimal a binaria

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.

Binario to hexadecimal Formula

La fórmula de binario a hexadecimal agrupa los dígitos binarios en conjuntos de 4 comenzando desde la derecha, rellenando el grupo más a la izquierda con ceros cuando tiene menos de 4 dígitos, luego convierte cada grupo a su dígito hexadecimal: hex = concat(grupo de 4 bits → dígito). El binario 1010101010 se convierte a hexadecimal 2AA.

Fórmula hexadecimal a octal

La fórmula de hexadecimal a octal pasa por binario como paso intermedio: convierta cada dígito hexadecimal a binario de 4 bits, reagrupe la cadena binaria completa en conjuntos de 3 desde la derecha y luego convierta cada grupo de 3 dígitos a su dígito octal. Hex FF se convierte a octal 377, ya que FF es binario 11111111, agrupado como 011 111 111.

hexadecimal to Text Formula

The hexadecimal to text formula splits the hex string into 2-character byte pairs, converts each pair to its decimal value using the hex-to-decimal formula, then maps each decimal value to its character using the ASCII or UTF-8 table: text = map(decimal(byte) → character). Hex 48656C6C6F converts to the text “Hello.”

📐 Fórmula de referencia rápida

hexadecimal → Decimal
Σ (digit × 16n)
Decimal → Hex
n ÷ 16 → remainders ↑
hexadecimal → Papeleraary
each digit → 4-bit group
hexadecimal → Octubreal
hex → binary → group by 3

Ejemplos de conversión hexadecimal

Hex A3 se convierte a decimal 163, ya que A (10) × 16¹ + 3 × 16⁰ = 160 + 3 = 163. Hex FF se convierte a decimal 255, ya que F (15) × 16¹ + F (15) × 16⁰ = 240 + 15 = 255. Hex 1D8A se convierte a decimal 7562, siguiendo la misma multiplicación dígito por dígito en 4 posiciones.

El decimal 1500 se convierte en hexadecimal 5DC. El decimal 255 se convierte a hexadecimal FF. El decimal 4132 se convierte en hexadecimal 1024.

Hex 48656C6C6F se convierte al texto “Hola”, ya que cada par hexadecimal de 2 caracteres se asigna a un byte ASCII: 48 es H, 65 es e, 6C es l, 6C es l y 6F es o.

🧮 Calculadora paso a paso

Seleccione un ejemplo para ver los cálculos paso a paso.

hexadecimal Conversion Methods

Existen dos métodos principales para convertir entre hexadecimal y decimal: expansión de dígitos de hexadecimal a decimal y división repetida de decimal a hexadecimal.

Digit expansion multiplies each hex digit by its positional power of 16, then sums the results. Repeated division divides the decimal number by 16 over and over, recording the remainder at each step, then reads the remainders in reverse order to build the hex value.

🔬 Visualizador de métodos

(Digit × 16^pos) + (Digit × 16^pos)…

Example: 1A = (1 × 16¹) + (10 × 16⁰) = 16 + 10 = 26

hexadecimal frente a decimal, binario y octal

hexadecimal, decimal, binario y octal difieren en la base y en la cantidad de dígitos que cada uno necesita para representar el mismo valor. Binario (base 2) utiliza 8 dígitos para representar un byte. Octal (base 8) utiliza 3 dígitos. Decimal (base 10) utiliza de 1 a 3 dígitos. Hex (base 16) usa exactamente 2 dígitos.

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

🎚️ Comparar bases numéricas

Value: 170

What is the Decimal System?

The decimal system is a base-10 number system that uses 10 digits: 0 through 9. Each digit’s position represents a power of 10, starting at 10⁰ on the right.

The decimal system is the standard for daily arithmetic because humans count on 10 fingers. Computers don’t use decimal internally, so any decimal value entered into a system gets converted to binary or hex before processing.

🔟 Decimal vs Hex Density

Decimal (Base 10)
255
3 digits → 10 symbols each
hexadecimal (Base 16)
FF
2 digits → 16 symbols each

hexadecimal System (Hex System)

The hexadecimal system uses 16 symbols: 0-9 and A-F. Each digit represents a power of 16. The letters A through F stand for the decimal values 10 through 15.

Hex is used across computing because it aligns with byte boundaries. A single byte, made of 8 bits, converts cleanly to exactly 2 hex digits with no remainder or rounding. This clean mapping does not exist between bytes and decimal digits, which is why raw computer data is shown in hex rather than decimal.

🔠 The 16 Hex Symbols

0-9

Values 0-9

Decimal System

Decimal es un sistema numérico posicional de base 10. El valor de cada dígito depende tanto del dígito en sí como de su posición en el número. El dígito 5 en el número 500 representa 5 × 10², o 500. El mismo dígito 5 en el número 50 representa 5 × 10¹, o 50.

Decimal handles fractional values using a decimal point, where digits after the point represent negative powers of 10 (tenths, hundredths, and so on).

🔢 Valores de posición decimal

5
× 10²
500

How to Calculate hexadecimal to Decimal

Multiply each hex digit by 16 raised to its position, counting positions from right to left starting at 0, then add the results together. The hex value 2AA converts to 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.

⚙️ Expansión de dígitos en vivo

Escriba un valor hexadecimal arriba para verlo ampliado.

Convertir valor hexadecimal a valor decimal

La conversión de un valor hexadecimal a decimal sigue 3 pasos: asigne a cada dígito su potencia de 16 según la posición, multiplique cada dígito por su potencia y sume cada resultado.

Ejemplo: hexadecimal 7DE se convierte a decimal 2014. (7 × 16²) + (13 × 16¹) + (14 × 16⁰) = 1792 + 208 + 14 = 2014.

📝 Ejemplo: hexadecimal 7DE a decimal

7 × 16²= 7 × 256= 1792
D (13) × 16¹= 13 × 16= 208
E (14) × 16⁰= 14 × 1= 14
suma total= 2014

Convert Decimal Value to hexadecimal Value

La conversión de un valor decimal a hexadecimal sigue 4 pasos: dividir el número decimal entre 16, registrar el resto como un dígito hexadecimal, usar el cociente como el siguiente número para dividir y repetir hasta que el cociente llegue a 0.

Ejemplo: el decimal 7562 se convierte a 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). Leer los restos del último al primero da 1D8A.

Ejemplo: decimal 7562 a hexadecimal

7562 ÷ 16Cociente:472Resto:10 (A)
472 ÷ 16Cociente:29Resto:8
29 ÷ 16Cociente:1Resto:13 (D)
1 ÷ 16Cociente:0Resto:1
Leer hacia arriba ⬆️ : 1D8A

hexadecimal a binario y binario a hexadecimal

La conversión de hexadecimal a binario reemplaza cada dígito hexadecimal con su equivalente binario de 4 bits y luego une los grupos en orden. Hex 2AA se convierte a binario 0010 1010 1010, ya que 2 es 0010 y A es 1010 en cada una de las 2 posiciones restantes.

La conversión de binario a hexadecimal agrupa los dígitos binarios en conjuntos de 4 comenzando desde la derecha, rellenando el grupo más a la izquierda con ceros cuando tiene menos de 4 dígitos y luego convierte cada grupo a su dígito hexadecimal. El binario 1010101010 se convierte a hexadecimal 2AA, utilizando los mismos valores agrupados a la inversa.

🧩 Mapeador de mordiscos: Hex 2AA

2
dígito hexadecimal
A
dígito hexadecimal
A
dígito hexadecimal
↓ 4 bits cada uno ↓
0010
1010
1010

Resultado:0010 1010 1010

hexadecimal a octal

La conversión de hexadecimal a octal pasa por binario como paso intermedio: convierta el valor hexadecimal a binario, reagrupe los dígitos binarios en conjuntos de 3 desde la derecha y luego convierta cada grupo de 3 dígitos a su dígito octal. Hex FF se convierte a octal 377: FF es binario 11111111, agrupado como 011 111 111, que se lee como 3, 7, 7.

🔄 hexadecimal FF → Octal vía Binario

FF
↓ expandir a binario de 8 bits
1 1 1 1 1 1 1 1
↓ reagruparse en trozos de 3 bits
011
→ 3
111
→ 7
111
→ 7

Octal Resultado:377

hexadecimal a entero

La conversión de hexadecimal a entero lee un valor hexadecimal como un entero sin signo o con signo, según el ancho del tipo de datos. Un valor hexadecimal de 8 bits sin signo oscila entre 00 y FF, o entre 0 y 255 en decimal. Un valor hexadecimal de 8 bits con signo utiliza complemento a dos, por lo que de 00 a 7F representa de 0 a 127, mientras que de 80 a FF representa de -128 a -1. Hex FF como entero de 8 bits sin signo es igual a 255, pero como entero de 8 bits con signo es 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.

± Firmado vs sin firmar: 0xFF

8 bits sin firmar255
0255
8 bits firmados (complemento a dos)−1
−128127
Firmado de 16 bits255
−3276832767
Mismos bits, diferente interpretación.

Cálculo hexadecimal: sumar, restar, multiplicar o dividir

Hex arithmetic follows the same rules as decimal arithmetic, with 2 adjustments: digits above 9 use letters A through F, and carrying or borrowing moves in units of 16 rather than 10.

Hex Addition

Agregue dígitos hexadecimales de la misma manera que agrega dígitos decimales, convirtiendo letras a sus valores decimales cuando sea necesario, luego transfiera cualquier cantidad de 16 o más a la siguiente columna. Ejemplo: B (11) + 8 = 19 en decimal, lo que equivale a 13 en hexadecimal. Escriba 3, lleve 1 a la siguiente columna.

Hex Subtraction

Resta los dígitos hexadecimales columna por columna, tomando prestado 16 de la siguiente columna cuando el dígito superior es más pequeño que el dígito inferior. Ejemplo: en 5D1C − 3AF, la columna de la derecha necesita C (12) − F (15), que es negativa, por lo que la columna toma prestado 16 del siguiente dígito: 16 + 12 − 15 = 13, o D.

Multiplicación hexagonal

Multiplique dígitos hexadecimales usando sus equivalentes decimales, convierta cada producto parcial nuevamente a hexadecimal, luego sume los productos parciales siguiendo la suma hexadecimal normal. Una tabla de multiplicar hexadecimal elimina la necesidad de convertir en cada paso.

División hexagonal

Divida números hexadecimales mediante división larga, realizando cada paso de multiplicación y resta en hexadecimal en lugar de decimal. El préstamo durante la resta todavía se mueve en unidades de 16.

hexadecimal Multiplication Table

×123456789ABCDEF
1123456789ABCDEF
22468ACE10121416181A1C1E
3369CF1215181B1E2124272A2D
448C1014181C2024282C3034383C
55AF14191E23282D32373C41464B
66C12181E242A30363C42484E545A
77E151C232A31383F464D545B6269
881018202830384048505860687078
99121B242D363F48515A636C757E87
AA141E28323C46505A646E78828C96
BB16212C37424D58636E79848F9AA5
CC1824303C4854606C7884909CA8B4
DD1A2734414E5B6875828F9CA9B6C3
EE1C2A38465462707E8C9AA8B6C4D2
FF1E2D3C4B5A69788796A5B4C3D2E1

🔢 Aritmética hexadecimal

(163)
(28)
=
BF

(191)

Valores hexadecimales comunes

HexDecimalBinarioASCII
00000000000NUL
0A1000001010LF (newline)
203200100000Space
3048001100000
416501000001A
619701100001a
7F12701111111DEL
FF25511111111Extended byte

Estos 8 valores aparecen con frecuencia porque marcan límites: 00 es el byte nulo, 20 es el carácter de espacio que separa las palabras en ASCII, 41 inicia el alfabeto en mayúsculas, 61 inicia el alfabeto en minúsculas y FF marca el valor más alto de un solo byte.

🗺️ ASCII Map Explorer

00
09
0A
0D
20
30
39
41
46
5A
61
66
7A
7F

Hex to Text, ASCII, and UTF-8

Hex to text conversion splits the hex string into 2-character byte pairs, converts each pair to its decimal value, then reads those bytes as characters. Hex 48656C6C6F decodes to “Hello,” since 48 is H, 65 is e, 6C is l, 6C is l, and 6F is o.

Hex to ASCII follows the same byte-pair method, but ASCII only covers byte values 0 through 127, or 00 to 7F in hex. Hex to UTF-8 extends this for byte values above 7F, where the converter reads 2, 3, or 4 hex bytes together to decode a single character.

🗺️ ASCII Map Explorer

00
09
0A
0D
20
30
39
41
46
5A
61
66
7A
7F

Texto a hexadecimal

La conversión de texto a hexadecimal convierte cada carácter a su valor de byte utilizando su codificación de caracteres y luego escribe cada valor de byte como un par hexadecimal de 2 caracteres. El texto “Hola” se convierte a hexadecimal 4869, ya que H es igual al decimal 72 (hexadecimal 48) y i es igual al decimal 105 (hexadecimal 69).

✏️ Text → Hex: “Hi”

H
ASCII 72
i
ASCII 105
↓ decimal → hex ↓
48
69

Resultado:4869

Hex a Base64

La conversión de hexadecimal a Base64 reagrupa los bytes sin procesar que representa una cadena hexadecimal en conjuntos de 3 bytes (24 bits), divide cada grupo de 24 bits en cuatro segmentos de 6 bits y luego asigna cada segmento de 6 bits a uno de los 64 caracteres Base64 (A-Z, a-z, 0-9, +, /). Hex 48656C6C6F, que tiene 5 bytes, se convierte a Base64 SGVsbG8=, con relleno agregado cuando el recuento de bytes no se divide uniformemente entre 3.

🔗 Hex → Base64 Pipeline

48 65 6C 6C 6F
↓ hex pairs → raw bytes
72101108108111
↓ group into 3-byte (24-bit) chunks → split into 6-bit segments
010010000110010101
↓ map to Base64 alphabet
SGVsbG8=

Conversiones de colores hexadecimales

Un código de color hexadecimal es un valor hexadecimal de 6 caracteres que representa un color utilizando 2 dígitos cada uno para rojo, verde y azul. El código FF5733 representa un color rojo anaranjado: FF (255) rojo, 57 (87) verde y 33 (51) azul.

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.

Hex to 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.

🎨 Color Decomposer: #FF5733

FF
Red: 255
57
Green: 87
33
Blue: 51
HSL11°, 100%, 60%
HSV11°, 80%, 100%
CMYK0%, 66%, 80%, 0%

Hex in Blockchain

Blockchain systems store nearly all raw data in hex format. Transaction identifiers, block hashes, addresses, and smart contract data all use hex because it maps directly to the underlying bytes without losing structure.

Transaction IDs

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

A Bitcoin public key is 33 bytes in compressed form or 65 bytes uncompressed, shown in hex before conversion to Base58Check or Bech32 format. An Ethereum address is a 40-character hex string (20 bytes) with a 0x prefix.

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.

Smart Contract Data

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 in Programming and Data

hexadecimal shows up across 6 common programming and data tasks beyond basic number conversion: floating-point encoding, byte order handling, bitwise operations, machine code inspection, raw file analysis, and identifier generation.

Hex to IEEE 754

Hex to IEEE 754 conversion reads a hex value as a floating-point number using the IEEE 754 standard, which splits the bits into a sign bit, an exponent, and a mantissa. A 32-bit (single-precision) float uses 1 sign bit, 8 exponent bits, and 23 mantissa bits. The hex value 3F800000 converts to the floating-point value 1.0 under this standard.

Hex Endian Converter

A hex endian converter reverses the byte order of a hex value between big-endian and little-endian formats. Big-endian stores the most significant byte first; little-endian stores the least significant byte first. The 4-byte hex value 12345678 in big-endian becomes 78563412 in little-endian, since the byte sequence reverses while each byte’s own 2 digits keep their order.

Hex XOR Calculator

A hex XOR calculator applies the bitwise XOR operation to 2 hex values, comparing them bit by bit and returning 1 where the bits differ and 0 where they match. Hex FF XOR 0F equals F0, since every bit position where the 2 values disagree produces a 1.

Hex to Assembly

Hex to assembly conversion, also called disassembly, translates raw machine code bytes back into readable assembly instructions for a specific processor architecture. Each hex opcode maps to one instruction mnemonic, such as MOV, ADD, or JMP, though the exact mapping depends on the instruction set: x86, ARM, or another architecture.

Hex Dump Converter

A hex dump converter takes a binary file and displays its raw bytes in hex format, usually alongside an ASCII column showing the printable character for each byte. Hex dumps let developers inspect file headers, verify file signatures, and debug binary data without a specialized parser for every file type.

Hex to UUID

Hex to UUID conversion formats a 32-character (16-byte) hex value into the standard UUID pattern: 8-4-4-4-12 hex digits separated by hyphens, such as 550E8400-E29B-41D4-A716-446655440000. A UUID is a 128-bit value used to identify records or objects with a near-zero chance of collision across systems.

🖥️ Programming Data Formats

📊
IEEE 754
3F800000 → 1.0 (32-bit float)
🔀
Endian Swap
12345678 ⇄ 78563412
XOR Operation
FF ⊕ 0F → F0
⚙️
Assembly: 90 → NOP
Opcodes map to instructions
🔑
UUID Format
32 hex → 8-4-4-4-12

Conversion Reference

HexDecimalBinarioASCII
00000000000NUL
0A1000001010LF
3048001100000
416501000001A
619701100001a
7F12701111111DEL
FF25511111111

📚 ASCII Control Chars

HexDecimalBinarioASCII
00000000000NUL
0A1000001010LF
3048001100000
416501000001A
619701100001a
7F12701111111DEL
FF25511111111

Common Hex Values in Crypto

Hex ValueNameContext
0x76OP_DUPDuplicates the top stack item
0xA9OP_HASH160Applies SHA-256 then RIPEMD-160
0xACOP_CHECKSIGVerifies a signature
0x6AOP_RETURNMarks an output as unspendable
0x88OP_EQUALVERIFYChecks equality and verifies
0xAEOP_CHECKMULTISIGVerifies a multisig condition
0xA9059CBBtransfer(address,uint256)ERC-20 function selector
0x095EA7B3approve(address,uint256)ERC-20 function selector
0x70A08231balanceOf(address)ERC-20 function selector

🪙 Web3 & Bitcoin Ops

Hex ValueNameContext
0x76OP_DUPDuplicates the top stack item
0xA9OP_HASH160Applies SHA-256 then RIPEMD-160
0xACOP_CHECKSIGVerifies a signature
0x6AOP_RETURNMarks an output as unspendable
0x88OP_EQUALVERIFYChecks equality and verifies
0xAEOP_CHECKMULTISIGVerifies a multisig condition
0xA9059CBBtransfer(address,uint256)ERC-20 function selector
0x095EA7B3approve(address,uint256)ERC-20 function selector
0x70A08231balanceOf(address)ERC-20 function selector

Hex vs Other Number Systems

PropertyBinario (Base-2)Octal (Base-8)Decimal (Base-10)Hex (Base-16)
Digits used0, 10-70-90-9, A-F
Bits per digit13~3.324
One byte requires8 digits3 digits1-3 digits2 digits
Common prefix0b0oNone0x
255 expressed as11111111377255FF
Primary useLogic gates, bit flagsUnix permissionsEveryday arithmeticMemory, crypto, colors

📊 Base Comparison

HEX

2 chars

FF

Explore nuestras herramientas especializadas

Frequently Asked Questions

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.

What is a hex converter?

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.

How do I convert hex to 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.

TRY IT →

¿Cómo convierto decimal a hexadecimal?

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.

TRY IT →

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.

TRY IT →

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.

¿Cómo convierto hexadecimal a texto?

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.

TRY IT →

How do I convert hex to ASCII?

Convert hex to ASCII the same way as hex to text: split the hex string into byte pairs, convert each pair to decimal, then match that decimal value against the ASCII table. ASCII only covers byte values 0 through 127 (00 to 7F in hex), so any byte above 7F falls outside standard ASCII and needs UTF-8 decoding instead.

How do I convert hex to UTF-8?

For byte values 00 through 7F, hex to UTF-8 conversion works exactly like hex to ASCII, with 1 byte per character. For byte values above 7F, UTF-8 uses multi-byte sequences, so the converter reads 2, 3, or 4 hex bytes together to decode a single character correctly.

How do I convert text to hex?

Convert each character to its byte value using its character encoding, then write each byte value as a 2-character hex pair. The text “Hi” converts to hex 48 69, since H equals decimal 72 (hex 48) and i equals decimal 105 (hex 69).

TRY IT →

What is the difference between hex and binary?

Binario uses 2 symbols (0 and 1), while hex uses 16 symbols (0-9 and A-F). One hex digit always equals 4 binary digits, so hex represents the same data using a quarter of the characters. The byte 0xFF in hex is 11111111 in binary.

What does the 0x prefix mean?

The 0x prefix marks a value as hexadecimal rather than decimal. Without it, “10” is ambiguous between ten (decimal) and sixteen (hex). The prefix started in the C programming language and now appears across most programming languages and blockchain protocols. Ethereum addresses always carry the 0x prefix; Bitcoin usually does not.

Can hexadecimal numbers contain letters?

Yes, hexadecimal numbers contain 6 letters: A, B, C, D, E, and F. These letters represent the decimal values 10 through 15, filling the gap left by decimal’s 10 single-digit symbols (0-9) in a 16-symbol system.

Is hexadecimal case-sensitive?

No, hexadecimal letters are not case-sensitive for their numeric value. FF and ff both equal decimal 255, and most converters accept either case or a mix of both. One exception exists in Ethereum, where address checksums encode extra information in the letter casing, so changing the case of an Ethereum address can invalidate its checksum even though the underlying value stays the same.

How many bytes are in a hexadecimal value?

A hexadecimal value contains 1 byte for every 2 hex digits, since each hex digit represents 4 bits and a byte holds 8 bits. A 2-character value like FF is 1 byte, a 4-character value like 1A3F is 2 bytes, and a 64-character value, common for cryptographic hashes, is 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.

How large can a hex number be?

There is no fixed limit on the size of a hex number. Blockchain applications commonly use 32-byte (256-bit) values for hashes and 20-byte (160-bit) values for addresses. A 32-byte hex string runs 64 characters long and can represent numbers up to roughly 1.16 × 10⁷⁷ in decimal, which requires arbitrary-precision arithmetic to convert without rounding errors.

What is hexadecimal used for in blockchain?

hexadecimal represents nearly all raw blockchain data, including transaction IDs, block hashes, public keys, addresses, Script opcodes, and smart contract calldata. Hex maps directly to binary data, with 2 hex characters equal to 1 byte, which keeps low-level protocol data compact and readable at the same time.

Why do blockchain explorers show data in hex?

Blockchain explorers show data in hex because hex preserves the exact byte structure without interpretation. Opcodes, version bytes, address prefixes, and hash outputs stay visible and verifiable in hex. Decimal would obscure the byte-level structure, and binary would take up too much space to read.

How can I troubleshoot an incorrect hex conversion?

Check 5 common sources of error when a hex conversion looks wrong: leading or trailing whitespace in the input, an unremoved 0x prefix, byte order (endianness) mismatched between big-endian and little-endian reads, signed versus unsigned interpretation of the same bits, and a dropped leading zero that shifts every digit’s position. Comparing the value against a known conversion table entry, such as FF equaling 255, isolates which of these 5 causes applies.