Developer Encoding

ASCII to hex

Direction
Base
Text
Hex codes 48 65 6C 6C 6F
One byte per character, two hex digits each
Without spaces 48656C6C6F
Characters 5
Note
Joined form is what code expects
Advertisement
320 × 100

Each character becomes its code point in hexadecimal, padded to two digits for ASCII. "Hello" becomes 48 65 6C 6C 6F. The joined form without spaces is what most tools and protocols expect.

How to encode text as hex

1 Type or paste the text.
2 Read the codes, spaced for reading or joined for pasting.
3 Switch direction to decode instead.
4 Non-ASCII characters produce codes above 7F.

The joined form matters more than it looks. Protocols, hex editors and most command-line tools expect an unbroken string of hex digits with no separators — spaces are purely a reading aid. Where a byte count matters, remember that ASCII gives two hex digits per character but anything outside ASCII does not: an emoji is a code point above 0xFFFF and needs five or six digits, which is a different thing from its UTF-8 byte length.

Questions

41. Lowercase "a" is 61.

Advertisement
300 × 250
Was this tool any good?
INTERNAL SIGNAL ONLY · WE USE IT TO FIND TOOLS WORTH REBUILDING