Hex Translator
Convert text to hex and back (UTF-8), hex to RGB, and hex to decimal — every conversion runs locally in your browser.
Paste text and get per-byte hexadecimal — "Hi" becomes 48 69 — or paste hex and recover the text. Two companion converters handle hex ↔ RGB for CSS colors and hex ↔ decimal or binary for raw values.Hex is just base 16 shorthand for bytes: two hex digits represent exactly one byte (0–255), which is why color codes like #0F766E split cleanly into three pairs for red, green, and blue.
Hexadecimal
Text
Hex ↔ RGB color
Hex → Decimal / Binary
Frequently asked questions
Why two hex digits per character?
One byte holds 256 values (0–255), and 16 squared is 256. Each character in UTF-8 takes one to four bytes, so multi-byte characters show as two, six, eight… hex pairs.
What is #RRGGBB format?
A CSS color written as three byte pairs: #FF0000 is pure red, #00FF00 pure green, #0000FF pure blue. #0F766E — this site’s teal — is R15 G118 B110.
How do I convert hex to decimal?
Each position is a power of 16: hex 48 = 4×16 + 8 = 72 in decimal. The converter does this exactly for values of any size using BigInt.
Does lowercase hex matter?
No. 0f766e and 0F766E are the same value. The converter accepts both and normalizes output to uppercase.