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.
⚡ Попробуйте это вживую
—
—
—
What Is Шестнадцатеричный?
Шестнадцатеричный 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.
🔄 Число в каждой базе
—
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.
🔀 Пути конверсии
Шестнадцатеричный 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).
📐 Обозреватель значений мест
× 16² (256)
How to Use the Hex Converter
Type a hex value into the input field, then read the converted result in the output field. The converter accepts values with or without the 0x prefix, in uppercase or lowercase, and it typically ignores spaces or colons placed between byte pairs.
To convert decimal to hex, enter a whole number into the decimal field and the tool returns the hex equivalent. Switch the direction using the swap or format selector if the tool supports both directions in one interface. Copy the result with the copy button rather than selecting and retyping it, since manual retyping introduces errors on long hash values.
📋 Как это работает
Шаг 1
Выберите формат
Hex Conversion Formulas
Each conversion between hex and another format follows a fixed formula. The 6 formulas below cover the conversions people look up most.
Шестнадцатеричный to Десятичный 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.
Десятичный to Шестнадцатеричный 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. Десятичный 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.
Шестнадцатеричный to Двоичный Formula
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.
Двоичный to Шестнадцатеричный 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). Двоичный 1010101010 converts to hex 2AA.
Шестнадцатеричный 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.
Шестнадцатеричный 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.”
📐 Формула, краткая ссылка
Hex Conversion Examples
Hex A3 converts to decimal 163, since A (10) × 16¹ + 3 × 16⁰ = 160 + 3 = 163. Hex FF converts to decimal 255, since F (15) × 16¹ + F (15) × 16⁰ = 240 + 15 = 255. Hex 1D8A converts to decimal 7562, following the same digit-by-digit multiplication across 4 positions.
Десятичный 1500 converts to hex 5DC. Десятичный 255 converts to hex FF. Десятичный 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.
🧮 Пошаговый калькулятор
Шестнадцатеричный Conversion Methods
There are 2 core methods for converting between hex and decimal: digit expansion for hex-to-decimal, and repeated division for decimal-to-hex.
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.
🔬 Визуализатор метода
(Digit × 16^pos) + (Digit × 16^pos)…
Шестнадцатеричный vs Десятичный, Двоичный, and Octal
Шестнадцатеричный, decimal, binary, and octal differ in base and in how many digits each needs to represent the same value. Двоичный (base 2) uses 8 digits to represent one byte. Octal (base 8) uses 3 digits. Десятичный (base 10) uses 1 to 3 digits. Hex (base 16) uses exactly 2 digits.
Двоичный is the format processors operate on directly. Octal was common in early computing and now survives mainly in Unix file permission codes. Десятичный 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.
🎚️ Сравните системы счисления
What is the Десятичный 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.
Шестнадцатеричный 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.
Десятичный System
Десятичный is a base-10 positional number system. Each digit’s value depends on both the digit itself and its position in the number. The digit 5 in the number 500 represents 5 × 10², or 500. The same digit 5 in the number 50 represents 5 × 10¹, or 50.
Десятичный обрабатывает дробные значения с использованием десятичной точки, где цифры после точки представляют собой отрицательные степени 10 (десятые, сотые и т. д.).
Как перевести шестнадцатеричное число в десятичное
Умножьте каждую шестнадцатеричную цифру на 16, возведенную в ее положение, считая позиции справа налево, начиная с 0, затем сложите результаты. Шестнадцатеричное значение 2AA преобразуется в десятичное 682: (2 × 16²) + (10 × 16¹) + (10 × 16⁰) = 512 + 160 + 10 = 682.
Для длинных шестнадцатеричных строк, таких как криптографические хэши, этот расчет по-прежнему работает по цифрам, но полученное десятичное число быстро растет. Шестнадцатеричный хэш из 64 символов может дать десятичное число из 77 цифр.
⚙️ Живое цифровое расширение
Преобразование шестнадцатеричного значения в десятичное значение
Преобразование шестнадцатеричного значения в десятичное состоит из трех шагов: присвойте каждой цифре ее степень 16 в зависимости от позиции, умножьте каждую цифру на ее степень и суммируйте каждый результат.
Пример: шестнадцатеричное число 7DE преобразуется в десятичное число 2014. (7 × 16²) + (13 × 16¹) + (14 × 16⁰) = 1792 + 208 + 14 = 2014.
Преобразовать десятичное значение в шестнадцатеричное значение
Преобразование десятичного значения в шестнадцатеричное состоит из 4 шагов: разделите десятичное число на 16, запишите остаток в виде шестнадцатеричной цифры, используйте частное в качестве следующего числа для деления и повторяйте, пока частное не достигнет 0.
Пример: десятичное число 7562 преобразуется в шестнадцатеричное 1D8A. 7562 ÷ 16 = 472 остаток 10 (А). 472 ÷ 16 = 29, остаток 8 (8). 29 ÷ 16 = 1 остаток 13 (Д). 1 ÷ 16 = 0, остаток 1 (1). Чтение остатков от последнего к первому дает 1D8A.
Hex to Двоичный and Двоичный to Hex
Hex to binary conversion replaces each hex digit with its 4-bit binary equivalent, then joins the groups in order. Hex 2AA converts to binary 0010 1010 1010, since 2 is 0010, and A is 1010 in each of the remaining 2 positions.
Двоичный 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. Двоичный 1010101010 converts to hex 2AA, using the same grouped values in reverse.
Шестнадцатеричный в восьмеричный
Hex to octal conversion runs through binary as a middle step: convert the hex value to binary, regroup the binary digits into sets of 3 from the right, then convert each 3-digit group to its octal digit. Hex FF converts to octal 377: FF is binary 11111111, grouped as 011 111 111, which reads as 3, 7, 7.
Hex to Integer
Hex to integer conversion reads a hex value as either an unsigned or a signed integer, depending on the data type width. An unsigned 8-bit hex value ranges from 00 to FF, or 0 to 255 in decimal. A signed 8-bit hex value uses two’s complement, so 00 to 7F represents 0 to 127, while 80 to FF represents -128 to -1. Hex FF as an unsigned 8-bit integer equals 255, but as a signed 8-bit integer it equals -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.
Шестнадцатеричный 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.
Шестнадцатеричное вычитание
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.
Шестнадцатеричный 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 |
🔢 Шестнадцатеричная арифметика
(191)
Общие шестнадцатеричные значения
| Hex | Десятичный | Двоичный | 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 |
Эти 8 значений встречаются часто, поскольку они обозначают границы: 00 — это нулевой байт, 20 — символ пробела, разделяющий слова в ASCII, 41 — начало алфавита в верхнем регистре, 61 — начало алфавита в нижнем регистре, а FF обозначает высшее однобайтовое значение.
🗺️ ASCII Map Explorer
Шестнадцатеричный код в текст, ASCII и UTF-8
Преобразование шестнадцатеричного формата в текст разбивает шестнадцатеричную строку на пары двухсимвольных байтов, преобразует каждую пару в десятичное значение, а затем считывает эти байты как символы. Шестнадцатеричное число 48656C6C6F декодируется как «Hello», поскольку 48 — это H, 65 — это e, 6C — это l, 6C — это l, а 6F — это 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 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).
Шестнадцатеричное преобразование в 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.
Шестнадцатеричные преобразования цветов
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.
Шестнадцатеричный в RGB
Преобразование шестнадцатеричного цвета в RGB разбивает 6-значный шестнадцатеричный цвет на 3 пары, а затем преобразует каждую пару в десятичное значение. Hex FF5733 преобразуется в RGB(255, 87, 51), следуя порядку пар красного, зеленого и синего.
Шестнадцатеричный в 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
При преобразовании шестнадцатеричного формата в CMYK сначала извлекается RGB, затем преобразуются значения RGB в процентные значения голубого, пурпурного, желтого и ключевого (черного) для использования в печати. Значения CMYK являются субтрактивными, то есть описывают, сколько чернил поглощают света, тогда как значения RGB и шестнадцатеричные значения аддитивны и описывают, сколько света излучает экран.
Шестнадцатеричный код 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.
Шестнадцатеричный код в блокчейне
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.
Идентификаторы транзакций
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 использует однобайтовые коды операций, на которые указывают их шестнадцатеричные значения. Стандартный сценарий Pay-to-Public-Key-Hash читает 76 A9 14 [хэш] 88 AC в шестнадцатеричном формате, где 76 — это OP_DUP, A9 — это OP_HASH160, 88 — это OP_EQUALVERIFY, а AC — это OP_CHECKSIG.
Smart Contract Data
Вызовы смарт-контрактов Ethereum кодируются в виде шестнадцатеричных данных в поле ввода транзакции. Первые 4 байта образуют селектор функции, полученный из хеша Keccak-256 сигнатуры функции. Вызов Transfer() ERC-20 начинается с селектора 0xA9059CBB.
⛓️ Transaction Anatomy
01000000
01
7b1eabe0209b1fe794124575ef807057c77ada2138ae4fa8d6c4de0398a14f3f
00000000
494830450221008949…
ffffffff
Hover over fields to decode the raw hex transaction bytes.
Hex in Programming and Data
Шестнадцатеричный 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.
Шестнадцатеричный стандарт 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.
Конвертер шестнадцатеричного порядка байтов
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.
Шестнадцатеричный калькулятор XOR
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
Преобразование шестнадцатеричного кода в ассемблер, также называемое дизассемблированием, преобразует байты необработанного машинного кода обратно в читаемые ассемблерные инструкции для конкретной архитектуры процессора. Каждый шестнадцатеричный код операции соответствует одной мнемонике инструкции, например MOV, ADD или JMP, хотя точное сопоставление зависит от набора команд: x86, ARM или другой архитектуры.
Конвертер шестнадцатеричных дампов
Конвертер шестнадцатеричного дампа принимает двоичный файл и отображает его необработанные байты в шестнадцатеричном формате, обычно вместе со столбцом ASCII, показывающим печатаемый символ для каждого байта. Шестнадцатеричные дампы позволяют разработчикам проверять заголовки файлов, проверять подписи файлов и отлаживать двоичные данные без специального синтаксического анализатора для каждого типа файлов.
Шестнадцатеричный код в UUID
Преобразование шестнадцатеричного кода в UUID преобразует 32-значное (16-байтовое) шестнадцатеричное значение в стандартный шаблон UUID: 8-4-4-4-12 шестнадцатеричных цифр, разделенных дефисами, например 550E8400-E29B-41D4-A716-446655440000. UUID — это 128-битное значение, используемое для идентификации записей или объектов с почти нулевой вероятностью конфликта между системами.
Справочник по конвертации
| Hex | Десятичный | Двоичный | 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 | Десятичный | Двоичный | 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 | — |
Общие шестнадцатеричные значения в криптографии
| 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 |
Шестнадцатеричная система счисления против других систем счисления
| Property | Двоичный (Base-2) | Octal (Base-8) | Десятичный (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
Ознакомьтесь с нашими специализированными инструментами
Конвертер CMYK в HEX
Конвертер шестнадцатеричных дампов
Конвертер шестнадцатеричного порядка байтов
Шестнадцатеричный преобразователь IEEE 754
Шестнадцатеричный преобразователь знаков/беззнаков
Конвертер шестнадцатеричных кодов в ASCII
Конвертер шестнадцатеричных чисел в сборки
Конвертер шестнадцатеричного формата в Base64
Конвертер шестнадцатеричных чисел в BCD
Конвертер HEX в CMYK
Конвертер шестнадцатеричного формата в EBCDIC
Конвертер HEX в HSL
Конвертер HEX в HSV
Конвертер шестнадцатеричных адресов в IP-адреса
Конвертер шестнадцатеричных адресов в MAC-адреса
Конвертер HEX в OKLCH
Конвертер HEX в Pantone
Конвертер Hex в PCAP
Конвертер HEX в RAL
Конвертер HEX в RGB
Конвертер HEX в RGBA
Конвертер шестнадцатеричного формата в UF2
Конвертер шестнадцатеричных кодов в Юникод
Конвертер шестнадцатеричных кодов в UTF-8
Шестнадцатеричный конвертер UUID
Шестнадцатеричный калькулятор XOR
Конвертер HSL в HEX
Конвертер HSV в HEX
Конвертер RGB в HEX
Часто задаваемые вопросы
Что такое шестнадцатеричный?
Шестнадцатеричная система счисления представляет собой систему счисления с основанием 16, в которой используются 16 символов: цифры от 0 до 9 и буквы от A до F. Каждая шестнадцатеричная цифра представляет собой 4 двоичных цифры, поэтому 2 шестнадцатеричные цифры всегда равны 1 байту. Компьютеры используют шестнадцатеричный формат для отображения необработанных данных в короткой и читаемой форме.
Что такое шестнадцатеричный конвертер?
Шестнадцатеричный преобразователь — это инструмент, который переводит значение из шестнадцатеричного формата в другой числовой формат, например десятичный, двоичный, восьмеричный или текстовый. Вы вводите значение в одно поле, и инструмент возвращает эквивалентное значение в целевом формате за тот же шаг.
Как преобразовать шестнадцатеричное число в десятичное?
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?
Разделите десятичное число на 16, запишите остаток в виде шестнадцатеричной цифры, затем повторяйте деление частного, пока частное не достигнет 0. Чтение остатков в обратном порядке дает шестнадцатеричное значение. Десятичное число 1500 преобразуется в шестнадцатеричное число 5DC с использованием этого метода: 1500 ÷ 16 = остаток 93 12 (C), 93 ÷ 16 = остаток 5 13 (D), 5 ÷ 16 = остаток 0 5. Чтение остатков назад дает 5DC.
Как преобразовать шестнадцатеричный код в двоичный?
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.
Как преобразовать двоичный код в шестнадцатеричный?
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?
Разделите шестнадцатеричную строку на пары двухсимвольных байтов, преобразуйте каждую пару в десятичное значение, а затем считайте эти байты как символы, используя ASCII или UTF-8. Шестнадцатеричная строка 48 65 6C 6C 6F декодируется как «Hello», поскольку 48 — это H, 65 — это e, 6C — это l, 6C — это l, а 6F — это 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).
What is the difference between hex and binary?
Двоичный 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.
Что означает префикс 0x?
Префикс 0x отмечает значение как шестнадцатеричное, а не десятичное. Без него число «10» будет неоднозначным: между десятью (десятичными) и шестнадцатеричными (шестнадцатеричными). Префикс появился в языке программирования C и теперь встречается в большинстве языков программирования и протоколов блокчейна. Адреса Ethereum всегда имеют префикс 0x; Биткойн обычно этого не делает.
Могут ли шестнадцатеричные числа содержать буквы?
Да, шестнадцатеричные числа содержат 6 букв: A, B, C, D, E и F. Эти буквы представляют десятичные значения от 10 до 15, заполняя пробел, оставленный 10 однозначными символами десятичной дроби (0–9) в 16-символьной системе.
Шестнадцатеричное число чувствительно к регистру?
Нет, числовые значения шестнадцатеричных букв не чувствительны к регистру. FF и ff равны десятичному числу 255, и большинство преобразователей принимают любой регистр или их сочетание. Единственное исключение существует в Ethereum, где контрольные суммы адресов кодируют дополнительную информацию в буквенном регистре, поэтому изменение регистра адреса Ethereum может сделать его контрольную сумму недействительной, даже если базовое значение остается прежним.
Сколько байтов содержит шестнадцатеричное значение?
Шестнадцатеричное значение содержит 1 байт на каждые 2 шестнадцатеричные цифры, поскольку каждая шестнадцатеричная цифра представляет 4 бита, а байт содержит 8 бит. Двухсимвольное значение, например FF, составляет 1 байт, четырехзначное значение, например 1A3F, — 2 байта, а 64-значное значение, обычное для криптографических хешей, — 32 байта.
Могут ли шестнадцатеричные значения содержать пробелы?
Нет, необработанное шестнадцатеричное кодирование не включает пробелы как часть самих данных. Для удобства чтения между парами байтов иногда добавляются пробелы или двоеточия, например 48 65 6C 6C 6F или 48:65:6C:6C:6F. Большинство инструментов шестнадцатеричного преобразования автоматически удаляют эти разделители перед обработкой значения.
Насколько большим может быть шестнадцатеричное число?
Не существует фиксированного ограничения на размер шестнадцатеричного числа. Приложения блокчейна обычно используют 32-байтовые (256-битные) значения для хешей и 20-байтовые (160-битные) значения для адресов. 32-байтовая шестнадцатеричная строка имеет длину 64 символа и может представлять числа примерно до 1,16 × 10⁷⁷ в десятичном виде, что требует арифметики произвольной точности для преобразования без ошибок округления.
Для чего используется шестнадцатеричное число в блокчейне?
Шестнадцатеричный 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. Десятичный 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.