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.
⚡ Essayez-le en direct
—
—
—
What Is Hexadécimal?
L’hexadécimal est un système numérique en base 16. Il utilise 16 symboles : les chiffres de 0 à 9 et les lettres de A à F. Les lettres remplacent les valeurs de 10 à 15, car le système décimal n’a que 10 symboles à un chiffre avec lesquels travailler.
Les ordinateurs stockent les données en bits et 8 bits forment un octet. L’écriture d’un octet en binaire prend 8 caractères. L’écriture du même octet en hexadécimal prend 2 caractères, car chaque chiffre hexadécimal couvre exactement 4 bits (un quartet). C’est pourquoi l’hexadécimal apparaît partout où les programmeurs ont besoin de lire des données binaires sans regarder de longues chaînes de 1 et de 0 : adresses mémoire, codes de couleur, valeurs de hachage et en-têtes de fichiers.
Une valeur hexadécimale est souvent écrite avec un préfixe 0x, tel que 0xFF, pour la séparer d’un nombre décimal qui utilise les mêmes chiffres.
🔄 Nombre dans chaque 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.
Chaque type de conversion remplit une tâche différente. Hex en décimal vous aide à lire une valeur brute en termes familiers. Hex vers binaire montre le modèle de bits exact avec lequel un processeur fonctionne. Hex to Text décode les séquences d’octets en caractères lisibles. Hex to RGB transforme un code couleur à 6 caractères en valeurs de canal rouge, vert et bleu pour le travail de conception.
🔀 Voies de conversion
Système de nombres hexadécimaux
Le système de nombres hexadécimaux utilise une base de 16. Chaque position dans un nombre hexadécimal représente une puissance de 16, commençant à 16⁰ à droite et augmentant d’une puissance pour chaque position déplacée vers la gauche.
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).
📐 Explorateur de valeurs de position
× 16² (256)
Comment utiliser le convertisseur hexadécimal
Tapez une valeur hexadécimale dans le champ de saisie, puis lisez le résultat converti dans le champ de sortie. Le convertisseur accepte les valeurs avec ou sans le préfixe 0x, en majuscules ou minuscules, et ignore généralement les espaces ou les deux-points placés entre les paires d’octets.
Pour convertir un nombre décimal en hexadécimal, entrez un nombre entier dans le champ décimal et l’outil renvoie l’équivalent hexadécimal. Changez la direction à l’aide du sélecteur d’échange ou de format si l’outil prend en charge les deux directions dans une seule interface. Copiez le résultat avec le bouton Copier plutôt que de le sélectionner et de le retaper, car la retape manuelle introduit des erreurs sur les valeurs de hachage longues.
📋 Comment ça marche
Étape 1
Choisir le format
Formules de conversion hexadécimale
Chaque conversion entre hexadécimal et un autre format suit une formule fixe. Les 6 formules ci-dessous couvrent les conversions les plus recherchées.
Hexadécimal to Décimal Formula
La formule hexadécimale en décimale est décimale = Σ (chiffre × 16ⁿ), additionnée sur chaque chiffre, où n est la position du chiffre comptée de droite à gauche en commençant à 0. Hex 1A3 se convertit en décimal 419 : (1 × 16²) + (10 × 16¹) + (3 × 16⁰) = 256 + 160 + 3 = 419.
Formule décimale à hexadécimale
The decimal to hexadecimal formula divides the decimal number by 16 repeatedly, recording each remainder as a hex digit, until the quotient reaches 0. Décimal 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.
Formule hexadécimale en binaire
La formule hexadécimale en binaire remplace chaque chiffre hexadécimal par son équivalent binaire 4 bits, puis rejoint les groupes dans l’ordre : binaire = concat(chiffre → binaire 4 bits), appliqué chiffre par chiffre. Hex 2AA se convertit en binaire 0010 1010 1010, puisque 2 vaut 0010 et A vaut 1010 dans chaque position restante.
Binaire to Hexadécimal 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). Binaire 1010101010 converts to hex 2AA.
Formule hexadécimale à octale
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.
Hexadécimal to Text Formula
La formule hexadécimale en texte divise la chaîne hexadécimale en paires d’octets de 2 caractères, convertit chaque paire en sa valeur décimale à l’aide de la formule hexadécimale en décimale, puis mappe chaque valeur décimale à son caractère à l’aide de la table ASCII ou UTF-8 : texte = map (décimal (octet) → caractère). L’hexagone 48656C6C6F est converti en texte « Bonjour ».
📐 Formule de référence rapide
Hex Conversion Examples
L’hexagone A3 est converti en décimal 163, puisque A (10) × 16¹ + 3 × 16⁰ = 160 + 3 = 163. L’hexagone FF est converti en décimal 255, puisque F (15) × 16¹ + F (15) × 16⁰ = 240 + 15 = 255. L’hexagone 1D8A est converti en décimal 7562, en suivant la même multiplication chiffre par chiffre sur 4 positions.
Le nombre décimal 1500 est converti en hexadécimal 5DC. Le nombre décimal 255 est converti en hexadécimal FF. Le nombre décimal 4132 est converti en hexadécimal 1024.
L’hexadécimal 48656C6C6F est converti en texte “Bonjour”, puisque chaque paire hexadécimale de 2 caractères correspond à un octet ASCII : 48 est H, 65 est e, 6C est l, 6C est l et 6F est o.
🧮 Calculateur étape par étape
Méthodes de conversion hexadécimale
Il existe 2 méthodes principales pour la conversion entre hexadécimal et décimal : l’expansion des chiffres pour le mode hexadécimal en décimal et la division répétée pour le mode décimal en hexadécimal.
L’expansion des chiffres multiplie chaque chiffre hexadécimal par sa puissance de position de 16, puis additionne les résultats. Une division répétée divise le nombre décimal par 16 encore et encore, en enregistrant le reste à chaque étape, puis lit les restes dans l’ordre inverse pour construire la valeur hexadécimale.
🔬 Visualiseur de méthodes
(Digit × 16^pos) + (Digit × 16^pos)…
Hexadécimal vs Décimal, Binaire, and Octal
Les valeurs hexadécimales, décimales, binaires et octales diffèrent par leur base et le nombre de chiffres dont chacun a besoin pour représenter la même valeur. Le binaire (base 2) utilise 8 chiffres pour représenter un octet. Octal (base 8) utilise 3 chiffres. Le nombre décimal (base 10) utilise 1 à 3 chiffres. Hex (base 16) utilise exactement 2 chiffres.
Le binaire est le format sur lequel les processeurs opèrent directement. Octal était courant au début de l’informatique et survit désormais principalement dans les codes d’autorisation de fichiers Unix. Le nombre décimal est le système que les gens utilisent pour l’arithmétique quotidienne. Hex équilibre la compacité avec un mappage direct vers le binaire, c’est pourquoi il domine dans l’adressage mémoire, les codes de couleur et la sortie cryptographique.
🎚️ Comparer les bases numériques
What is the Décimal 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.
Le système décimal est la norme pour l’arithmétique quotidienne car les humains comptent sur 10 doigts. Les ordinateurs n’utilisent pas la décimale en interne, donc toute valeur décimale entrée dans un système est convertie en binaire ou en hexadécimal avant d’être traitée.
Système hexadécimal (système hexadécimal)
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 est utilisé dans l’informatique car il s’aligne sur les limites d’octets. Un seul octet, composé de 8 bits, se convertit proprement en exactement 2 chiffres hexadécimaux sans reste ni arrondi. Ce mappage clair n’existe pas entre les octets et les chiffres décimaux, c’est pourquoi les données informatiques brutes sont affichées en hexadécimal plutôt qu’en décimal.
Système décimal
Décimal est un système de numérotation positionnelle en base 10. La valeur de chaque chiffre dépend à la fois du chiffre lui-même et de sa position dans le nombre. Le chiffre 5 du nombre 500 représente 5 × 10², soit 500. Le même chiffre 5 du nombre 50 représente 5 × 10¹, soit 50.
Décimal gère les valeurs fractionnaires à l’aide d’un point décimal, où les chiffres après le point représentent des puissances négatives de 10 (dixièmes, centièmes, etc.).
Comment calculer hexadécimal en décimal
Multipliez chaque chiffre hexadécimal par 16 élevé à sa position, en comptant les positions de droite à gauche en commençant à 0, puis additionnez les résultats. La valeur hexadécimale 2AA est convertie en décimal 682 : (2 × 16²) + (10 × 16¹) + (10 × 16⁰) = 512 + 160 + 10 = 682.
Pour les longues chaînes hexadécimales telles que les hachages cryptographiques, ce calcul fonctionne toujours chiffre par chiffre, mais le nombre décimal résultant augmente rapidement. Un hachage hexadécimal de 64 caractères peut produire un nombre décimal de 77 chiffres.
⚙️ Expansion des chiffres en direct
Convertir une valeur hexadécimale en valeur décimale
La conversion d’une valeur hexadécimale en décimale suit 3 étapes : attribuez à chaque chiffre sa puissance de 16 en fonction de la position, multipliez chaque chiffre par sa puissance et additionnez chaque résultat.
Exemple : l’hexagone 7DE est converti en décimal 2014. (7 × 16²) + (13 × 16¹) + (14 × 16⁰) = 1792 + 208 + 14 = 2014.
Convertir une valeur décimale en valeur hexadécimale
La conversion d’une valeur décimale en hexadécimal suit 4 étapes : divisez le nombre décimal par 16, enregistrez le reste sous forme de chiffre hexadécimal, utilisez le quotient comme prochain nombre à diviser et répétez jusqu’à ce que le quotient atteigne 0.
Exemple : le nombre décimal 7562 est converti en hexadécimal 1D8A. 7562 ÷ 16 = 472 reste 10 (A). 472 ÷ 16 = 29 reste 8 (8). 29 ÷ 16 = 1 reste 13 (D). 1 ÷ 16 = 0 reste 1 (1). La lecture des restes du dernier au premier donne 1D8A.
Hex vers binaire et binaire vers Hex
La conversion hexadécimale en binaire remplace chaque chiffre hexadécimal par son équivalent binaire 4 bits, puis rejoint les groupes dans l’ordre. Hex 2AA se convertit en binaire 0010 1010 1010, puisque 2 est 0010 et A est 1010 dans chacune des 2 positions restantes.
La conversion binaire en hexadécimal regroupe les chiffres binaires en ensembles de 4 en commençant par la droite, en complétant le groupe le plus à gauche avec des zéros lorsqu’il a moins de 4 chiffres, puis convertit chaque groupe en son chiffre hexadécimal. Le binaire 1010101010 est converti en hexadécimal 2AA, en utilisant les mêmes valeurs groupées à l’envers.
Hex à Octal
La conversion hexadécimale en octal passe par le binaire comme étape intermédiaire : convertissez la valeur hexadécimale en binaire, regroupez les chiffres binaires en ensembles de 3 à partir de la droite, puis convertissez chaque groupe de 3 chiffres en son chiffre octal. Hex FF se convertit en octal 377 : FF est binaire 11111111, regroupé sous la forme 011 111 111, qui se lit comme 3, 7, 7.
Hex en entier
La conversion hexadécimale en entier lit une valeur hexadécimale sous la forme d’un entier non signé ou signé, en fonction de la largeur du type de données. Une valeur hexadécimale non signée de 8 bits va de 00 à FF, ou de 0 à 255 en décimal. Une valeur hexadécimale signée de 8 bits utilise le complément à deux, donc 00 à 7F représente 0 à 127, tandis que 80 à FF représente -128 à -1. Hex FF en tant qu’entier non signé de 8 bits est égal à 255, mais en tant qu’entier signé de 8 bits, il est égal à -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.
Hexadécimal Calculation—Add, Subtract, Multiply, or Divide
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
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.
Hex Subtraction
Subtract hex digits column by column, borrowing 16 from the next column when the top digit is smaller than the bottom digit. Example: in 5D1C − 3AF, the rightmost column needs C (12) − F (15), which is negative, so the column borrows 16 from the next digit: 16 + 12 − 15 = 13, or D.
Hex Multiplication
Multiply hex digits using their decimal equivalents, convert each partial product back to hex, then add the partial products together following normal hex addition. A hexadecimal multiplication table removes the need to convert on every step.
Hex Division
Divide hex numbers using long division, performing each multiplication and subtraction step in hex rather than decimal. Borrowing during subtraction still moves in units of 16.
Hexadécimal 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 |
🔢 Arithmétique hexadécimale
(191)
Common Hexadécimal Values
| Hex | Décimal | Binaire | 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 |
Ces 8 valeurs apparaissent souvent car elles marquent les limites : 00 est l’octet nul, 20 est le caractère espace qui sépare les mots en ASCII, 41 commence l’alphabet majuscule, 61 commence l’alphabet minuscule et FF marque la valeur la plus élevée sur un octet.
🗺️ ASCII Map Explorer
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
Text to Hex
Text to hex conversion converts each character to its byte value using its character encoding, then writes each byte value as a 2-character hex pair. Text “Hi” converts to hex 4869, since H equals decimal 72 (hex 48) and i equals 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.
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.
Hex dans la 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.
ID de transaction
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
Hexadécimal 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.
Référence de conversion
| Hex | Décimal | Binaire | 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 | Décimal | Binaire | 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 | — |
Valeurs hexadécimales courantes dans la cryptographie
| 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 vs Other Number Systems
| Property | Binaire (Base-2) | Octal (Base-8) | Décimal (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
Explorez nos outils spécialisés
Convertisseur CMJN en HEX
Convertisseur de vidage hexadécimal
Convertisseur hexadécimal endian
Convertisseur hexadécimal IEEE 754
Convertisseur hexadécimal signé/non signé
Convertisseur hexadécimal en ASCII
Convertisseur hexadécimal en assemblage
Convertisseur hexadécimal en Base64
Convertisseur hexadécimal en BCD
Convertisseur HEX en CMJN
Convertisseur hexadécimal en EBCDIC
Convertisseur HEX en HSL
Convertisseur HEX en HSV
Convertisseur d'adresse hexadécimal en IP
Convertisseur d'adresses hexadécimales en MAC
Convertisseur HEX en OKLCH
Convertisseur HEX en Pantone
Convertisseur hexadécimal en PCAP
Convertisseur HEX en RAL
Convertisseur HEX en RVB
Convertisseur HEX en RGBA
Convertisseur hexadécimal en UF2
Convertisseur hexadécimal en Unicode
Convertisseur hexadécimal en UTF-8
Convertisseur UUID hexadécimal
Calculateur hexadécimal XOR
Convertisseur HSL en HEX
Convertisseur HSV en HEX
Convertisseur RVB en HEX
Frequently Asked Questions
What is hexadecimal?
Hexadécimal 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.
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. Décimal 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.
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).
Quelle est la différence entre hexadécimal et binaire ?
Binaire 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.
L’hexadécimal est-il sensible à la casse ?
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.
Combien d’octets contient une valeur hexadécimale ?
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?
L’hexadécimal représente presque toutes les données brutes de la blockchain, y compris les identifiants de transaction, les hachages de blocs, les clés publiques, les adresses, les opcodes de script et les données d’appel de contrats intelligents. Hex correspond directement aux données binaires, avec 2 caractères hexadécimaux égaux à 1 octet, ce qui maintient les données de protocole de bas niveau compactes et lisibles en même temps.
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. Décimal 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.