Hex to Text Converter

To convert hex to text, choose Hex → Text and paste the hexadecimal bytes, for example 48 65 6C 6C 6F, and the text (Hello) appears immediately. To turn text into hex, choose Text → Hex and type: each character becomes two hex digits per byte. Spaces, commas and 0x prefixes in the hex are ignored.

How to use it

  1. Choose Hex → Text or Text → Hex.
  2. Paste or type into the left box; the result appears on the right.
  3. For hex output, pick a separator and upper or lower case.
  4. Press Copy, or ⇄ Swap to convert the result back.

How hex to text conversion works

Text is stored as bytes, and a byte is a number from 0 to 255. Hexadecimal is a compact way to write those numbers: two hex digits cover every value from 00 to FF. Converting hex to text reads the hex two digits at a time, turns each pair into a byte and decodes the bytes as UTF-8 text. Converting text to hex does the reverse.

Common characters in hex

CharacterHexCharacterHexCharacterHex
A41a61030
B42b62939
Z5Az7Aspace20
!21?3Fnew line0A
@40.2EéC3 A9

Reading hex by hand

Each hex digit is worth 16 times the one to its right. For the pair 48: 4 × 16 + 8 = 72, and character 72 is H. For 6C: 6 × 16 + 12 (C) = 108, which is l. So 48 65 6C 6C 6F spells Hello. Uppercase letters run from 41 to 5A and lowercase from 61 to 7A; the difference of 20 hex (32) is why changing case flips a single bit.

Where you meet hex text

  • Programming and debugging: hex dumps, network packets and memory views show bytes in hex.
  • URLs: a space in a web address appears as %20, the hex code of a space with a % sign in front.
  • Puzzles and CTFs: hidden messages are often written in hex or binary.
  • Colours: web colours such as #FF8800 are three hex bytes (red, green, blue), not text.

Related converters

For the same bytes in 0s and 1s, use the binary translator. To convert a single number between decimal, hex, binary and octal, use the decimal to hex converter.

Frequently asked questions

How do I convert hex to text?

Choose Hex → Text and paste the hex. Every two hex digits are one byte, and the bytes are read as UTF-8 text, so 48 65 6C 6C 6F becomes Hello.

How do I convert text to hex?

Choose Text → Hex and type your text. Each character becomes its byte value in hexadecimal: A is 41, a is 61 and a space is 20.

Is hex to text the same as hex to ASCII?

For English letters, digits and punctuation, yes: ASCII is the first 128 characters of UTF-8. This converter also handles accented letters and emojis, which ASCII cannot.

Can I paste hex with 0x or without spaces?

Yes. The converter ignores 0x prefixes, spaces, commas, colons and dashes. Without separators it reads the hex two digits at a time.

What is hexadecimal?

Hexadecimal is base 16: it uses the digits 0–9 and the letters A–F for the values 10–15. One hex digit stands for 4 bits, so two hex digits describe exactly one byte.

Why does my hex give strange characters?

The bytes may not be text at all, for example part of an image or a compressed file, or they may use an old encoding instead of UTF-8. If the bytes are not valid UTF-8 the converter tells you.

Is my data sent anywhere?

No. The conversion runs in your browser; nothing is uploaded or stored.

Last updated · Built and checked by Moeed Hussain

Related tools