Skip to content
OddsockLocal
Local
Source text

Formatting

5 wordsRuns in this browser. Nothing is uploaded.

How to use

  1. Type the text, or paste decimal bytes if you are decoding.
  2. Set Direction. Encode is the start.
  3. Read one number per byte. Anything outside ASCII takes more than one number.
  4. On decode, keep every number between 0 and 255.

What is Text and ASCII codes?

This page lists UTF-8 bytes as decimal numbers separated by spaces. Odd socks in the dryer. starts 79 100 100 32, which is O, d, d and a space. The period at the end is 46. Direction starts on encode, and decode reads those numbers back into text.

Read more

The numbers are bytes, capped at 255. Å encodes as 195 133, the two UTF-8 bytes of U+00C5, not as the single number 197. If a decode list contains 256, it is rejected. That limit is how you tell this page from the code-point converter, which is happy to print U+1F366 for an emoji.

Commas are allowed between values on the way back, as well as spaces. The text has to come out as UTF-8, so a stray 255 with no valid sequence fails the same way an illegal hex byte fails.

Use cases

  • A student learning ASCII wants O as 79 and the space as 32, in decimal, next to the sentence.
  • Someone debugging a parser sees byte 195 and needs to know it is the start of a two-byte character, not a letter by itself.
  • A spec says “bytes as decimal” and you want the list without writing a loop.
  • You are checking that 256 is rejected instead of being wrapped to 0.

The sentence as decimal UTF-8 bytes

Direction encode. Text: Odd socks in the dryer.

79 100 100 32 115 111 99 107 115 32 105 110 32 116 104 101 32 100 114 121 101 114 46

Why use Oddsock

Decimal is what introductory ASCII charts use. Hex and binary pages are the same bytes in other bases.

Related tools

Using this tool

For O they are the same. For Å they are not: the bytes are 195 and 133, while the code point is U+00C5.