Hex Text Converter
What the hex is showing you
Computers do not store characters; they store bytes, and hexadecimal is simply base 16 — a compact way to write a byte as two digits, 00 to FF, using A–F for the values ten to fifteen. This converter encodes your text as UTF-8, the encoding the web runs on, and writes each resulting byte in hex. For plain English the mapping looks like the ASCII table from a textbook — H = 0x48, e = 0x65, l = 0x6C, o = 0x6F, space = 0x20 — because UTF-8 deliberately keeps the first 128 characters identical to ASCII, one byte each. The moment text leaves that range, UTF-8’s design shows: é becomes two bytes (C3 A9), an Arabic or Chinese character takes three, and an emoji takes four (a grinning face is F0 9F 98 80). That is why the byte count in the result line, not the character count, is what protocols, file formats and buffers actually care about — and why “it’s only 10 characters” can be 40 bytes on the wire.
Decoding is deliberately forgiving, because real-world hex arrives in every house style: with spaces between bytes, with none, upper or lower case, or with a 0x prefix on each byte (the C and debugger style). The converter strips the decoration, then reads pairs of hex digits back into bytes and decodes the bytes as UTF-8. Genuinely malformed input — an odd number of hex digits, a character that is not a hex digit, or bytes that do not form valid UTF-8 — is reported as an error with the problem named, rather than producing the silent mojibake that a naive byte-to-character conversion would print. That strictness matters: a great deal of corrupted-text debugging is exactly the moment someone decoded UTF-8 bytes as if each byte were a character.
Where you will actually meet hex
Colour codes are the friendliest example — a CSS colour like #2E7D5B is three hex bytes for red, green and blue, and the Colour Converter on this site works in the same numbers. Beyond that: cryptographic hashes and checksums are conventionally printed in hex (an MD5 digest is 16 bytes shown as 32 hex digits); MAC addresses and IPv6 groups are hex; hex editors and packet captures present file and network contents this way when you are hunting a bad byte; embedded and firmware work speaks in hex dumps; and percent-encoding in URLs is hex with a % sign — %20 is byte 0x20, the space. The neighbouring tools complete the set: the Binary Text Converter for base 2, the Base64 tool for the encoding email and data URIs use, and the Unicode Converter for code points (the abstract character numbers, which are not the same thing as UTF-8 bytes — é is code point U+00E9 but bytes C3 A9, a distinction this page’s two-byte output makes concrete).
A worked example
The default input, “Hello”, encodes to 48 65 6c 6c 6f — five characters, five bytes, each one its ASCII value in hex. Type “café” and the output is 63 61 66 c3 a9: four characters, five bytes, the é wearing its two-byte UTF-8 form. And the grinning emoji from the section above is a single character that occupies four bytes, f0 9f 98 80 — paste any of these strings into the Hex → Text direction and you get the original text back, because encode and decode here are exact inverses, verified on these very examples before the page was written.
Frequently asked questions
Why does one character sometimes become several hex pairs?
Because the converter encodes UTF-8, and UTF-8 uses a variable number of bytes per character: one byte for the original ASCII range (English letters, digits, common punctuation), two for most accented Latin, Greek, Cyrillic, Hebrew and Arabic characters, three for most Chinese, Japanese, Korean and Indic characters, and four for emoji and rare scripts. Each hex pair is one byte, so a four-byte emoji is four pairs. The result line tells you both counts — characters in, bytes out — so the expansion is never a surprise.
What hex formats can the decoder read?
All the common house styles: bytes separated by spaces, a continuous string with no separators, upper or lower case (or mixed), and 0x-prefixed bytes such as 0x48 0x65. Whitespace including newlines is ignored, so a hex dump copied from a debugger or a forum post usually pastes straight in. What it will not do is guess: an odd number of hex digits or a non-hex character produces an error message naming the problem, and bytes that are not valid UTF-8 are reported rather than decoded into garbage.
Is hex the same as Base64?
No — they solve different problems. Hex represents each byte as two characters, doubling the size, and its purpose is human readability of raw bytes: debugging, hashes, addresses, dumps. Base64 packs three bytes into four characters (a 33% overhead) and exists to carry binary data through text-only channels like email. If you are reading a hash or a MAC address you want hex; if you are embedding an image in a data URI you want Base64 — and this site has a dedicated tool for that next to this one.
What is the difference between a code point and a UTF-8 byte?
A code point is a character’s abstract number in the Unicode catalogue — é is U+00E9, the grinning emoji is U+1F600. A UTF-8 byte sequence is how that number is stored: UTF-8 encodes U+00E9 as the two bytes C3 A9, and U+1F600 as F0 9F 98 80. This converter works at the storage level, which is what files, protocols and memory contain. For the catalogue level — looking up code points, character names and escapes — use the Unicode Converter on this site; the two tools are designed to be read together.
Is my text uploaded anywhere?
No. Encoding and decoding run entirely in your browser with its built-in text encoding functions; nothing you type is sent to a server, logged or stored, and the page works offline. That is the right design for a tool people paste hashes, keys fragments and packet captures into — even when the content is innocuous, a converter has no business seeing it. The network monitor in your browser’s developer tools will confirm that converting makes no requests.
Related tools
Encoding behaviour matches the UTF-8 standard (RFC 3629), checked on 24 November 2026. Everything runs in your browser — nothing you type is sent anywhere.