OnlineNotes Logo

    Hex to Text Converter

    Paste hex such as 48 65 6c 6c 6f to read it as text, or type text to see its bytes in hex. The tool detects which way to convert.

    Options

    About this tool

    Hexadecimal (hex) writes numbers with 16 digits: 0 to 9 and a to f. One byte is always 2 hex digits, from 00 to ff, which makes hex a short way to show raw bytes. You see it in packet captures, hex dumps, URL encoding, color codes, debug logs and CTF puzzles. In ASCII and UTF-8, the capital letter H is byte 72, which is 48 in hex.

    This converter reads and writes UTF-8, the encoding used by almost every web page. Letters outside basic English take 2 to 4 bytes: é is c3 a9 and 👍 is f0 9f 91 8d. When you decode, the bytes must form valid UTF-8. If they do not, the tool shows an error instead of guessing, because a wrong guess can hide a problem in your data.

    How it works

    1. Paste hex or type text. In Detect mode, input made only of hex digit pairs, with at least one digit from 0 to 9, is read as hex.
    2. To decode, spaces, colons, commas and 0x prefixes are removed, each pair of digits becomes a byte, and the bytes are read as UTF-8.
    3. To encode, the text is turned into UTF-8 bytes, and each byte is written as 2 lowercase hex digits.
    4. Choose the direction yourself if your text could be read both ways, such as a number like 2024.

    Worked example

    Input

    Hi

    Output

    48 69

    H is 72 and i is 105 in ASCII and UTF-8. In hex, 72 is 48 and 105 is 69.

    Edge cases and limits

    • Hex must have 2 digits per byte. An odd number of digits shows an error.
    • Decoding reads UTF-8 only. Text saved in another encoding, such as Windows-1252 or UTF-16, shows an error or the wrong characters.
    • For numbers, not text, hex ff means 255. Use a number base converter for that.

    Frequently asked questions

    How do I convert hex to text?

    Paste the hex here. Each pair of hex digits is one byte, and the bytes are read as UTF-8 text. For example 41 is A.

    What does 48 65 6c 6c 6f mean?

    It spells "Hello". 48 is H, 65 is e, 6c is l and 6f is o.

    Why do I get an invalid UTF-8 error?

    The bytes do not form valid UTF-8 text. The hex may be cut off, may hold binary data that is not text, or may use another encoding.

    Can I use hex with 0x or colons?

    Yes. 4869, 48 69, 0x48 0x69 and 48:69 all decode to "Hi".

    Related tools