Text to Hexadecimal Converter

Convert text into hexadecimal byte values and decode hex back into text. Useful for developers inspecting encodings, debugging data, or learning how characters map to bytes. Handles Unicode correctly and runs locally in your browser.

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 popular in computing because it is a compact, human-friendly way to write the byte values that make up data — each byte becomes exactly two hex digits. A text-to-hex converter turns each character of your text into its hex byte value, so "Hi" becomes 48 69. It is a staple tool for developers who need to see the raw bytes behind text.

How the conversion works

Each character has a numeric code. The converter writes that number in base 16, padded to two digits per byte. So the character H, with code 72, becomes 48 in hex; i, with code 105, becomes 69. Decoding reverses this: each pair of hex digits is read as a number and mapped back to its character. Because hex maps so cleanly to bytes — two hex digits per byte — it is the standard way programmers read and write binary data in a readable form.

Why developers use hex

Hex shows up constantly in programming. Color codes in web design are hex (the #FF5733 in your CSS is three hex bytes). Memory addresses, byte values in debuggers, hash outputs, and binary file contents are all displayed in hex because it is far more compact than binary and maps neatly to bytes. When you are inspecting data, debugging an encoding issue, or working with low-level formats, converting text to and from hex lets you see exactly what bytes you are dealing with.

Hex, bytes, and encoding

Because hex represents bytes, this tool connects directly to how text is encoded. Basic characters are one byte — two hex digits. Accented letters and emoji are multiple bytes under UTF-8, so they produce more hex pairs. Seeing this makes character encoding concrete: the byte count you see in hex is the same byte count that matters for database fields and length limits. Everything is computed locally in your browser, so your text is never uploaded.

Privacy: your text never leaves the browser

All processing happens locally, on your own device. Your text is never sent to servers, which makes the tool safe even for confidential content. When you close the tab, nothing remains stored.

Frequently asked questions

Why does each character become two hex digits?
Each byte is represented by exactly two hexadecimal digits, since two hex digits can express all 256 possible byte values. Basic characters are one byte, so they become one pair of hex digits; multi-byte characters like emoji become several pairs.
Can I decode hex back to text?
Yes. Paste space-separated hex pairs and use the decode option to convert them back to readable text. The tool handles the conversion in both directions.
Is this the same hex used for color codes?
It is the same hexadecimal number system. Web color codes like #FF5733 are three hex bytes representing red, green, and blue values. This tool converts text characters to their byte values in the same base-16 notation.
Does it handle Unicode characters?
Yes. Unicode characters are encoded as UTF-8 bytes and shown as hex, so accented letters and emoji work — they simply produce more hex pairs because they use more than one byte each.