How to use the converter
- Type or paste your text into the box.
- Click Text to Hex to get the hexadecimal bytes, or paste hex bytes and click Hex to Text to read them as text.
- Use the checkbox to include or remove spaces between the hex bytes.
- The result appears below, ready to copy.
What hexadecimal is
Hexadecimal, or hex, is a base-16 number system that uses the digits 0-9 and the letters A-F. It is a compact way to write binary data — every byte (eight bits) fits in exactly two hex characters, so the decimal number 255 becomes FF. Because it is so compact and unambiguous, hex is used everywhere from memory dumps and color codes to checksums and network protocols.
How text becomes hex
Computers store characters as numbers. When you convert text to hex, each character is first encoded into one or more bytes using UTF-8, then each byte is written as its two-digit hex value. A capital A is byte 65, which is hex 41. The word "Hi" becomes the four bytes 48 69. Characters outside plain ASCII — accented letters, non-Latin scripts, emoji — use several bytes each, and this tool handles those correctly because it works on real UTF-8 bytes rather than just the first 256 characters.
Decoding hex back to text
To decode, the tool strips spaces, newlines and any 0x prefixes, then groups the remaining digits into pairs. Each pair is read as one byte, the bytes are reassembled in order, and the sequence is decoded as UTF-8 text. If the input has an odd number of digits or contains characters that are not valid hex, the tool tells you instead of producing garbage.
Common uses
- Inspecting the raw bytes of a string when debugging a program.
- Reading color codes, checksums or hashes stored as hex.
- Preparing data for formats or protocols that require hex representation.
- Learning how text is actually represented inside a computer.
