belun.app Blog

Text to Hex Converter — Encode and Decode Hex Online

Type in either field — the other updates instantly.

Characters: 0
Bytes: 0

Type in the top field to see each character as its UTF-8 hexadecimal bytes, or paste hex in the bottom field to decode it back to text. Bytes are shown as space-separated pairs, and the decoder tolerates colons, commas, and 0x prefixes. Everything runs in your browser — nothing is sent to a server.

How it works

  1. 1
    Type or paste text Enter any text in the top field. Its hexadecimal representation appears below instantly — each byte is two hex digits, separated by spaces.
  2. 2
    Or paste hex to decode Work in reverse by pasting hex into the bottom field, for example 48 65 6c 6c 6f. Spaces, colons, commas, and 0x prefixes are cleaned up automatically before decoding.
  3. 3
    Copy the result Use the Copy button next to either field to send the result to your clipboard, ready to paste wherever you need it.

Your data stays private

All processing happens entirely in your browser. No files, text, or data are ever sent to our servers. You can disconnect from the internet and this tool will still work.

Frequently asked questions

How does text-to-hex conversion work?
Each character is encoded to one or more UTF-8 bytes, and each byte is written as a two-digit base-16 number. For example, 'H' is byte 72 in decimal, which is 48 in hexadecimal.
What encoding does the tool use?
UTF-8. Plain ASCII characters map to a single byte (0–7f), while accented letters, Cyrillic, emoji, and other symbols use two to four bytes. This matches how text is actually stored in files and sent over networks.
Why are some characters more than two hex digits?
Two hex digits encode one byte, and only ASCII fits in a single byte. Characters outside ASCII need multiple UTF-8 bytes, so 'é' becomes c3 a9 and '€' becomes e2 82 ac.
What hex formats can the decoder read?
Space-separated bytes (48 65), continuous strings (4865), colon or comma separators (48:65), and 0x prefixes all work. The decoder strips the formatting and reads the raw hex digits.
What happens if the hex is invalid?
If the cleaned input contains non-hex characters or an odd number of digits, it can't form whole bytes, so the field is flagged and the text isn't updated. Fix the input to two-digit byte pairs and it decodes again.

From the blog

Text to Hex: How Hexadecimal Encoding Works and When You Need It What hex bytes are, how UTF-8 maps characters to hexadecimal, and where you'll run into it — from colors to hex dumps to debugging. Read the post →

Related tools