Skip to content
OddsockLocal
Local
Source text

Formatting

5 wordsRuns in this browser. Nothing is uploaded.

How to use

  1. Paste the hex. Spaces and line breaks between pairs are fine.
  2. Leave Direction on decode.
  3. Read the UTF-8 text. If the page reports an error, check for an odd digit or a byte sequence that is not UTF-8.
  4. Switch Direction to encode only if you meant to go the other way.

What is Hex decoder?

Hex decoder starts with Direction already set to decode, which is the whole difference from the encoder page. You paste bytes written as hexadecimal and get the UTF-8 text those bytes spell. Spaces between pairs are optional. 4f64 is the same input as 4f 64.

Read more

The bytes 4f 64 64 20 73 6f 63 6b 73 20 69 6e 20 74 68 65 20 64 72 79 65 72 2e are the sentence Odd socks in the dryer. Each pair is one byte, so the string has to be an even number of digits. A single leftover nibble is an error, not a character.

The result has to be valid UTF-8. The pair ff is a legal hex byte and still fails, because 0xFF is not a UTF-8 character. This page is for text, not for dumping an arbitrary binary file into a string. Use the hex viewer when you need a raw byte listing that is allowed to be non-text.

Use cases

  • A log line stores a user agent or a token as hex and you want the readable form before you file a bug.
  • A protocol trace shows 0x2e at the end of a field and you want to confirm it is a period.
  • A classmate encoded a sentence and sent only the hex, with spaces in one place and none in another.
  • You are checking that a decoder rejects a truncated pair instead of inventing a byte.

Spaced hex pairs for one sentence

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

Odd socks in the dryer.

Why use Oddsock

Decode is the default here, so a pasted dump is read as bytes immediately instead of being encoded a second time.

Related tools

Using this tool

ff is the byte 255, and a single 0xFF is illegal UTF-8. The decoder refuses it rather than showing a replacement character.