Kadben

Text to hex and hex to text

Paste text to see its UTF-8 bytes in hex, or reverse the direction to turn hex back into text or a file. Hex may contain spaces, “0x” prefixes, colons or dashes.

Runs in your browser. Nothing you paste or choose is uploaded.

Text to hex

    Add a step
    Result

      How to use it

      1. Paste the text or choose a file.
      2. Read the bytes in hex; tick “Spaces between bytes” for a spaced form.
      3. Press “Reverse the direction” to turn hex back into text.

      Rules and limits

      How hex is read and written

      Limits

      Questions and answers

      How do I get uppercase hex or “0x” before every byte?

      The page writes lowercase pairs. Copy the result into an editor and change the case or replace the spaces with “ 0x” there.

      Why does it say the hex has an odd number of digits?

      Each byte needs two digits, so one is missing or extra, often a lost leading 0, such as “a” for “0a”.

      Why does one letter give several bytes?

      In UTF-8, letters outside English take two to four bytes: ü is c3 bc, and П is d0 9f.

      Related tools