Hex to Text & Text to Hex Converter
Translate UTF-8 text to hexadecimal bytes and inspect hex dumps from protocols, memory, and CTF puzzles.
- Aucune limite de longueur
- Sans inscription
- Gratuit pour toujours
- Votre texte ne quitte jamais votre navigateur
Understanding Hexadecimal in Computing
Hexadecimal is base 16: the digits 0–9 continue with A–F for the values ten through fifteen. Developers favor it because 16 is a power of two, which makes hex a compact shorthand for raw bytes — one hex digit maps exactly to four bits, so two hex digits represent one byte. Where binary output reads as long runs of 0s and 1s, the same bytes stay short and readable in hex: the ASCII letter “A” is 01000001 in binary but simply 41 in hex.
Text conversion happens through those bytes. Encoding takes UTF-8 text and writes each byte as two hex digits — 48 65 6C 6C 6F for “Hello”, C3 A9 for “é” — with optional grouping to keep the pairs aligned. Decoding runs the other way: it reads the hex pairs as UTF-8 bytes and reconstructs the original text, which is how you turn a hex dump back into something readable.
Common Use Cases for Hex
Hex is the everyday language of low-level inspection. Web colors are hex triplets (#FF0000 is red), MAC addresses and IPv6 addresses are conventionally written in hex, and file types are recognized by their magic numbers — PDF files start with %PDF and PNG files with the bytes 89 50 4E 47. Packet captures, memory dumps, binary logs, and protocol debugging all print values in hex because it is the most compact form in which a human can still recognize byte patterns.
The workflow for an unknown hex string is usually decode-first: if the pairs might represent text, convert them back to UTF-8 and read the result. If the bytes came from a binary file or protocol, keep them in hex and look for readable ASCII runs embedded in the dump. Both directions are available here, with grouping controls that keep the output aligned when you are comparing bytes by hand.
Questions fréquentes
How do I convert hex to decimal?
Each hex digit is worth 16 raised to its position counting from the right, starting at zero, so 2F is (2 × 16) + 15 = 47 and FF is (15 × 16) + 15 = 255. For a one-off value, parseInt("2F", 16) in JavaScript, int("2F", 16) in Python, or a calculator in programmer mode gives the answer instantly. A hex string that represents text is a different case: decode the byte pairs first (48 65 becomes “He”) and then work with the characters, since treating the whole string as one giant number rarely produces the value you actually want.
Votre texte ne quitte jamais votre navigateur
Chaque outil fonctionne localement sur votre appareil. Rien de ce que vous collez n’est envoyé, stocké ou suivi.