Skip to content
OddsockLocal
Local
Source text

Formatting

5 wordsRuns in this browser. Nothing is uploaded.

How to use

  1. Type the text. Characters outside ASCII become multiple pairs.
  2. Leave Direction on encode.
  3. Copy the pairs, including the spaces if the next tool expects them.
  4. Set Direction to decode and paste the pairs back when you want the text again.

What is Hex encoder?

Hex encoder prints the UTF-8 bytes of whatever you type, one lowercase pair per byte, separated by spaces. Direction starts on encode. The sentence Odd socks in the dryer. is 4f 64 64 20 73 6f 63 6b 73 20 69 6e 20 74 68 65 20 64 72 79 65 72 2e, and the last pair, 2e, is the period.

Read more

The unit is a byte, not a character. The letter Å is the two pairs c3 85, because UTF-8 encodes U+00C5 as those two bytes. If you wanted the code point U+00C5, that is a different page. Mixing the two up is how people “fix” a string and make it longer.

Flip Direction to decode and the pairs come back, spaces or not. An odd number of digits fails. A byte that is not valid UTF-8 fails on the way back, which is what you want when the original input was text.

Use cases

  • A developer pastes an error string into a bug report as hex so a trailing space or a weird byte stays visible.
  • Someone comparing two spellings of a name wants to see whether the difference is an accented character’s extra UTF-8 byte.
  • A student checking ASCII values wants 4f for O and 20 for the space, written the way packet dumps write them.
  • You have a short token and need the hex form a config file expects, without a programming REPL.

One sentence as spaced UTF-8 pairs

Direction encode. Text: Odd socks in the dryer.

4f 64 64 20 73 6f 63 6b 73 20 69 6e 20 74 68 65 20 64 72 79 65 72 2e

Why use Oddsock

Spaces between pairs make a long line readable, and the decoder accepts the same line with the spaces removed.

Related tools

Using this tool

UTF-8 encodes U+00C5 as the bytes C3 85. The code point page would show U+00C5. This page shows bytes.