Developer utility · hex converter
Hex Converter
This hex converter handles numeric and text hexadecimal values. Convert between hex, binary, decimal, octal and UTF-8 text without sending your input to a server. It is designed for number-base work and byte inspection, not for choosing or validating CSS colors.
Up to 4,096 characters. No value is sent to a server.
Your conversion results will appear here.
Choose an input format, enter a value and select Convert to see binary, decimal, hex, octal and text results.
Use the tool
How to use this converter
- 1
Select Hex, Decimal, Binary or Text for the value you will enter.
- 2
Type a value such as 2A or 4869 and select Convert.
- 3
Copy a formatted result or the steps shown below it.
Understand the result
How it works
Hexadecimal is base 16, using 0–9 and A–F. One hex digit represents four binary bits, so two hex digits make one eight-bit byte. That makes values such as 4869 convenient to inspect as the bytes 48 and 69, which decode as H and i in UTF-8. This page handles numeric and text hex, not color picker or CSS HEX color conversion.
Practical notes
Why developers use hexadecimal
Hex is shorter than binary while preserving a direct relationship with it: each hex digit maps to exactly four bits. The byte 11111111 can therefore be written as FF, and a longer value can be split into readable pairs such as 48 69 21. This is common when inspecting byte dumps, identifiers, memory values or encoded payloads.
A leading `0x` is a notation that tells a reader or programming language “the following digits are hexadecimal.” RadixLab accepts `0x2A` as Hex input and returns the normalized uppercase value 2A. The output does not add a prefix so it can be copied into contexts that expect bare digits.
- One hex digit = four bits, also called a nibble.
- Two hex digits = one byte, from 00 through FF.
- A pair such as 48 69 is a byte sequence, not automatically a color or a word.
Practical notes
Choose the right hexadecimal conversion
Use this general hex converter when you need to compare several representations of the same value. For example, the numeric value 2A is 42 in decimal and 101010 in binary. When the same digits are grouped as bytes, 48 69 can be decoded as the UTF-8 text Hi.
A hexadecimal integer and a hexadecimal byte sequence are related but not identical tasks. CSS colors such as #FF0000 use a different format, so this tool keeps them out of the numeric and text results instead of guessing what the input means.
- Hex to decimal: 2A → 42.
- Hex to binary: 2A → 101010.
- Hex to text: 4869 → Hi when the bytes form valid UTF-8.
Practical notes
Hex numbers versus hex-encoded text
The same hex digits can be viewed as an integer or as bytes. 2A is the number 42 and also the UTF-8 byte for `*`; 4869 is the integer 18,537 and the byte sequence for `Hi`. The result panel shows both interpretations when possible, which helps you tell a numeric conversion from a text decoding task.
Not every byte sequence is valid UTF-8. For example, FF is a valid hexadecimal byte and still produces a clear invalid-text message instead of a replacement character. The numeric Binary, Decimal, Hex and Octal results remain available.
Quick reference
Examples
0x2A
42 · 101010
Prefix accepted · Decimal · Binary
4869
Hi
UTF-8 text
FF
255 · 11111111
Valid byte, not valid UTF-8 text
Common questions
FAQ
What is 2A in decimal?
2A in hexadecimal equals 42 in decimal, 101010 in binary and 52 in octal.
Can hex values include a 0x prefix?
Yes. A leading 0x is accepted for Hex input; spaces and line breaks are also ignored in numeric fields.
Is this a HEX color converter?
No. RadixLab converts numeric and UTF-8 text hexadecimal values. Color values such as #FF0000 are outside this V1 tool.
How many bits are represented by one hex digit?
One hexadecimal digit represents four bits. Two hexadecimal digits represent one eight-bit byte.
Why does 4869 decode to Hi?
The hex value separates into bytes 48 and 69. Those byte values correspond to H and i in UTF-8 and ASCII.
